Attaching an ISO to a Virtual Machine as a CDROM drive can be tricky, but I have managed to get this working on Ubuntu. The command below will attach the ~/Downloads/virtio-win-0.1.185.iso file to the Virt Manager Virtual Machine named “winxp”.
┌──[jason@11000000.10101000.00000001.00000010]─[~/Downloads] └──╼ ╼ $ virsh attach-disk winxp --source ~/Downloads/virtio-win-0.1.185.iso --type cdrom hdb --mode readonly Disk attached successfully |
This works very well to attach the ISO as a virtual CD drive.