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
|
<!--
./kvm install-linux will transmogrify and then load this .xml file
-->
<domain type='kvm'>
<name>@@DOMAIN@@</name>
<memory unit='MiB'>@@MEMORY@@</memory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<kernel>@@POOLDIR@@/@@PREFIX@@linux-transmogrify.vmlinuz</kernel>
<initrd>@@POOLDIR@@/@@PREFIX@@linux-transmogrify.initramfs</initrd>
<cmdline>root=/dev/vda2 ro quiet console=tty0 plymouth.enable=0 mitigations=off biosdevname=0 net.ifnames=0 console=ttyS0,115200</cmdline>
</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>
<interface type='bridge'>
<mac address='12:00:00:AB:CD:02'/>
<source bridge='@@TEST_PREFIX@@192_1_3'/>
<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>
<seclabel type='static' model='dac' relabel='yes'>
<label>@@USER@@:@@GROUP@@</label>
<imagelabel>@@USER@@:@@GROUP@@</imagelabel>
</seclabel>
</domain>
|