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=’
      /path/to/iso‘/>
      <target dev=’hdc’ bus=’ide’/>
      <readonly/>
      <address type=’drive’ controller=’0′ bus=’1′ unit=’0’/>
      </disk>
  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‘/>
      </os>
  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

Leave a Reply

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