9 <memory unit='KiB'>VM_MEMORY</memory>
10 <currentMemory unit='KiB'>VM_MEMORY</currentMemory>
12 <memory mode='strict' nodeset='0'/>
14 <vcpu placement='static'>CPU_NUM</vcpu>
15 <cpu mode='host-passthrough'>
18 <type arch='x86_64' >hvm</type>
26 <on_poweroff>destroy</on_poweroff>
27 <on_reboot>restart</on_reboot>
28 <on_crash>restart</on_crash>
30 <emulator>/usr/bin/qemu-system-x86_64</emulator>'''
32 <disk type='file' device='disk'>
33 <driver name='qemu' type='IMAGE_TYPE' cache='none' io='native'/>
34 <source file='IMAGE_PATH'/>
35 <target dev='vda' bus='virtio'/>
39 <interface type='bridge'>
40 <mac address='CTRL_MAC'/>
41 <source bridge='CTRL_BR'/>
42 <model type='CTRL_MODEL'/>
46 <interface type='bridge'>
47 <mac address='TAP_MAC'/>
48 <source bridge='BR_NAME'/>
49 <virtualport type='BR_TYPE'>
51 <model type='virtio'/>
52 <driver name='vhost' queues='4'/>
53 <target dev='TAP_NAME'/>
56 <interface type='bridge'>
57 <mac address='TAP_MAC'/>
58 <source bridge='BR_NAME'/>
59 <model type='virtio'/>
60 <target dev='TAP_NAME'/>
64 <hostdev mode='subsystem' type='pci' managed='yes'>
67 <address domain='0x0000' bus='0xBUS' slot='0xSLOT' function='0xFUNCTION' />
71 <filesystem type='mount' accessmode='passthrough'>
72 <source dir='9P_PATH'/>
76 <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'>
77 <listen type='address' address='0.0.0.0'/>