mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
89dda12b8d
If none of the 'capabilities' features are enabled we'd still format the opening and closing tag for the <capabilities element. The implementation is suboptimal but will be refactored for a better approach. This is done prior to the refactor to show that tests are not impacted. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
45 lines
1.4 KiB
XML
45 lines
1.4 KiB
XML
<domain type='lxc'>
|
|
<name>migrate_test</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory unit='KiB'>65536</memory>
|
|
<currentMemory unit='KiB'>65536</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<os>
|
|
<type>exe</type>
|
|
<init>/sbin/init</init>
|
|
</os>
|
|
<features>
|
|
<capabilities policy='allow'/>
|
|
</features>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/libexec/libvirt_lxc</emulator>
|
|
<filesystem type='mount' accessmode='passthrough'>
|
|
<source dir='/var/lib/lxc/migrate_test/rootfs'/>
|
|
<target dir='/'/>
|
|
</filesystem>
|
|
<interface type='direct'>
|
|
<mac address='02:00:15:8f:05:c1'/>
|
|
<source dev='eth0' mode='vepa'/>
|
|
<link state='up'/>
|
|
</interface>
|
|
<hostdev mode='capabilities' type='net'>
|
|
<source>
|
|
<interface>eth0</interface>
|
|
</source>
|
|
<ip address='192.168.122.2' family='ipv4' prefix='24'/>
|
|
<ip address='2003:db8:1:0:214:1234:fe0b:3596' family='ipv6' prefix='64'/>
|
|
<route family='ipv4' address='0.0.0.0' gateway='192.168.122.1'/>
|
|
<route family='ipv6' address='::' gateway='2003:db8:1:0:214:1234:fe0b:3595'/>
|
|
</hostdev>
|
|
<hostdev mode='capabilities' type='net'>
|
|
<source>
|
|
<interface>eth0.2</interface>
|
|
</source>
|
|
</hostdev>
|
|
</devices>
|
|
</domain>
|