[libvirt] [libvirt-list] question about the commands: domhostname and hostname

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

Sorry for wrong subject prefix of my mail, correct it. -:) On Wed, Sep 12, 2012 at 1:57 PM, Li Zhang <zhlcindy@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

On 09/12/2012 07:59 AM, Li Zhang wrote:
Sorry for wrong subject prefix of my mail, correct it. -:)
The [libvirt] tag in the prefix is done automatically, you don't have to do that ;)
On Wed, Sep 12, 2012 at 1:57 PM, Li Zhang <zhlcindy@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?
Basically it's what's written. "virsh hostname" will give you the hostname of the hypervisor (host), but "virsh domhostname <domain>" is trying to get the hostname of the specified domain (guest).
From the source code, domhostname only is supported for openvz on 0.10.1. Will this be only for openvz in the future?
I don't know about anyone trying to work on this, but it doesn't mean it won't change. It's possible to implement it for some other hypervisors as well, but nobody had the need to, I guess.
Any idea?
Thanks a lot in advance. -:)
-- Best Regards -Li
Martin

On Wed, Sep 12, 2012 at 2:40 PM, Martin Kletzander <mkletzan@redhat.com> wrote:
On 09/12/2012 07:59 AM, Li Zhang wrote:
Sorry for wrong subject prefix of my mail, correct it. -:)
The [libvirt] tag in the prefix is done automatically, you don't have to do that ;)
Got it, thanks. :)
On Wed, Sep 12, 2012 at 1:57 PM, Li Zhang <zhlcindy@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?
Basically it's what's written. "virsh hostname" will give you the hostname of the hypervisor (host), but "virsh domhostname <domain>" is trying to get the hostname of the specified domain (guest).
Oh, domhostname is the guest's name. Am I right? I saw virsh also has such a command to get guest's name: $virsh domname domain-id-or-uuid
From the source code, domhostname only is supported for openvz on 0.10.1. Will this be only for openvz in the future?
I don't know about anyone trying to work on this, but it doesn't mean it won't change. It's possible to implement it for some other hypervisors as well, but nobody had the need to, I guess.
I see, thanks a lot for your reply!
Any idea?
Thanks a lot in advance. -:)
-- Best Regards -Li
Martin
-- Best Regards -Li

On 09/12/2012 08:50 AM, Li Zhang wrote:
On Wed, Sep 12, 2012 at 2:40 PM, Martin Kletzander <mkletzan@redhat.com> wrote:
On 09/12/2012 07:59 AM, Li Zhang wrote:
Sorry for wrong subject prefix of my mail, correct it. -:)
The [libvirt] tag in the prefix is done automatically, you don't have to do that ;)
Got it, thanks. :)
On Wed, Sep 12, 2012 at 1:57 PM, Li Zhang <zhlcindy@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?
Basically it's what's written. "virsh hostname" will give you the hostname of the hypervisor (host), but "virsh domhostname <domain>" is trying to get the hostname of the specified domain (guest).
Oh, domhostname is the guest's name. Am I right?
domhostname is the guest's hostname, however...
I saw virsh also has such a command to get guest's name: $virsh domname domain-id-or-uuid
...this is the name of the domain (basically this function converts ID or UUID of the domain to its name).
From the source code, domhostname only is supported for openvz on 0.10.1. Will this be only for openvz in the future?
I don't know about anyone trying to work on this, but it doesn't mean it won't change. It's possible to implement it for some other hypervisors as well, but nobody had the need to, I guess.
I see, thanks a lot for your reply!
Any idea?
Thanks a lot in advance. -:)
-- Best Regards -Li
Martin

On Wed, Sep 12, 2012 at 2:58 PM, Martin Kletzander <mkletzan@redhat.com> wrote:
On 09/12/2012 08:50 AM, Li Zhang wrote:
On Wed, Sep 12, 2012 at 2:40 PM, Martin Kletzander <mkletzan@redhat.com> wrote:
On 09/12/2012 07:59 AM, Li Zhang wrote:
Sorry for wrong subject prefix of my mail, correct it. -:)
The [libvirt] tag in the prefix is done automatically, you don't have to do that ;)
Got it, thanks. :)
On Wed, Sep 12, 2012 at 1:57 PM, Li Zhang <zhlcindy@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?
Basically it's what's written. "virsh hostname" will give you the hostname of the hypervisor (host), but "virsh domhostname <domain>" is trying to get the hostname of the specified domain (guest).
Oh, domhostname is the guest's name. Am I right?
domhostname is the guest's hostname, however...
I saw virsh also has such a command to get guest's name: $virsh domname domain-id-or-uuid
...this is the name of the domain (basically this function converts ID or UUID of the domain to its name).
Ah, I see. -:) Thanks.
From the source code, domhostname only is supported for openvz on 0.10.1. Will this be only for openvz in the future?
I don't know about anyone trying to work on this, but it doesn't mean it won't change. It's possible to implement it for some other hypervisors as well, but nobody had the need to, I guess.
I see, thanks a lot for your reply!
Any idea?
Thanks a lot in advance. -:)
-- Best Regards -Li
Martin
-- Best Regards -Li

On Wed, Sep 12, 2012 at 08:40:12AM +0200, Martin Kletzander wrote:
On 09/12/2012 07:59 AM, Li Zhang wrote:
Sorry for wrong subject prefix of my mail, correct it. -:)
The [libvirt] tag in the prefix is done automatically, you don't have to do that ;)
On Wed, Sep 12, 2012 at 1:57 PM, Li Zhang <zhlcindy@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?
Basically it's what's written. "virsh hostname" will give you the hostname of the hypervisor (host), but "virsh domhostname <domain>" is trying to get the hostname of the specified domain (guest).
Qemu support is in the works: https://lists.gnu.org/archive/html/qemu-devel/2012-08/msg03821.html but it's stalled since I couldn't get virtio-serial to work on windows and didn't get a chance to revisit it yet. Cheers, -- Guido
From the source code, domhostname only is supported for openvz on 0.10.1. Will this be only for openvz in the future?
I don't know about anyone trying to work on this, but it doesn't mean it won't change. It's possible to implement it for some other hypervisors as well, but nobody had the need to, I guess.
Any idea?
Thanks a lot in advance. -:)
-- Best Regards -Li
Martin
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On Thu, Sep 13, 2012 at 3:18 PM, Guido Günther <agx@sigxcpu.org> wrote:
On Wed, Sep 12, 2012 at 08:40:12AM +0200, Martin Kletzander wrote:
On 09/12/2012 07:59 AM, Li Zhang wrote:
Sorry for wrong subject prefix of my mail, correct it. -:)
The [libvirt] tag in the prefix is done automatically, you don't have to do that ;)
On Wed, Sep 12, 2012 at 1:57 PM, Li Zhang <zhlcindy@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?
Basically it's what's written. "virsh hostname" will give you the hostname of the hypervisor (host), but "virsh domhostname <domain>" is trying to get the hostname of the specified domain (guest).
Qemu support is in the works:
https://lists.gnu.org/archive/html/qemu-devel/2012-08/msg03821.html
but it's stalled since I couldn't get virtio-serial to work on windows and didn't get a chance to revisit it yet.
Got it, I saw it. Thanks Guido. I seems that it also needs some work in QEMU. :-)
Cheers, -- Guido
From the source code, domhostname only is supported for openvz on 0.10.1. Will this be only for openvz in the future?
I don't know about anyone trying to work on this, but it doesn't mean it won't change. It's possible to implement it for some other hypervisors as well, but nobody had the need to, I guess.
Any idea?
Thanks a lot in advance. -:)
-- Best Regards -Li
Martin
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- Best Regards -Li
participants (3)
-
Guido Günther
-
Li Zhang
-
Martin Kletzander