When trying to VMotion from one ESX server to another, I receive this error:
Unable to migrate from ESX1 to ESX2: Virtual machine is configured to use a device that prevents migration: Device 'CD/DVD Drive 1' is a connected device with a remote backing.
If i view the virtual machine properties, the CD/DVD drive is showing as 'Connected - client unknown'. All of the CD/DVD properties are greyed out.
I can click the 'Disconnect D:' button on the toolbar with the VI client, but this doesnt have any effect.
P.S i even tried removing the CD/DVD device whilst the VM was powered off, powering up the VM, powering it down, and re adding the CD/DVD but this didnt have any effect.
I have this same issuse on a VM i use for testing VMotion, its been used 100's of times for VMotion..
Removing the CD/DVD didnt help, but removing both the CD/DVD and Floppy did the trick..
I havent looked too deeply into it.. But will do later..
I think that is caused by a vcenter user with the console open to the VM that has the CD connected via Device type "Client Device"
Check the sessions on the server and see if anyone has that vm open.
Couldn't work out what was causing this...there weren't any sessions showing.
I removed the VM from virtual center, and then re-registered it. This did the trick - can now VMotion OK.
thanks for the suggestions.
I'm still having these problems, but now it's happening on 9 of our VMs - a real pain. Only way I can see to fix is to remove the VMs from virtual centre and reregister them.
Just wondering if anyone else has any ideas?
Message was edited by:
I've had the same problems on my VMs running linux OS-es.
And NOW I resolve the problems!! Yeah!!
The cause is that my VMs hold "VMware Tools Install" images on their Virtual CD-ROM drives.
Click "Inventry->Virtual Machine->End VMware Tools Install".
It may save you.
I have seen this too. If the VM tools install thinks it is still running the CD drive is mapped to the iso file on the host. You wont be able to VMotion until you disable the tools install.
I had the same problem and found this solution in another post:
When trying to vmotion a virtual machine you may get an error message that says you cannot migrate the vm because the CD is connected to a device that prevents migration. If you try to disconnect that device it may stay connected. If it does, open an SSH connection to the ESX host.
Once connected run the following command: "service mgmt-vmware restart"
This will restart the management interface and should clear the connection to the CD or floppy.
I have tried th uninstall and re-install of both the floppy and the CD-Rom although still no luck. What I did find to work more than once it powering down your VM > ensure either Floppy and or CD-Rom are both disconnected > Migrate to another ESX server > Power VM up > try to VMotion.
I hope this helps
This should cure the problem without the need to shutdown the VM...
Select "Install VMware Tools" on the Virtual Machine - this will initiate the VMware Tools Installer Mount.
Select "End VMware Tools Install" - this will unmount the Tools Installer.
A word of warning, the VMware Tools Installer Mount will forcibly disconnect the remote device, so if someone has genuinely mounted a Virtual CRDOM it will be lost.
I got a similar message during VMOTION. To resolve the issue, i did the following.
1. Rihgtclick on the Virtual Machine and select 'Edit Settings'
2. Select (Highlight) CD/DVD Drive 1
3. On the right hand side under Device status, uncheck the box 'Connected'
4. Try VMOTION (drag and drop the Virtual machine) and it should work.
5. If required then check the box which was unchecked in step 3 (for the moved VM on the target server).
Hope this helps!
In this scenario the CD/DVD Device Status shows up as "Connected - client unknown" and all of the properties are greyed out, so you can't Edit the Settings.
I am not absolutely certain what the reason is for this behaviour, but I am able to recreate it...
Connect a CD to a VM, then shutdown & power off; now remove the CD (i.e. set to "Client Device"), then power back on. Now try to VMotion and Hey Presto "Device 'CD/DVD Drive 1' is a connected device with a remote backing" and all options greyed out.
The only certain workaround that I have found for this is to "Install VMware Tools"/"End VMware Tools Install", or even better disconnect the CD before shutting down the VM!
I've recently migrated a load of servers using vmware converter - and I have noticed we recieve the error on every server we migrate. I have got into the habbit of "install vmware tools"/"end vmware tools install"