Merge "Remove Compass from genesis."
[genesis.git] / opensteak / tools / templates_foreman / kvm-config
1 <domain type='kvm'>
2   <name>${name}</name>
3   <memory>${ram}</memory>
4   <currentMemory>${ram}</currentMemory>
5   <vcpu>${cpu}</vcpu>
6   <os>
7     <type arch='x86_64'>hvm</type>
8     <!-- uncomment to enable PXE boot
9     <boot dev='network'/>
10     -->
11     <boot dev='hd'/>
12   </os>
13   <features>
14     <acpi/><apic/><pae/>
15   </features>
16   <clock offset="utc"/>
17   <on_poweroff>preserve</on_poweroff>
18   <on_reboot>restart</on_reboot>
19   <on_crash>restart</on_crash>
20   <devices>
21     <emulator>/usr/bin/qemu-system-x86_64</emulator>
22     <disk type='file' device='disk'>
23       <driver name='qemu' type='qcow2'/>
24       <source file='/var/lib/libvirt/images/${name}'/>
25       <target dev='vda' bus='virtio'/>
26     </disk>
27     <disk type='file' device='disk'>
28       <driver name='qemu' type='raw'/>
29       <source file='/var/lib/libvirt/images/${name}-configuration.iso'/>
30       <target dev='vdb' bus='virtio'/>
31     </disk>
32     <input type='mouse' bus='ps2'/>
33     <!-- uncomment to allow virsh console
34     <console type='pty'/>
35     <!- - end -->
36     <!-- uncomment to allow console to a log file -->
37     <serial type='file'>
38       <source path='/var/log/libvirt/qemu/${name}-serial.log'/>
39       <target port='0'/>
40       <alias name='serial0'/>
41     </serial>
42     <serial type='pty'>
43       <source path='/dev/pts/1'/>
44       <target port='1'/>
45       <alias name='serial1'/>
46     </serial>
47     <console type='file'>
48       <source path='/var/log/libvirt/qemu/${name}-serial.log'/>
49       <target type='serial' port='0'/>
50       <alias name='serial0'/>
51     </console>
52     <!-- end -->
53     <graphics type='spice' port='-1' autoport='no'/>
54     <video>
55       <model type='qxl' ram='65536' vram='65536' heads='1'/>
56       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
57     </video>
58     <memballoon model='virtio'/>
59     <interface type='bridge'>
60       <source bridge='${bridge}'/>
61       ${bridgeconfig}
62       <model type='virtio'/>
63     </interface>
64   </devices>
65 </domain>