/etc/vmbuilder/libvirt/libvirtxml.tmpl is in python-vm-builder 0.12.4+bzr489-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <domain type='$domain_type'>
<name>$hostname</name>
<memory>#echo int($mem) * 1024 #</memory>
<vcpu>$cpus</vcpu>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
#if $bridge
<interface type='bridge'>
<source bridge='$bridge'/>
#else
<interface type='network'>
<source network='$network'/>
#end if
#if $mac
<mac address='$mac'/>
#end if
#if $virtio_net
<model type='virtio'/>
#end if
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' listen='127.0.0.1'/>
#for $disk in $disks
<disk type='file' device='disk'>
#if $disk.format_type != None
<driver name='qemu' type='$disk.format_type' />
#end if
<source file='$disk.filename' />
<target dev='hd$disk.devletters()' />
</disk>
#end for
</devices>
</domain>
|