[libvirt-users] How to get uuid info inside a lxc container created by libvirt_lxc

Eric Blake eblake at redhat.com
Tue Jul 8 04:06:52 UTC 2014


On 07/07/2014 10:02 PM, Qiang Guan wrote:
> Hi ,
> 
> Is there anyway to get uuid info inside a lxc container which is created
> by libvirt_lxc?
> 
> For kvm, we can use dmidecode or lshw to get this info inside vm. Is
> there any tools
> to do this thing for libvirt lxc?

Per the docs:
http://libvirt.org/drvlxc.html#envvars
pid 1 inside lxc inherits $container_uuid into its environment variables.

-- 
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/libvirt-users/attachments/20140707/564be594/attachment.sig>


More information about the libvirt-users mailing list