<html><body>Hi,
<br>i converted LXC conf to xml by:
<br>
<br>lxcuser@blade1:~/.local/share/lxc/test_deb$ virsh -c lxc:///
domxml-from-native lxc-tools
/home/lxcuser/.local/share/lxc/test_deb/config
<br>
<br><domain type='lxc'>
<br> <name>test_deb</name>
<br> <uuid>cce77799-89fd-41fd-99c1-101e00844e23</uuid>
<br> <memory unit='KiB'>65536</memory>
<br> <currentMemory unit='KiB'>65536</currentMemory>
<br> <vcpu placement='static'>1</vcpu>
<br> <os>
<br> <type arch='x86_64'>exe</type>
<br> <init>/sbin/init</init>
<br> </os>
<br> <idmap>
<br> <uid start='1258512' target='0' count='65536'/>
<br> <gid start='1258512' target='0' count='65536'/>
<br> </idmap>
<br> <features>
<br> <capabilities policy='allow'>
<br> </capabilities>
<br> </features>
<br> <clock offset='utc'/>
<br> <on_poweroff>destroy</on_poweroff>
<br> <on_reboot>restart</on_reboot>
<br> <on_crash>destroy</on_crash>
<br> <devices>
<br> <emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
<br> <filesystem type='mount' accessmode='passthrough'>
<br> <source dir='/home/lxcuser/.local/share/lxc/test_deb/rootfs'/>
<br> <target dir='/'/>
<br> </filesystem>
<br> <interface type='bridge'>
<br> <mac address='00:16:3e:ab:21:1b'/>
<br> <source bridge='br0'/>
<br> <link state='up'/>
<br> </interface>
<br> </devices>
<br></domain>
<br>
<br>Now attempt to define by virsh gives this err:
<br>
<br>lxcuser@blade1:~/.local/share/lxc/test_deb$ virsh -c lxc:/// define tmp/test_deb.xml
<br>error: Failed to define domain from /tmp/test_deb.xml
<br>error: unsupported configuration: You must map the root user of container
<br>
<br>Debian stretch.
<br>Where am I wrong ?</body></html>