title: Can I change the IP address of a virtual machine with vmware package?
body: <p>I created virtual machine on ESX (on vSphere Client) by vmware package:
  <a href="http://www.doublecloud.org/2010/04/how-to-import-and-export-ovf-packages/" rel="nofollow noreferrer">Look here 
  </a>.
   but I can not set the IP address from the code.</p>
  
  <p>I tried:</p>
  
  <pre><code>ServiceInstance si = new ServiceInstance(new URL(Url), user, password, true);
    VirtualMachine vm = (VirtualMachine) new InventoryNavigator(si.getRootFolder()).searchManagedEntity("VirtualMachine", "NewVmName");
    System.out.println( vm.getGuest().toolsRunningStatus);
    vm.getGuest().setIpAddress(ipAddress);
  </code></pre>
  
  <p>But it didn't change. Does anyone know what can be done to update IP Address? </p>