The device '0' is referring to a nonexisting controller '0'.

The device '0' is referring to a nonexisting controller '0'.

THE error occurs when I use the java sdk for the new virtual machine disk

Comments

When you add a virtual device into a VM, you should set its controller. A virtual disk is inherited from virtual device, so a controller id is required.

Like:

VirtualDisk disk = new VirtualDisk();

disk.setControllerKey(ckey);

....

The "ckey" is the key of the controller your new-create virtual disk attached to. You can find the VirtualController and getKey.

The error message VM prompted is ambiguous and always make one confused. Maybe you can paste your code that helps others to figure out what your problem is.

Version history
Revision #:
1 of 1
Last update:
‎05-25-2011 01:14 AM
Updated by: