I am trying to restore a VM from 4.1 vcenter, to 4.0 esxi. It gets pretty far along, creates the vmdk's, then fails and un-rolls with an invalid param. Everything works fine if I do not specify the virtual disk device in the device change spec. The logs on the esxi servers are not very helpful either; they are attached to this post.
Shouldn't the controllerKey for the VirtualDisk be 1000, not 800?
Actually the controller key is 1000 in the soap request:
I actually figured out what was causing the invalid param though, its the unit number again. If i restore using the original unit number things work. I have to figure out what the proper setting for unit numbers are I suppose, as I initially reset the unit numbers after a restore failing in another configuration.
I'm not quite sure why the controller key shows 800 in the logs when I set the unit number. I don't understand what unit number does. When I set the unit number for all devices to 0 things work, and as the logs show the controller key remains what I set it to for the virutal disk, 10000.
So, I guess the question is, what does the unit number do, and what should it be set to for a virtual machine re-creation?
After doing some reading, unitNumber is a number relative to the controller, that has to be unique, to identify the device within the controller.
Problem solved, thanks.