Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (46 sloc) 1.21 KB
<domain type='kvm'>
<name>{{ .Machine.Name }}</name>
<currentMemory unit="b">{{ .Plan.Memory }}</currentMemory>
<metadata>
{{ .Metadata }}
</metadata>
<memory unit="b">{{ .Plan.Memory }}</memory>
<os>
<type arch='{{ .Image.Arch }}'>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>