Re: [libvirt] Host IP Address

2010-06-24 Thread IKI-サガル バルウェ
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

Re: [libvirt] Host IP Address

2010-06-23 Thread IKI-サガル バルウェ
->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-

Re: [libvirt] Host IP Address

2010-06-22 Thread 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

[libvirt] Host IP Address

2010-06-22 Thread IKI-サガル バルウェ
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

Re: [libvirt] 1. Domain Destroy , 2. Domain boot on a different host and 3. Domain start time

2010-06-17 Thread IKI-サガル バルウェ
: "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

Re: [libvirt] 1. Domain Destroy , 2. Domain boot on a different host and 3. Domain start time

2010-06-17 Thread IKI-サガル バルウェ
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

[libvirt] 1. Domain Destroy , 2. Domain boot on a different host and 3. Domain start time

2010-06-17 Thread IKI-サガル バルウェ
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

[libvirt] IP Address of a domain

2010-06-16 Thread IKI-サガル バルウェ
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

Re: [libvirt] Virtual disk size associated with a Domain

2010-06-14 Thread IKI-サガル バルウェ
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

Re: [libvirt] Create a copy of a Domain

2010-06-14 Thread IKI-サガル バルウェ
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

[libvirt] Virtual disk size associated with a Domain

2010-06-11 Thread IKI-サガル バルウェ
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

Re: [libvirt] Create a copy of a Domain

2010-06-10 Thread IKI-サガル バルウェ
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

[libvirt] Create a copy of a Domain

2010-06-10 Thread IKI-サガル バルウェ
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

Re: [libvirt] VM/Domain "Start" method in libvirt API

2010-06-07 Thread IKI-サガル バルウェ
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

[libvirt] VM/Domain "Start" method in libvirt API

2010-06-06 Thread IKI-サガル バルウェ
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