Table of Contents

KVM : CD Boot with KVM Guest OS



Step1. edit the xml file

#virsh edit [vdomname]
(abbr)
<os>
  <boot dev='cdrom'/>
  <bootmenu enable='yes'/>
</os>

(abbr)

<devices>

    (abbr)

    <disk type='file' device='cdrom'>
      <driver name='qemu'/>
      <source file='/var/lib/libvirt/images/CentOS-5.5-x86_64-LiveCD.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>

    (abbr)

  </devices>


Step2. define the xml file

# virsh define /etc/libvirt/qemu/test1.xml


Step3. start Guest OS

# virsh start test1; virsh console test1