36 lines
870 B
XML
36 lines
870 B
XML
<domain type="lxc">
|
|
<name>{{ name }}</name>
|
|
<uuid>{{ uuid }}</uuid>
|
|
<memory unit="KiB">{{ mem }}</memory>
|
|
<vcpu placement="static">1</vcpu>
|
|
<os>
|
|
<type arch="x86_64">exe</type>
|
|
<init>/sbin/init</init>
|
|
</os>
|
|
<features>
|
|
<privnet/>
|
|
</features>
|
|
<clock offset="utc"/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
|
|
<filesystem type="mount" accessmode="mapped">
|
|
<source dir="{{ filesystem_root }}"/>
|
|
<target dir="/"/>
|
|
</filesystem>
|
|
|
|
{% for net in networks %}
|
|
<interface type="network">
|
|
<mac address="{{ net.mac }}"/>
|
|
<source network="{{ net.name }}"/>
|
|
</interface>
|
|
{% endfor %}
|
|
|
|
<console type="pty">
|
|
<target type="lxc" port="0"/>
|
|
</console>
|
|
</devices>
|
|
</domain>
|
|
|