If the virtual machine state update clearing the "user input required" state and the notification of the "Media Eject task completion" are processed almost simultaneously, VCD may fail to update the task status correctly, leaving it in a "Running" state.
Currently, there is no permanent resolution for this issue.
Workaround:
Since the Linux door lock causes the guest OS to hang until the prompt is answered, it is recommended to use the workarounds described in KB 313891, such as ejecting from the guest OS or configuring autoanswer.
For detailed instructions, please refer to:
Linux virtual machine (including vCenter) fails to respond after a mounted CDROM is disconnected.
To clear stuck tasks in VMware Cloud Director, please refer to the following KB:
Running Tasks cannot be stopped from the Cloud Director Portal