[libvirt-users] getting name or uuid of vm within guest OS

Daniel P. Berrange berrange at redhat.com
Wed Jun 20 11:20:06 UTC 2012


On Wed, Jun 20, 2012 at 01:15:12PM +0430, Behrooz wrote:
> Hi,
> 
> for tl;dr people:
> how we can get uuid or name of a vm within a guest os?

The name is not exposed, but you can see the guest UUID in the
SMBIOS data. (see dmidecode command output)

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 :|




More information about the libvirt-users mailing list