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 85 86 87
|
<!--
You can load this machine definition into libvirt using:
sudo virsh define north.xml
-->
<domain type='kvm'>
<name>@@DOMAIN@@</name>
<memory unit='MiB'>@@MEMORY@@</memory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='writeback'/>
<source file='@@POOLDIR@@/@@PREFIX@@@@PLATFORM@@.qcow2'/>
<target dev='vda' bus='virtio'/>
<transient shareBacking='yes'/>
</disk>
<controller type='usb' index='0'>
</controller>
<controller type='virtio-serial' index='0'>
</controller>
<filesystem type='mount' accessmode='squash'>
<source dir='@@TESTINGDIR@@'/>
<target dir='testing'/>
</filesystem>
<filesystem type='mount' accessmode='squash'>
<source dir='@@SOURCEDIR@@'/>
<target dir='source'/>
</filesystem>
<filesystem type='mount' accessmode='squash'>
<source dir='@@POOLDIR@@'/>
<target dir='pool'/>
</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>
<!-- SET-WEST -->
<interface type='bridge'>
<!-- 12:00:S:E:T:1 -->
<mac address='12:00:53:45:54:01' />
<!-- <source bridge='@@TEST_PREFIX@@198_18_?' /> -->
<source bridge='@@TEST_PREFIX@@192_0_1' />
<model type='virtio'/>
</interface>
<!-- SET-RISE -->
<interface type='bridge'>
<!-- 12:00:S:E:T:2 -->
<mac address='12:00:53:45:54:02' />
<source bridge='@@TEST_PREFIX@@198_18_1' />
<model type='virtio'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<memballoon model='virtio'>
</memballoon>
<rng model='virtio'>
<backend model='random'>/dev/random</backend>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</rng>
</devices>
<!-- used by p9fs -->
<seclabel type='static' model='dac' relabel='yes'>
<label>@@USER@@:@@GROUP@@</label>
<imagelabel>@@USER@@:@@GROUP@@</imagelabel>
</seclabel>
</domain>
|