Removing ISO from vCenter VM in vSphere UI causes vCenter to become unresponsive
search cancel

Removing ISO from vCenter VM in vSphere UI causes vCenter to become unresponsive

book

Article ID: 370817

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

After patching or upgrading vCenter Server, the CD/DVD drive on the vCenter VM continues to show the ISO as connected in the vSphere Client.

Attempting to disconnect the ISO or change the backing to "Client Device" causes the vCenter Server to become unresponsive (e.g., no response to pings or UI timeouts).

Users may be disconnected from the vCenter UI and VAMI.

Environment

VMware vCenter Server

Cause

The guest operating system (Photon OS) retains an exclusive lock on the CD/DVD ISO, preventing the hypervisor from safely ejecting it. Forcing the detachment via the vSphere Client causes a blocked operation while vCenter waits for the host's device disconnect query.

Resolution

To resolve this issue, use one of the following methods:

Method 1: 

  1. Log in directly to the ESXi host UI (https://<ESXi_IP>/ui) where the vCenter VM is running.
  2. Locate the vCenter VM, right-click, and select Edit Settings.
  3. Change the CD/DVD drive connection to Client/Host Device.
  4. When prompted with the lock warning, select Yes to force the disconnection.
    1. Lock warning: "The guest operating system has locked teh CD-ROM door and is probably using the CD-ROM which can prevent guest from recognizing media changes. If possible, eject CD-ROM from inside the guest before disconnecting. Disconnect anyway and override the lock."
    2. Select 'Yes' & clock on "Answer".
  5. Verify that the vCenter Server resumes normal operation.

Method 2: Proactive Eject via Command Line.

  1. Connect to the vCenter Server via SSH.
  2. Login as root user.
  3. If prompted with the Command> prompt, type shell and press Enter.
  4. Run the following command to release the guest OS lock: eject /dev/cdrom
  5. Return to the vSphere Client and change the VM's CD/DVD drive setting back to "Client Device".

Additional Information