Displaying 15 results from an estimated 15 matches for "virdomaingetnam".
Did you mean:
virdomaingetname
2010 Oct 01
1
undefining and redefining a Domain
...ine(dom))
printf("...unable to undefine!!!\n");
else {
printf("...undefined.");
free(dom);
}
}
dom = virDomainDefineXML(virt, SOME_XML);
if (dom != NULL) {
const char *name = virDomainGetName(dom);
printf("NAME IS NOW: %s\n", name);
} else
printf("dom is NULL!\n");
When executed the first time, the code correctly defines the domain, and
prints:
defining domain test2-vm
libvir: QEMU error : Domain not found: no domain with match...
2010 Oct 01
0
how to programmatically undefine and redefine a Domain?
...ine(dom))
printf("...unable to undefine!!!\n");
else {
printf("...undefined.");
free(dom);
}
}
dom = virDomainDefineXML(virt, SOME_XML);
if (dom != NULL) {
const char *name = virDomainGetName(dom);
printf("NAME IS NOW: %s\n", name);
} else
printf("dom is NULL!\n");
When executed the first time, the code correctly defines the domain, and
prints:
defining domain test2-vm
libvir: QEMU error : Domain not found: no domain with match...
2009 Jun 19
0
Re: [libvirt] domain.info() sometimes returns state zero for running machines
...t;> 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 (domain=0x9b580a0)
>> DEBUG: libvirt.c: virDomainGetInfo (doma...
2020 Jan 10
2
Re: [PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
...SetErrorFunc (
virDomainAttachDeviceFlags (
virDomainBlockPeek (
virDomainBlockStats (
virDomainCreateXML (
virDomainDestroy (
virDomainDestroyFlags (
virDomainDetachDeviceFlags (
virDomainFree (
virDomainGetConnect (
virDomainGetCPUStats(
virDomainGetID (
virDomainGetInfo (
virDomainGetMaxMemory (
virDomainGetName (
virDomainGetSchedulerParameters (
virDomainGetSchedulerType (
virDomainGetUUID (
virDomainGetUUIDString (
virDomainGetVcpus (
virDomainGetXMLDesc (
virDomainInterfaceStats (
virDomainLookupByID (
virDomainLookupByName (
virDomainLookupByUUIDString (
virDomainMemoryPeek (
virDomainMigrate (
virDo...
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
...ing connection close
callback 0x2aad61b6efc reason=0, opaque=(nil)
debug : virObjectUnref:256 : OBJECT_UNREF: obj=0x2aad62a2920
debug : virNetClientIO:1803 : All done with our call head=(nil)
call=0x2aad62a2ad0 rv=-1
debug : virNetMessageFree:72 : msg=0x2aad62a2ce0 nfds=0 cb=(nil)
debug : virDomainGetName:3510 : domain=0x2aad62a2bb0
debug : virDomainFree:2406 : dom=0x2aad62a2bb0, (VM: name=vm1,
uuid=22d16da9-e05d-4e0f-bab4-bbacdfb82c92)
debug : virObjectUnref:256 : OBJECT_UNREF: obj=0x2aad62a2bb0
debug : virObjectUnref:258 : OBJECT_DISPOSE: obj=0x2aad62a2bb0
debug : virDomainDispose:262 :...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...r ("realloc");
- exit (EXIT_FAILURE);
- }
+ if (domains == NULL)
+ error (EXIT_FAILURE, errno, "realloc");
domain = &domains[nr_domains];
nr_domains++;
@@ -198,18 +193,14 @@ add_domain (virDomainPtr dom)
domain->dom = dom;
domain->name = strdup (virDomainGetName (dom));
- if (domain->name == NULL) {
- perror ("strdup");
- exit (EXIT_FAILURE);
- }
+ if (domain->name == NULL)
+ error (EXIT_FAILURE, errno, "strdup");
char uuid[VIR_UUID_STRING_BUFLEN];
if (virDomainGetUUIDString (dom, uuid) == 0) {
domain->...
2019 Apr 08
0
[PATCH v4 2/7] common: Bundle the libvirt-ocaml library for use by virt-v2v
...gt; "virDomainLookupByID", sig => "conn, int : dom" },
+ { name => "virDomainLookupByUUID", sig => "conn, uuid : dom" },
+ { name => "virDomainLookupByUUIDString", sig => "conn, string : dom" },
+ { name => "virDomainGetName", sig => "dom : static string" },
+ { name => "virDomainGetOSType", sig => "dom : string" },
+ { name => "virDomainGetXMLDesc", sig => "dom, 0 : string" },
+ { name => "virDomainGetUUID", sig => "do...
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
2017 Jun 27
3
[PATCH] libvirt: disallow non-local connections (RHBZ#1347830)
...@@ guestfs_impl_add_libvirt_dom (guestfs_h *g, void *domvp,
return -1;
}
+ conn = virDomainGetConnect (dom);
+ if (conn == NULL) {
+ virErrorPtr err;
+ err = virGetLastError ();
+ error (g, _("cannot get the libvirt connection of the domain ā%sā: %s"),
+ virDomainGetName (dom), err ? err->message : "");
+ return -1;
+ }
+
+ uristr = virConnectGetURI (conn);
+ if (uristr == NULL) {
+ virErrorPtr err;
+ err = virGetLastError ();
+ error (g, _("cannot get the URI of the libvirt connection: %s"),
+ err ? err->messa...