1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
<!--
You can load this machine definition into libvirt using:
sudo virsh define openbsde.xml
-->
<domain type='kvm'>
<name>@@DOMAIN@@</name>
<memory unit='MiB'>@@MEMORY@@</memory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<boot dev='hd'/>
</os>
<cpu mode='host-passthrough' check='none' migratable='on'/>
<features>
<acpi/>
<apic/>
</features>
<clock offset='utc'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='@@POOLDIR@@/@@PREFIX@@@@PLATFORM@@.qcow2'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
<transient shareBacking='yes'/>
</disk>
<controller type='usb' index='0'>
</controller>
<controller type='virtio-serial' index='0'>
</controller>
<!--OpenBSD uses NFS mount this filesystem is defined here just to hack some part of testing script to work-->
<filesystem type='mount' accessmode='squash'>
<source dir='@@TESTINGDIR@@'/>
<target dir='testing'/>
</filesystem>
<!--
Keep the first interface pointing at the gateway (if it moves
first boot gets confused as the new interface isn't configured).
-->
<interface type='bridge'>
<source bridge='swandefault'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='12:00:00:64:64:23'/>
<source bridge='@@TEST_PREFIX@@192_1_2'/>
<model type='virtio'/>
</interface>
<interface type='bridge'>
<mac address='12:00:00:dc:bc:ff'/>
<source bridge='@@TEST_PREFIX@@192_0_2'/>
<model type='virtio'/>
</interface>
<serial type='pty'>
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</memballoon>
<rng model='virtio'>
<backend model='random'>/dev/random</backend>
<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
</rng>
</devices>
<!-- used by p9fs -->
<seclabel type='static' model='dac' relabel='yes'>
<label>@@USER@@:@@GROUP@@</label>
<imagelabel>@@USER@@:@@GROUP@@</imagelabel>
</seclabel>
</domain>
|