[libvirt] What is the robust/recommended way to retrieve the PID of a VM's init process ?

Eric Blake eblake at redhat.com
Mon Jan 20 18:00:24 UTC 2014


On 01/20/2014 10:53 AM, Thierry Parmentelat wrote:
> Hi

[please don't top-post on technical lists]

> 
> Admittedly I’m brain-damaged after having used vservers for too long, and their ‘vserver <container> exec command to run’ feature is in my genes now ;)
> 
> Now maybe I am the one who is missing something and there already is something to do that ?

Why doesn't 'virsh lxc-enter-namespace $dom command to run' work for
you?  There's also the setuid executable 'virt-login-shell' for a
special subset of LXC domains (where the current user can do
'virt-login-shell' to gain a shell access to the domain named after
their username, once you configure things to allow that user to access
virt-login-shell').

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140120/70f4a335/attachment-0001.sig>


More information about the libvir-list mailing list