Disconnect cdroms from the command line in VMs.

shows VMs vimsh -n -e “vmsvc/getallvms” | grep -i vmid | awk ‘{print $3}’ > /tmp/vmids vimsh -n -e “vmsvc/deviceconnection 3000 disconnect”
3000 here is usually ide0:0. for others, you’ll need to see it in
vimsh -n -e “vmsvc/showdevices ” Then, just put it into a for loop to disconnect all cdroms.]]>

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.