Skip to content

Instantly share code, notes, and snippets.

@lyarbean
Created October 18, 2013 05:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lyarbean/7036986 to your computer and use it in GitHub Desktop.
Save lyarbean/7036986 to your computer and use it in GitHub Desktop.
q35-pcie.xml
<!--
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 x32
or other application using the libvirt API.
-->
<domain type='kvm'>
<name>x32</name>
<uuid>858082e2-3cee-445b-9aa5-f805906cac78</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-q35-1.6'>hvm</type>
<boot dev='hd'/>
<boot dev='cdrom'/>
<bootmenu enable='yes'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode='host-passthrough'>
</cpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw' cache='none'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='writethrough'/>
<source file='/var/lib/libvirt/images/x32.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x1c' slot='0x01' function='0x0'/>
</disk>
<controller type='pci' index='0' model='pcie-root'/>
<controller type='usb' index='0'>
<address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
</controller>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x1c' slot='0x02' function='0x0'/>
</controller>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x1c' slot='0x03' function='0x1'/>
</controller>
<controller type='sata' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
</controller>
<controller type='pci' index='1' model='dmi-to-pci-bridge'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
</controller>
<controller type='pci' index='2' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
</controller>
<controller type='pci' index='3' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x02' function='0x0'/>
</controller>
<controller type='pci' index='4' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x03' function='0x0'/>
</controller>
<controller type='pci' index='5' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x04' function='0x0'/>
</controller>
<controller type='pci' index='6' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x05' function='0x0'/>
</controller>
<controller type='pci' index='7' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x06' function='0x0'/>
</controller>
<controller type='pci' index='8' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x07' function='0x0'/>
</controller>
<controller type='pci' index='9' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x08' function='0x0'/>
</controller>
<controller type='pci' index='10' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x09' function='0x0'/>
</controller>
<controller type='pci' index='11' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x0a' function='0x0'/>
</controller>
<controller type='pci' index='12' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x0b' function='0x0'/>
</controller>
<controller type='pci' index='13' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x0c' function='0x0'/>
</controller>
<controller type='pci' index='14' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x0d' function='0x0'/>
</controller>
<controller type='pci' index='15' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x0e' function='0x0'/>
</controller>
<controller type='pci' index='16' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x0f' function='0x0'/>
</controller>
<controller type='pci' index='17' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x10' function='0x0'/>
</controller>
<controller type='pci' index='18' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x11' function='0x0'/>
</controller>
<controller type='pci' index='19' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x12' function='0x0'/>
</controller>
<controller type='pci' index='20' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x13' function='0x0'/>
</controller>
<controller type='pci' index='21' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x14' function='0x0'/>
</controller>
<controller type='pci' index='22' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x15' function='0x0'/>
</controller>
<controller type='pci' index='23' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x16' function='0x0'/>
</controller>
<controller type='pci' index='24' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x17' function='0x0'/>
</controller>
<controller type='pci' index='25' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x18' function='0x0'/>
</controller>
<controller type='pci' index='26' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x19' function='0x0'/>
</controller>
<controller type='pci' index='27' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x1a' function='0x0'/>
</controller>
<controller type='pci' index='28' model='pci-bridge'>
<address type='pci' domain='0x0000' bus='0x01' slot='0x1b' function='0x0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:3e:18:e0'/>
<source network='default'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x1c' slot='0x04' function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='mouse' bus='ps2'/>
<graphics type='spice' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
<sound model='ich6'>
<address type='pci' domain='0x0000' bus='0x1c' slot='0x05' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' heads='1'/>
<address type='pci' domain='0x0000' bus='0x1c' slot='0x07' function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x1c' slot='0x06' function='0x0'/>
</memballoon>
</devices>
<seclabel type='dynamic' relabel='yes'/>
</domain>
@Faizahmad-21099
Copy link

nice

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