Linux virtual machine fails to respond after a mounted CDROM is disconnected
search cancel

Linux virtual machine fails to respond after a mounted CDROM is disconnected

book

Article ID: 313891

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
When you disconnect the virtual CD/DVD drive without unmounting inside guest OS, you experience these symptoms:
  • Linux virtual machine stops responding.
  • Virtual machine does not respond until you answer the question:
The guest operating system has locked the CD-ROM door and is probably using the CD-ROM, which can prevent the guest from recognizing media changes.
If possible, eject the CD-ROM from inside the guest before disconnecting.
Disconnect anyway and override the lock?"


Environment

VMware ESXi 4.1.x Installable
VMware vSphere ESXi 5.5
VMware ESX 4.0.x
VMware ESX 4.1.x
VMware vSphere ESXi 5.0
VMware vSphere ESXi 5.1
VMware ESXi 4.1.x Embedded
VMware ESXi 4.0.x Installable
VMware vSphere ESXi 6.0
VMware ESXi 4.0.x Embedded

Resolution

This is an expected behavior when a CD/DVD drive is locked by virtual machine.
 
To work around this issue, use one of these options:
  • Unmount the CD/DVD drive in the virtual machine before disconnecting.

    For example, run this command for Guest OS RHEL7:

     

    eject cdrom
  • Add these entries to vmx file to answer the question automatically:
To cause disconnection to fail
------------------------------------
cdrom.showIsoLockWarning = "TRUE"
msg.autoanswer = "TRUE"
------------------------------------
 
To force to disconnect CD/DVD drive regardless of locking drive by virtual machine
------------------------------------
cdrom.showIsoLockWarning = "FALSE"
msg.autoanswer = "TRUE"
------------------------------------
 
Note: For more information, see Tips for editing a .vmx file (1714).


Additional Information



Tips for editing a .vmx file
マウントされた CDROM が切断された後、Linux 仮想マシンが応答しない