Quantcast
Channel: VMware Communities : Discussion List - VMware {code}
Viewing all articles
Browse latest Browse all 2738

How to update IP and Network adapter using Java

$
0
0

 

Greetings,

 

 

would anybody have a working example on how to update the IP address and network adapter of an existing VM?  We are using ESX Server 3.5, and the VI SDK 2.5.0.  Similar to the code provided in the samples for VMpowerOps.java, where I provide the datacenter and name of the VM, along with the desired IP and network adapter name.  Context: I am setting up a fully automated test automation environment, where VMs get deployed on-demand, as requests for test execution are submitted.  As the VMs get deployed from previously built templates, I need to set the IP and network adapter (using the value displayed for the 'Network label' in VM Properties) programmatically.

 

 

Thanks in advance!

 

 

- Stephan

 

 


Viewing all articles
Browse latest Browse all 2738

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>