[libvirt-users] virt-install --connect lxc:///

ales drtik aldrtik at post.cz
Wed Mar 28 12:03:26 UTC 2018


Hi,
I would like to install LXC container by virt-install.

>From man:

virt-install \
--connect lxc:/// \
--name container \
--memory 128 \
--filesystem /home/LXC,/ \
--init /bin/sh


But my err is:
 root at blade1:/home/lxcuser/LXC# virt-install --connect lxc:/// --name test_LXC --memory 128 --filesystem \ /home/lxcuser/LXC,/ --init /bin/sh
WARNING  No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results.

Starting install...
ERROR    internal error: guest failed to start: Failure in libvirt_lxc startup: Failed to create  /home/lxcuser/LXC/.oldroot: Invalid argument

Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
  virsh --connect lxc:/// start test_LXC
otherwise, please restart your installation.

What is wrong with this?








More information about the libvirt-users mailing list