Wednesday, April 1, 2015

Proxmox KVM - Add or remove virtual CD-ROM

While upgrading proxmox we ran into an issue loading the hardware tab of the Web-GUI for a any KVM.  To compound the problem the migration of that virtual machine was failing because of an error with the CD-ROM.  We were able to change the CD-ROM designation by logging into the Web-GUI of another server in the cluster that had yet to be upgraded but what if we couldn't?  Here is the command line way of accomplishing that task:

$ qm set <vmid> -cdrom <ISO>

To add an ISO that was uploaded to the server to vmid 100:
$ qm set 100 -cdrom /var/lib/vz/template/iso/my.iso
To set the CD-ROM to empty on vmid 100:
$ qm set 100 -cdrom none
To set the CD-ROM to use the host's physical CD drive on vmid 100:
 $ qm set 100 -cdrom cdrom

No comments:

Post a Comment