-
Notifications
You must be signed in to change notification settings - Fork 52
/
vm.dist.xml.in
57 lines (53 loc) · 1.48 KB
/
vm.dist.xml.in
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
<domain type='kvm'>
<name>{{ .Machine.Name }}</name>
<currentMemory unit="b">{{ .Plan.Memory }}</currentMemory>
<metadata>
<vmango:md xmlns:vmango="http://vmango.org/schema/md">
<vmango:os>{{ .Image.OS }}</vmango:os>
<vmango:sshkeys>
{{ range .Machine.SSHKeys }}
<vmango:key name="{{ .Name }}">{{ .Public }}</vmango:key>
{{ end }}
</vmango:sshkeys>
</vmango:md>
</metadata>
<memory unit="b">{{ .Plan.Memory }}</memory>
<os>
<type arch='{{ .Image.ArchString2 }}'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset="utc"/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<vcpu>{{ .Plan.Cpus }}</vcpu>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='{{ .Image.TypeString }}' cache='none'/>
<source file='{{ .VolumePath }}'/>
<target dev='vda' bus='virtio'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<interface type='network'>
<source network='{{ .Network }}'/>
<model type='virtio'/>
</interface>
<input type='tablet' bus='usb'/>
<graphics type='vnc' port='-1'/>
<console type='pty'/>
<sound model='ac97'/>
<video>
<model type='cirrus'/>
</video>
</devices>
</domain>