virsh: attach CDROM ISO image

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

virsh: attach CDROM ISO image

Post 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]
Post Reply