does anyone know how to do this? someone somewhere is connected to the cdrom and i cant vmotion. Does anyone know how to disconnect the cdrom from the esx console?
you should be able to use
vmware-cmd
thanks i should have known that, points are all yours if you can tell me what the device is called...
cd-rom
cdrom
nither of those worked.
You might have to cat or less the .vmx for the VM to see what the dev name is.
Maybe you can edit the .vmx file of the affected virtual machine. But you need a restart of this virtual machine after you make the changes.
Locate the following line:
ide1:0.deviceType = "cdrom-image"
to locate cdrom device node (ide1:0). Then locate the following lines:
ide1:0.present = "TRUE"
ide1:0.startConnected = "TRUE"
and change TRUE to reflect FALSE. Reboot and thats all.
I was trying to avoid taking the vm down i just need to vmotion the darn thing. the disconnectdevice didn't work with anything I tried, cd cd-rom cdrom ide0:0 atapi-cdrom /dev/cdrom
What ide node is the cdrom device in the configuration file of your virtual machine? See the line that i have saying before and probe the vmware-cmd command.
vmware-cmd "path to .vmx file" disconnectdevice idex:x, where x:x is the node of cdrom device.
Best, move to your virtual machine directory and type only the name of the .vmx file to be sure.
null
i've tried everything I can think of
ide0:0
cd
cd-rom
/dev/cdrom
atapi-cdrom
and none of them work, im just going to shut it down.
I've seen this bug before. The only solution I have found is to remove the hardware (cdrom and floppy) as nothing would stay "disconnected." I was then able to VMotion successfully.
C:\Program Files\VMware\VMware vSphere CLI\bin>vmware-cmd.pl --server ESXSERVER "/vmfs/volumes/8ccc193c-12a2eed6/VMNAME41/VMNAME.vmx" disconnectdevice "CD/DVD Drive 1"
Enter username: root
Enter password:
disconnectdevice(CD/DVD Drive 1) = 1
If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!