On 08/21/2012 05:57 AM, Guido Günther wrote: > This allows to retrieve the guest's hostname via gethostname(2). > > This can be useful to identify a VM e.g. one without network. > > Signed-off-by: Guido Günther <a...@sigxcpu.org> > --- > We have an API in libvirt for that (virDomainGetHostname). > Cheers > -- Guido
Still, this feels like a new feature and not a bug fix, so > + > +## > +# @guest-get-hostname: > +# > +# Get the guest's hostname > +# > +# Returns: The guest's hostname > +# > +# Since: 1.2 ...this should probably be 1.3. -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature