Re: How can I run command in containers on the host?

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

 



On Tue, Jul 26, 2016 at 04:58:40PM +0800, John Y. wrote:
> How can I run command in containers on the host? Just like the lxc command
> lxc-attach.
> I run :
> virsh -c lxc:/// lxc-enter-namespace fedora2 --noseclabel /bin/ls
> 
> but get error:
> libvirt:  error : Expected at least one file descriptor
> error: internal error: Child process (14930) unexpected exit status 125

[snip]

> Is there any mistake?

No, your example is correct. Can you try with

 LIBVIRT_DEBUG=1 virsh -c lxc:/// lxc-enter-namespace fedora2 --noseclabel /bin/ls

so we can see if we get more useful debug info


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux