Page 1 of 1

virsh: attach CDROM ISO image

Posted: Wed Dec 10, 2014 3:00 pm
by peter_b
I'm usually connecting the setup ISO image for KVM clients directly on the commandline of the "virt-install" command.
However, I now stopped and restarted the VM-client before installing the OS. Restarting the client didn't mount the ISO anymore. Hm.

Thanks to the instructions on Mounting and umounting a CD-ROM iso in KVM guests (by Alexander Bendo), fixing this issue was a breeze:

1) Open "virsh" on the commandline
2) Use the following command to mount your ISO:

Code: Select all

virsh # attach-disk your_domain_name /path/to/your.iso hdc --type cdrom --mode readonly
Then, restart the VM-client.

[Links]