45 lines
1.3 KiB
XML
45 lines
1.3 KiB
XML
<domain type='kvm'>
|
|
<name>{{ instance.name }}</name>
|
|
<vcpu>{{ instance.cpus }}</vcpu>
|
|
<currentMemory unit='MiB'>{{ instance.memory|megabytes }}</currentMemory>
|
|
<memory unit='MiB'>{{ instance.memory|megabytes }}</memory>
|
|
<os>
|
|
<type>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<devices>
|
|
<interface type='bridge'>
|
|
<mac address='{{ instance.mac }}' />
|
|
<source bridge='{{ config.bridge }}'/>
|
|
<filterref filter='clean-traffic'>
|
|
<parameter name='IP' value='{{ instance.ip }}' />
|
|
<parameter name='MAC' value='{{ instance.mac }}' />
|
|
</filterref>
|
|
<model type='virtio'/>
|
|
</interface>
|
|
<serial type='pty'>
|
|
<source path='/dev/pts/3'/>
|
|
<target port='0'/>
|
|
</serial>
|
|
<graphics type='vnc' autoport='yes' listen='127.0.0.1'>
|
|
<listen type='address' address='127.0.0.1'/>
|
|
</graphics>
|
|
<video/>
|
|
<disk type='block' device='disk'>
|
|
<driver name='qemu' type='raw' />
|
|
<source dev='{{ instance.storage_path }}'/>
|
|
<target dev='vda' bus='virtio' />
|
|
</disk>
|
|
<disk type='file' device='disk'>
|
|
<driver name='qemu' type='raw' />
|
|
<source file='{{ instance.ds_path }}' />
|
|
<target dev='vdb' bus='virtio' />
|
|
</disk>
|
|
</devices>
|
|
</domain>
|