mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-06 13:20:20 +00:00
7bfd6e97ec
If no network configuration is provided, LXC only provides the loopback interface. To match this, we need to use the privnet feature. LXC will also define a 'none' network type in its 1.0.0 version that fits libvirt LXC driver's default.
25 lines
648 B
XML
25 lines
648 B
XML
<domain type='lxc'>
|
|
<name>migrate_test</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory unit='KiB'>65536</memory>
|
|
<currentMemory unit='KiB'>0</currentMemory>
|
|
<vcpu placement='static' current='0'>1</vcpu>
|
|
<os>
|
|
<type>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>
|
|
<filesystem type='mount' accessmode='passthrough'>
|
|
<source dir='/var/lib/lxc/migrate_test/rootfs'/>
|
|
<target dir='/'/>
|
|
</filesystem>
|
|
</devices>
|
|
</domain>
|