Blog

This document is not a guide nor a wiki; this is just for whenever I have doubts about the definition of XML for libvirt, I can use this example with VIRTIO and IDE disks.

<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit DebianServer
or other application using the libvirt API.
-->
 
<domain type="kvm"><name>DebianServer</name><uuid>793c72e4-f257-4669-809b-c3e5f5915940</uuid><memory unit="KiB">4194304</memory><currentmemory unit="KiB">2097152</currentmemory><vcpu current="4" placement="static">8</vcpu><os><type arch="x86_64" machine="pc-i440fx-2.1">hvm</type><boot dev="hd"></boot></os><features><acpi><apic><pae></pae></apic></acpi></features><cpu match="exact" mode="custom"><model fallback="allow">SandyBridge</model><vendor>Intel</vendor><feature name="pbe" policy="require"><feature name="tm2" policy="require"><feature name="est" policy="require"><feature name="monitor" policy="require"><feature name="osxsave" policy="require"><feature name="smx" policy="require"><feature name="ss" policy="require"><feature name="vme" policy="require"><feature name="dtes64" policy="require"><feature name="ht" policy="require"><feature name="ds" policy="require"><feature name="pcid" policy="require"><feature name="tm" policy="require"><feature name="pdcm" policy="require"><feature name="vmx" policy="require"><feature name="ds_cpl" policy="require"><feature name="xtpr" policy="require"><feature name="acpi" policy="require"><feature name="invtsc" policy="require"></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></feature></cpu><clock offset="utc"><timer name="rtc" tickpolicy="catchup"><timer name="pit" tickpolicy="delay"><timer name="hpet" present="no"></timer></timer></timer></clock><on_poweroff>destroy</on_poweroff><on_reboot>restart</on_reboot><on_crash>restart</on_crash><pm><suspend-to-mem enabled="no"><suspend-to-disk enabled="no"></suspend-to-disk></suspend-to-mem></pm><devices><emulator>/usr/bin/kvm</emulator><disk device="disk" type="file"><driver cache="writeback" name="qemu" type="qcow2"><source file="/var/lib/libvirt/images/Debian8-Server.qcow2"><target bus="virtio" dev="vda"><address bus="0x00" domain="0x0000" function="0x0" slot="0x07" type="pci">
     
    <disk device="cdrom" type="block"><driver name="qemu" type="raw"><target bus="ide" dev="hda"><readonly><address bus="0" controller="0" target="0" type="drive" unit="0">
     
    <controller index="0" model="ich9-ehci1" type="usb"><address bus="0x00" domain="0x0000" function="0x7" slot="0x05" type="pci">
     
    <controller index="0" model="ich9-uhci1" type="usb"><master startport="0"><address bus="0x00" domain="0x0000" function="0x0" multifunction="on" slot="0x05" type="pci">
     
    <controller index="0" model="ich9-uhci2" type="usb"><master startport="2"><address bus="0x00" domain="0x0000" function="0x1" slot="0x05" type="pci">
     
    <controller index="0" model="ich9-uhci3" type="usb"><master startport="4"><address bus="0x00" domain="0x0000" function="0x2" slot="0x05" type="pci">
     
    <controller index="0" model="pci-root" type="pci"><controller index="0" type="ide"><address bus="0x00" domain="0x0000" function="0x1" slot="0x01" type="pci">
     
    <controller index="0" type="virtio-serial"><address bus="0x00" domain="0x0000" function="0x0" slot="0x06" type="pci">
     
    <interface type="bridge"><mac address="52:54:00:e9:c7:8b"><source bridge="br0"><model type="virtio"><address bus="0x00" domain="0x0000" function="0x0" slot="0x03" type="pci">
     
    <serial type="pty"><target port="0"></target></serial><console type="pty"><target port="0" type="serial"></target></console><channel type="spicevmc"><target name="com.redhat.spice.0" type="virtio"><address bus="0" controller="0" port="1" type="virtio-serial">
     
    <input bus="usb" type="tablet"><input bus="ps2" type="mouse"><input bus="ps2" type="keyboard"><graphics autoport="yes" type="spice"><sound model="ich6"><address bus="0x00" domain="0x0000" function="0x0" slot="0x04" type="pci"><video><model heads="1" ram="65536" type="qxl" vram="65536"><address bus="0x00" domain="0x0000" function="0x0" slot="0x02" type="pci">
     
    <redirdev bus="usb" type="spicevmc"></redirdev><redirdev bus="usb" type="spicevmc"></redirdev><redirdev bus="usb" type="spicevmc"></redirdev><redirdev bus="usb" type="spicevmc"></redirdev><memballoon model="virtio"><address bus="0x00" domain="0x0000" function="0x0" slot="0x08" type="pci">
     
    <panic></panic></address></memballoon></address></model></video></address></sound></graphics></address></target></channel></address></model></mac></interface></address></controller></address></controller></controller></address></master></controller></address></master></controller></address></master></controller></address></controller></address></readonly></target></driver></disk></address></target></driver></disk></devices></domain>

Tianocore

...
hvm/root/tianobios.bin
ddemuro
administrator

Sr. Software Engineer with over 10 years of experience. Hobbist photographer and mechanic. Tinkering soul in an endeavor to better understand this world. Love traveling, drinking coffee, and investments.

You may also like

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.