search for: virdomaingetid

Displaying 14 results from an estimated 14 matches for "virdomaingetid".

Did you mean: virdomaingetuuid
2017 Mar 06
1
Re: domain reinitalization detection
...it will have ID=1. This applies to qemu driver, other drivers might have different meaning for domain IDs - e.g. LXC driver reports PID of the container's init in which case you can make no assumptions about it. > > And related question is how to resolve virDomainPtr into domain ID ? virDomainGetID(). > The only verified way of getting domain ID I know is to memorize it's UUID, then call virConnectListDomains , then iterate over all returned domain IDs and resolve each one's pointer using virDomainLookupByID , then get UUID by virDomainGetUUIDString get domain ID of match...
2017 Mar 06
2
domain reinitalization detection
Hello I'm trying to find out how to detect if domain was destroyed and brought up between two time moments, let's call it reads. So far the best approach I could find is to compare domain ID from previous and current read. And this is my first question : is that reliable solution ? Or do you know any better ? And related question is how to resolve virDomainPtr into domain ID ? The
2017 Mar 06
0
Re: domain reinitalization detection
...it will have ID=1. This applies to qemu driver, other drivers might have different meaning for domain IDs - e.g. LXC driver reports PID of the container's init in which case you can make no assumptions about it. > > And related question is how to resolve virDomainPtr into domain ID ? virDomainGetID(). > The only verified way of getting domain ID I know is to memorize it's UUID, then call virConnectListDomains , then iterate over all returned domain IDs and resolve each one's pointer using virDomainLookupByID , then get UUID by virDomainGetUUIDString get domain ID of match...
2009 Jun 19
0
Re: [libvirt] domain.info() sometimes returns state zero for running machines
...rt.c: do_open (storage driver 1 storage returned DECLINED) >> DEBUG: libvirt.c: do_open (storage driver 2 remote returned SUCCESS) >> DEBUG: libvirt.c: virDomainLookupByID (conn=0x9b49048, id=2) >> DEBUG: hash.c: __virGetDomain (New hash entry 0x9b580a0) >> DEBUG: libvirt.c: virDomainGetID (domain=0x9b580a0) >> DEBUG: libvirt.c: virDomainGetName (domain=0x9b580a0) >> DEBUG: libvirt.c: virDomainGetUUIDString (domain=0x9b580a0, buf=0xbff74b07) >> DEBUG: libvirt.c: virDomainGetUUID (domain=0x9b580a0, uuid=0xbff74aac) >> DEBUG: libvirt.c: virDomainGetOSType (domai...
2020 Jan 10
2
Re: [PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
...Ref( virConnectSetKeepAlive( virConnResetLastError ( virConnSetErrorFunc ( virDomainAttachDeviceFlags ( virDomainBlockPeek ( virDomainBlockStats ( virDomainCreateXML ( virDomainDestroy ( virDomainDestroyFlags ( virDomainDetachDeviceFlags ( virDomainFree ( virDomainGetConnect ( virDomainGetCPUStats( virDomainGetID ( virDomainGetInfo ( virDomainGetMaxMemory ( virDomainGetName ( virDomainGetSchedulerParameters ( virDomainGetSchedulerType ( virDomainGetUUID ( virDomainGetUUIDString ( virDomainGetVcpus ( virDomainGetXMLDesc ( virDomainInterfaceStats ( virDomainLookupByID ( virDomainLookupByName ( virDomainLookup...
2020 Jan 10
5
[PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
libguestfs usually needs qemu. However it only requires an emulator for the same architecture, not for all architectures. libvirt-daemon-kvm pulls in qemu which pulls in emulators for all architectures, as well as a bunch of other stuff we don't need at all like network interface support and nwfilter. There are no Fedora TCG-only arches, so drop the conditional section. I also made support
2013 Sep 18
0
libvirt report error "error: End of file while reading data: Input/output error" when start domain
...: virNetClientIO:1803 : All done with our call head=(nil) call=0x2aad62a2e40 rv=0 debug : virNetMessageFree:72 : msg=0x2aad62a2ce0 nfds=0 cb=(nil) debug : virObjectNew:199 : OBJECT_NEW: obj=0x2aad62a2bb0 classname=virDomain debug : virObjectRef:293 : OBJECT_REF: obj=0x2aad62a1e10 debug : virDomainGetID:3598 : dom=0x2aad62a2bb0, (VM: name=vm1, uuid=22d16da9-e05d-4e0f-bab4-bbacdfb82c92) debug : virDomainCreate:9415 : dom=0x2aad62a2bb0, (VM: name=vm1, uuid=22d16da9-e05d-4e0f-bab4-bbacdfb82c92) debug : virNetMessageNew:44 : msg=0x2aad62a2ce0 tracked=0 debug : virNetMessageEncodePayload:373 :...
2019 Apr 08
0
[PATCH v4 2/7] common: Bundle the libvirt-ocaml library for use by virt-v2v
..._ERROR (r == NULL, "virConnectGetDomainCapabilities"); + + rv = caml_copy_string (r); + free (r); + CAMLreturn (rv); +} + +CAMLprim value +ocaml_libvirt_domain_get_id (value domv) +{ + CAMLparam1 (domv); + virDomainPtr dom = Domain_val (domv); + unsigned int r; + + NONBLOCKING (r = virDomainGetID (dom)); + /* In theory this could return -1 on error, but in practice + * libvirt never does this unless you call it with a corrupted + * or NULL dom object. So ignore errors here. + */ + + CAMLreturn (Val_int ((int) r)); +} + +CAMLprim value +ocaml_libvirt_domain_get_max_memory (value dom...
2019 Dec 16
3
[v2v PATCH 0/2] Move libvirt-ocaml copy to v2v repo
libvirt-ocaml is used only by virt-v2v, so move it to this repository, instead of having it around in the common submodule. The removal from common will happen later. Pino Toscano (2): common: Bundle the libvirt-ocaml library for use by virt-v2v build: switch embedded copy of libvirt-ocaml .gitignore | 2 + 3rdparty/libvirt-ocaml/Makefile.am |
2018 Aug 30
8
[PATCH 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2018 Nov 27
8
[PATCH v2 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 Jan 30
8
[PATCH v3 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 May 20
8
[PATCH v5 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all
2019 Apr 08
12
[PATCH 43 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all