Never use gethostbyname in any new code. It is long since obsolete, not
thread safe and is hardcoded to only work with IPv4.
There is a good exmaple of how to use the modern replacemenbt,
getaddrinfo(),
to resolve hostnames here:
http://people.redhat.com/drepper/userapi-ipv6.html
Oh, sor
->h_addr_list[i]);
printf ("\n");
}
I got the idea of what to do. Thanks.
Thanks and Regards
Sagar Barve
- Original Message -
From: "Maximilian Wilhelm"
To:
Sent: Wednesday, June 23, 2010 4:23 PM
Subject: Re: [libvirt] Host IP Address
Anno domini 2010 IKI-
e: [libvirt] Host IP Address
Anno domini 2010 IKI-サガル バルウェ scripsit:
Hi!
I was trying to figure out a way to get the IP Address of the host, in
which
a particular VM is running using the LibvirtAPI. For Eg.; If I have a VM
object, then I would like to fetch the IP Address of the host in which
Hi,
I was trying to figure out a way to get the IP Address of the host, in which
a particular VM is running using the LibvirtAPI. For Eg.; If I have a VM
object, then I would like to fetch the IP Address of the host in which this
VM is running, programatically.
Is there a way to do this using t
: "IKI-サガル バルウェ"
Cc:
Sent: Thursday, June 17, 2010 8:39 PM
Subject: Re: [libvirt] 1. Domain Destroy , 2. Domain boot on a different
host and 3. Domain start time
On 06/17/2010 07:04 PM, IKI-サガル バルウェ wrote:
I understood now what the destroy function does. As for "domainUnd
part. Firstly,
how will I get the domain from server A to server B to launch it there? By
migrating it to server B?
Please help.
Thanks and Regards
Sagar Barve
- Original Message -
From: "Justin Clift"
To: "IKI-サガル バルウェ"
Cc:
Sent: Thursday, June 17, 20
Hello,
Firstly, I have some confusion about the libvirt API "virDomainDestroy"
method. here is the link to API:
http://libvirt.org/html/libvirt-libvirt.html#virDomainDestroy
Does this method completely removes the domain from the system? I have
confusion because the "virsh destroy" tool option
Hello,
I would like to obtain the IP Address of a domain using the libvirt API.
I see that the XMLDesc gives the MAC address, but not the IP Address.
I found out that the "vncdisplay" command option from "virsh" command line
tool provides the IP Address and port number. How would I obtain this
hen please guide me on that also.
Please help.
Thanks and Regards
Sagar Barve
- Original Message -
From: "Daniel P. Berrange"
To: "IKI-サガル バルウェ"
Cc:
Sent: Friday, June 11, 2010 6:43 PM
Subject: Re: [libvirt] Virtual disk size associated with a Domain
> On Fri
ld understand.
Please help me with this.
Thanks and Regards
Sagar Barve
- Original Message -
From: "Daniel P. Berrange"
To: "IKI-サガル バルウェ"
Cc: "Philipp Hahn" ;
Sent: Friday, June 11, 2010 6:32 PM
Subject: Re: [libvirt] Create a copy of a Domain
On Fri, Jun 11, 2010
Hello,
Is there any way to fetch the size of all the virtual disks associated with
a Domain??
I could not find one in the libvirt API., I tried using 'virStorageVol' and
'virStoragePool', but they returned null objects.
Also I fetched 'virDomainBlockStats', but did not understand the informatio
Thu, Jun 10, 2010 at 10:58:54AM +0200, Philipp Hahn wrote:
Hello,
Am Donnerstag 10 Juni 2010 10:28:15 schrieb IKI-サガル バルウェ:
> 1. Get the XML Desc of the source Domain using "virDomainGetXMLDesc".
> 2. Get the Hypervisor Object for the source Domain using
> "virDomainGetConne
Hello All,
I am trying to create a Domain/VM copy program.
In this program, a completely new domain should be created from a source
domain.
What I tried so far is this:
1. Get the XML Desc of the source Domain using "virDomainGetXMLDesc".
2. Get the Hypervisor Object for the source Domain using
omain in a different physical
hypervisor machine instead of the original.
Thanks and Regards
Sagar Barve
- Original Message -
From: Jaromír Červenka
To: IKI-サガル バルウェ
Cc: libvir-list@redhat.com
Sent: Monday, June 07, 2010 3:20 PM
Subject: Re: [libvirt] VM/Domain "Start" m
Hi,
I was referring to the libvirt API reference from the foll link:
http://www.libvirt.org/html/libvirt-libvirt.html
There are functions for Suspending, ShuttingDown or Rebooting the VM like
virDomainSuspend, virDomainShutdown or virDomainReboot respectively.
But I did not find any method for
15 matches
Mail list logo