cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

middleware:virtualization:kvm:cd-boot.html



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



middleware/virtualization/kvm/cd-boot.html.txt ยท Last modified: 2019/06/06 by admin

Page Tools