1. Log on to the Host
  2. Place the ISO you want somewhere on the host
  3. Edit the xml file for the VM you are wanting to mount the ISO to
    • virsh edit $VM
  4. Add the iso mounted via a virtual cdrom:
    • <disk type=’file’ device=’cdrom’>
      <driver name=’qemu’ type=’raw’/>
      <source file=’
      <target dev=’hdc’ bus=’ide’/>
      <address type=’drive’ controller=’0′ bus=’1′ unit=’0’/>
  5. Place the cdrom device above the hard drive in the boot sequence i.e.:
    • <os>
      <type arch=’x86_64′ machine=’pc-0.12′>hvm</type>
      <boot dev=’cdrom‘/>
      <boot dev=’hd‘/>
  6. Shutdown and startup the VM
    • virsh shutdown $VM
    • virsh start $VM
  7. Connect to the VM via VNC or virt-manager and watch it boot from your ISO

2 thoughts on “Mount and Boot an ISO via QEMU KVM”

  1. Thanks for this, it worked right away. I’m stuck now trying to boot the ISO with some kernel boot options. It seems the kernel needs to be unpacked before it is read, to do so. Do you know any way that kernel boot options can be passed to the ISO directly?

  2. “error: unsupported configuration: IDE controllers are unsupported for this QEMU binary or machine type” this message appears, when I try to save configuration file with your edits.

Leave a Reply

Your email address will not be published. Required fields are marked *