Skip to content

Instantly share code, notes, and snippets.

@linuxkathirvel
Last active March 7, 2024 10:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxkathirvel/f664a5c06d889e59dd4ab9a0b5e0547b to your computer and use it in GitHub Desktop.
Save linuxkathirvel/f664a5c06d889e59dd4ab9a0b5e0547b to your computer and use it in GitHub Desktop.
How to boot ISO image in KVM using XML configuration?

How to boot ISO image in KVM using XML configuration?

<disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/data_ssd/iso-images/ubuntu-16.04.6-server-amd64.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
</disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>

Reference

https://serverfault.com/questions/373372/how-to-connect-a-cdrom-device-to-a-kvm-qemu-domain-using-command-line-tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment