|
@@ -0,0 +1,60 @@
|
|
|
|
|
+<domain type='kvm'>
|
|
|
|
|
+ <name>ubuntu-template</name>
|
|
|
|
|
+ <memory unit='KiB'>1048576</memory>
|
|
|
|
|
+ <currentMemory unit='KiB'>1048576</currentMemory>
|
|
|
|
|
+ <vcpu placement='static'>1</vcpu>
|
|
|
|
|
+ <os>
|
|
|
|
|
+ <type arch='x86_64' machine='pc-i440fx-6.2'>hvm</type>
|
|
|
|
|
+ <boot dev='hd'/>
|
|
|
|
|
+ </os>
|
|
|
|
|
+ <features>
|
|
|
|
|
+ <acpi/>
|
|
|
|
|
+ <apic/>
|
|
|
|
|
+ </features>
|
|
|
|
|
+ <cpu mode='host-model' check='partial'/>
|
|
|
|
|
+ <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>destroy</on_crash>
|
|
|
|
|
+ <pm>
|
|
|
|
|
+ <suspend-to-mem enabled='no'/>
|
|
|
|
|
+ <suspend-to-disk enabled='no'/>
|
|
|
|
|
+ </pm>
|
|
|
|
|
+ <devices>
|
|
|
|
|
+ <emulator>/usr/bin/kvm</emulator>
|
|
|
|
|
+ <disk type='file' device='disk'>
|
|
|
|
|
+ <driver name='qemu' type='qcow2'/>
|
|
|
|
|
+ <source file='/mnt/vms/images/ubuntu.qcow2'/>
|
|
|
|
|
+ <target dev='vda' bus='virtio'/>
|
|
|
|
|
+ </disk>
|
|
|
|
|
+ <disk type='file' device='cdrom'>
|
|
|
|
|
+ <driver name='qemu' type='raw'/>
|
|
|
|
|
+ <target dev='hda' bus='ide'/>
|
|
|
|
|
+ <readonly/>
|
|
|
|
|
+ </disk>
|
|
|
|
|
+ <interface type='network'>
|
|
|
|
|
+ <mac address='52:54:00:00:00:01'/>
|
|
|
|
|
+ <source network='default'/>
|
|
|
|
|
+ <model type='virtio'/>
|
|
|
|
|
+ </interface>
|
|
|
|
|
+ <console type='pty'>
|
|
|
|
|
+ <target type='serial' port='0'/>
|
|
|
|
|
+ </console>
|
|
|
|
|
+ <input type='tablet' bus='usb'>
|
|
|
|
|
+ <address type='usb' bus='0' port='1'/>
|
|
|
|
|
+ </input>
|
|
|
|
|
+ <input type='mouse' bus='ps2'/>
|
|
|
|
|
+ <input type='keyboard' bus='ps2'/>
|
|
|
|
|
+ <graphics type='vnc' port='-1' autoport='yes'/>
|
|
|
|
|
+ <video>
|
|
|
|
|
+ <model type='cirrus' vram='16384' heads='1' primary='yes'/>
|
|
|
|
|
+ </video>
|
|
|
|
|
+ <memballoon model='virtio'>
|
|
|
|
|
+ <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
|
|
|
|
|
+ </memballoon>
|
|
|
|
|
+ </devices>
|
|
|
|
|
+</domain>
|