VMware {code} Community
markajohnson
Contributor
Contributor

How to assign a MANUAL address?

Hi,

Does anyone have an API example of configuring a VM with a MANUAL address?  When I do this through the VCloud Director web interface, I can select "Static - Manual" as the IP Assignment type, and type in an IP address.  When the VApp is started, the VM has the correct address.

Using the API (REST), I do the following:

1.  Instantiate the VAppTemplate w/ a NetworkConfigSection pointing to the network

2.  Modify the VM's NetworkConnectionSection specifying  the IP address and the allocation mode as MANUAL.

3.  Deploy the VApp

4.  Start the VApp

The VCloud Director web interface shows that the IP is assigned to the VM, but I cannot connect to the VM.

This works if the VM is started through the UI.  What is different?

Thanks,

Mark

2 Replies
DaleAttree
Contributor
Contributor

Make sure you set forceCustomization to true in your deploy parameters.

0 Kudos
johanneshiemer
Enthusiast
Enthusiast

And make sure VMware Tools are installed in the VM.

0 Kudos