[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



On Wed, Mar 28, 2018 at 04:16:50PM +0200, ales drtik wrote:
> After reboot of the host i have different error message:
> 
> root blade1:~#  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: cannot find init path '/bin/sh' relative to container root: No such file or directory
> 
> 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.
> root blade1:~# ls -al /home/lxcuser/LXC
> total 24
> drwxr-xr-x  6 root    root    4096 Mar 28 16:09 .
> drwxr-xr-x+ 7 lxcuser lxcuser 4096 Mar 28 13:20 ..
> drwxr-xr-x  2 root    root    4096 Mar 28 16:09 dev
> drwxr-xr-x  2 root    root    4096 Mar 28 16:09 .oldroot
> drwxr-xr-x  2 root    root    4096 Mar 28 16:09 proc
> drwxr-xr-x  2 root    root    4096 Mar 28 16:09 sys

You've asked libvirt to run '/bin/sh', and your pointing the container
root filesystem to '/home/lxcuser/LXC'.  IOW, you must have a binary
'/home/lxcuser/LXC/bin/sh', which doesn not seem to exoist, since you've
not even got a "bin" directory there.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]