VMware Cloud Community
vmwaredownload
Enthusiast
Enthusiast

Not able to Power on an VM - "Module DevicePowerOn power on failed"

Hi Folks,

I've using configuration as below.

VCO - 4.2.0 build 5277

vCloud plugin - 1.5.506

vCenter plugin - 5.0.0.149

I'm running the following workflows one after the other

1. Instantiate vApp

2. Add vApp Network - choosing Briding

3. Wire a virtual maching network - Choosing Manual and providing IP.

4. Deploying vApp along with option to power on the VM.

The vAPP gets deployed but when it tries to power on it gives an error saying - "Failed to power on virtual machines.  - Fault of type com.vmware.vim.binding.vim.fault.GenericVmConfigFault is not handled.  - Module DevicePowerOn power on failed."

I get the same error when i try to directly power on the VM through cloud director.

Everything works fine if I deploy and power on the vApp and VM directly through vCloud director without using VCO.

Kindly help.

0 Kudos
1 Reply
DanLinsley
Contributor
Contributor

I ran into this same issue yesterday.

Eventually I isolated the issue to the "Wire a virtual machine network" workflow.  I wanted to have the mac address reset, but when null is used for the mac address input it will not reset it.

I duplicated the "Wire a virtual machine network" and it's respective action "wireVM".  For the wireVM action I added a boolean input: resetMacAddress

Then in the wireVM script I replaced:

if (macAddress != null) {
                 networkConnection.mACAddress = macAddress;
             }

With:

if (resetMacAddress) {
            networkConnection.mACAddress = null;  //creates new mac address
        } else {
            if (macAddress != null) {
                networkConnection.mACAddress = macAddress;
            }
        }

With that change I was able to successfully power on VMs that use the workflow.

0 Kudos