Booting from ISO file on KVM guest

Feb 17, 2020

Here is the steps required to boot from an ISO file after installation.

Edit guest XML file

# virsh edit vm02

Add add a boot dev line for cd-rom

    <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>

Add source file line and specify the location of the ISO file

    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/kvm-pool/iso/CentOS-7-x86_64-DVD-1908.iso'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>

Power off and start again the KVM guest

# virsh shutdown vm02
# virsh start vm02

Converting a virtual machine with virt-v2v

How to create and install a KVM guest

comments powered by Disqus