When attempting to hot-add a CD-ROM device to a powered-on virtual machine, the following error is reported,
The attempted operation cannot be performed in the current state ("Powered on")
This behavior is expected due to virtual hardware limitations:
Option 1 (Recommended) – Upgrade virtual hardware
Shut down the virtual machine
Take a snapshot (optional but recommended)
Upgrade the virtual hardware to version 10 or later
Power on the virtual machine
Retry the operation
After the upgrade:
The CD-ROM device will default to SATA
SATA CD-ROM supports hot-add, so the operation will succeed
Option 2 – Workaround when hardware version upgrade is not possible
Shut down the virtual machine
Manually add an IDE CD-ROM device
Power on the virtual machine
Use the API or UI to mount the ISO
Note:
Adding the device requires the virtual machine to be powered off
Mounting an ISO to an existing CD-ROM device is supported while powered on