VMware Cloud Community
conradsia
Hot Shot
Hot Shot

disconnect client connected cdrom from the esx console

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?

Reply
0 Kudos
9 Replies
waynegrow
Expert
Expert

you should be able to use

vmware-cmd

conradsia
Hot Shot
Hot Shot

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.

Reply
0 Kudos
waynegrow
Expert
Expert

You might have to cat or less the .vmx for the VM to see what the dev name is.

Reply
0 Kudos
Diego_Mora
Enthusiast
Enthusiast

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.

Reply
0 Kudos
conradsia
Hot Shot
Hot Shot

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

Reply
0 Kudos
Diego_Mora
Enthusiast
Enthusiast

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

Reply
0 Kudos
conradsia
Hot Shot
Hot Shot

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.

Reply
0 Kudos
eharvill
Enthusiast
Enthusiast

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.

djciaro
Expert
Expert

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!

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!
Reply
0 Kudos