[libvirt] question about the commands: domhostname and hostname

Li Zhang zhlcindy at gmail.com
Wed Sep 12 05:59:13 UTC 2012


Sorry for wrong subject prefix of my mail, correct it. -:)

On Wed, Sep 12, 2012 at 1:57 PM, Li Zhang <zhlcindy at gmail.com> wrote:
> Hi all,
>
> I am testing the virsh commands, and I found that these two commands:
>  * domhostname
>  * hostname
>
> From the manual of virsh commands:
> * hostname
>            Print the hypervisor hostname.
> * domhostname domain
>            Returns the hostname of a domain, if the hypervisor makes
> it available
>
> It seems that both of them want to get the host name. What's the
> difference between them?
>
> From the source code, domhostname only is supported for openvz on 0.10.1.
> Will this  be only for openvz in the future?
>
> Any idea?
>
> Thanks a lot in advance. -:)
>
> --
> Best Regards
> -Li



-- 

Best Regards
-Li




More information about the libvir-list mailing list