In the VM Edit Settings menu, the option to remove the CD/DVD drive from a virtual machine (VM) is grayed out when the VM is powered on.
VMware vSphere 7.x
VMware vSphere 8.x
Virtual machines configured with Hardware Version 9 or lower do not support hot removal of the CD/DVD drive. This limitation prevents removal while the VM is powered on.
To remove the CD/DVD drive: