b399e6ffce133aa827edcd3622025595444fc61c
[genesis.git] / compass / deploy / template / vm / host.xml
1 <domain type='kvm'>
2   <name>REPLACE_NAME</name>
3   <memory unit='MiB'>REPLACE_MEM</memory>
4   <currentMemory unit='MiB'>REPLACE_MEM</currentMemory>
5   <vcpu placement='static'>REPLACE_CPU</vcpu>
6   <os>
7     <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
8     <boot dev='hd'/>
9     <boot dev='network'/>
10     <bios useserial='yes' rebootTimeout='0'/>
11   </os>
12   <features>
13     <acpi/>
14     <apic/>
15     <pae/>
16   </features>
17   <clock offset='utc'/>
18   <on_poweroff>destroy</on_poweroff>
19   <on_reboot>restart</on_reboot>
20   <on_crash>restart</on_crash>
21   <devices>
22     <emulator>/usr/bin/kvm-spice</emulator>
23     <disk type='file' device='disk'>
24       <driver name='qemu' type='raw'/>
25       <source file='REPLACE_IMAGE'/>
26       <target dev='vda' bus='virtio'/>
27     </disk>
28     <interface type='bridge'>
29       <mac address=REPLACE_BOOT_MAC/>
30       <source bridge='REPLACE_BRIDGE_MGMT'/>
31       <model type='virtio'/>
32       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
33     </interface>
34     <interface type='bridge'>
35       <source bridge='REPLACE_BRIDGE_TENANT'/>
36       <model type='virtio'/>
37       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
38     </interface>
39     <interface type='bridge'>
40       <source bridge='REPLACE_BRIDGE_PUBLIC'/>
41       <model type='virtio'/>
42       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
43     </interface>
44     <interface type='bridge'>
45       <source bridge='REPLACE_BRIDGE_STORAGE'/>
46       <model type='virtio'/>
47       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
48     </interface>
49     <serial type='pty'>
50       <source path='/dev/pts/0'/>
51     </serial>
52     <console type='pty' tty='/dev/pts/0'>
53       <source path='/dev/pts/0'/>
54       <target type='serial' port='0'/>
55     </console>
56     <input type='mouse' bus='ps2'/>
57     <input type='keyboard' bus='ps2'/>
58     <graphics type='vnc' port='5901' autoport='yes' listen='0.0.0.0'>
59       <listen type='address' address='0.0.0.0'/>
60     </graphics>
61     <video>
62       <model type='cirrus' vram='9216' heads='1'/>
63       <alias name='video0'/>
64       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
65     </video>
66   </devices>
67 </domain>