search for: virconnectgetcap

Displaying 20 results from an estimated 32 matches for "virconnectgetcap".

2017 Mar 21
0
Re: Running virConnectGetCapabilities / virsh capabilities without a daemon or KVM
lstopo, lstopo --output-format xml These commands might be helpful > On Mar 21, 2017, at 10:35 AM, Richard W.M. Jones <rjones@redhat.com> wrote: > > > For virt-p2v we want to get the host CPU model, topology etc, and the > best way we found to do that was to pull it from libvirt > capabilities[1]. Since libvirt is already parsing the host CPU > information, and
2017 Mar 21
3
Running virConnectGetCapabilities / virsh capabilities without a daemon or KVM
For virt-p2v we want to get the host CPU model, topology etc, and the best way we found to do that was to pull it from libvirt capabilities[1]. Since libvirt is already parsing the host CPU information, and because /proc/cpuinfo is such a stupid format to parse, this is very convenient. Unfortunately it doesn't work unless libvirtd _and_ KVM are both installed. Without libvirtd installed:
2017 Mar 21
3
Running virConnectGetCapabilities / virsh capabilities without a daemon or KVM
For virt-p2v we want to get the host CPU model, topology etc, and the best way we found to do that was to pull it from libvirt capabilities[1]. Since libvirt is already parsing the host CPU information, and because /proc/cpuinfo is such a stupid format to parse, this is very convenient. Unfortunately it doesn't work unless libvirtd _and_ KVM are both installed. Without libvirtd installed:
2020 Jan 27
1
Detecting of features of VMs
...a private thread I'm posting this to libvirt-users. The specific question will be answered below. --- There are currently two interfaces which allow discovery of libvirts and in turn qemu's capabilities. Both return an XML which describes various aspects of the hosts or VMs capabilities. virConnectGetCapabilities(conn) https://libvirt.org/formatcaps.html The XML returned by this API describes mostly the host itself, the CPU, NUMA topology, security driver support, migration features but also describes guests architectures supported by the guest. In case of the qemu driver the guest section descr...
2013 Sep 17
2
Finding out CPU topology.
Hi all, I have been trying to find out cpu topology using libvirt. When I do 'virsh capabilites', I find this inside <topology> tag: <topology>       <cells num='1'>         <cell id='0'>           <memory unit='KiB'>3908488</memory>           <cpus num='4'>             <cpu id='0' socket_id='0'
2013 Sep 17
0
Re: libvirt-users Digest, Vol 45, Issue 28
...gt;> C API itself? How can I get the whole topology without just parsing >the output >> of virsh capabilities? > >Did you really run these two examples on the same machine, with the >same >libvirt URI ? Both virsh and the python binding call the same libvirt >API >'virConnectGetCapabilities' so will return the same data if run against >the same libvirt. The socket_id, core_id and siblings data is a >relatively >new feature we added, so older libvirt won't show it. > >Daniel >-- >|: http://berrange.com -o- >http://www.flickr.com/photos/...
2016 Mar 04
2
[libvirt-1.3.2]'Disconnected from qemu:///session due to I/O error'
...et == -1: raise libvirtError ('virConnectDomainEventDeregisterAny() failed', conn=self) libvirtError: internal error: client socket is closed [Thu, 03 Mar 2016 19:07:14 virt-manager 5191] ERROR (create:667) Error setting create wizard conn state. if ret is None: raise libvirtError ('virConnectGetCapabilities() failed', conn=self) libvirtError: internal error: client socket is closed [Thu, 03 Mar 2016 19:07:15 virt-manager 5191] DEBUG (connection:1310) Error polling connection qemu:///session if ret is None: raise libvirtError ('virNodeGetInfo() failed', conn=self) libvirtError:...
2015 Aug 13
1
Host and Guest UUID ?
Hi, Are there some kind of UUIDs for Host and Guest ? If yes , how may I retrieve them programmatically ? My goal is to trace GUEST migrations. Thx for help. Regards, J.P. Ribeauville P: +33.(0).1.47.17.27.87 Puteaux 3 Etage 5 Bureau 4 jpribeauville@axway.com<mailto:jpribeauville@axway.com> http://www.axway.com<http://www.axway.com/> P Pensez à l'environnement avant
2013 Sep 17
0
Re: Finding out CPU topology.
...ation of python binding or libvirt > C API itself? How can I get the whole topology without just parsing the output > of virsh capabilities? Did you really run these two examples on the same machine, with the same libvirt URI ? Both virsh and the python binding call the same libvirt API 'virConnectGetCapabilities' so will return the same data if run against the same libvirt. The socket_id, core_id and siblings data is a relatively new feature we added, so older libvirt won't show it. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt....
2016 Mar 05
0
Re: [libvirt-1.3.2]'Disconnected from qemu:///session due to I/O error'
...libvirtError ('virConnectDomainEventDeregisterAny() failed', conn=self) > libvirtError: internal error: client socket is closed > [Thu, 03 Mar 2016 19:07:14 virt-manager 5191] ERROR (create:667) Error setting create wizard conn state. > if ret is None: raise libvirtError ('virConnectGetCapabilities() failed', conn=self) > libvirtError: internal error: client socket is closed > [Thu, 03 Mar 2016 19:07:15 virt-manager 5191] DEBUG (connection:1310) Error polling connection qemu:///session > if ret is None: raise libvirtError ('virNodeGetInfo() failed', conn=self...
2017 Mar 16
0
[PATCH 1/4] p2v: Pass host CPU details to virt-v2v.
...Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/** + * Process CPU capabilities into libvirt-compatible C<E<lt>cpuE<gt>> data. + * + * If libvirt is available at compile time then this is quite + * simple - libvirt API C<virConnectGetCapabilities> provides + * a C<E<lt>hostE<ge>> element which has mostly what we need. + * + * Flags C<acpi>, C<apic>, C<pae> still have to be parsed out of + * F</proc/cpuinfo> because these will not necessarily be present in + * the libvirt capabilities dir...
2017 Mar 23
2
[PATCH] p2v: Use lscpu instead of libvirt to get CPU information.
.../cpuid.c +++ b/p2v/cpuid.c @@ -17,20 +17,17 @@ */ /** - * Process CPU capabilities into libvirt-compatible C<E<lt>cpuE<gt>> data. + * Find CPU vendor, topology and some CPU flags. * - * If libvirt is available at compile time then this is quite - * simple - libvirt API C<virConnectGetCapabilities> provides - * a C<E<lt>hostE<ge>> element which has mostly what we need. + * lscpu (from util-linux) provides CPU vendor, topology and flags. * - * Flags C<acpi>, C<apic>, C<pae> still have to be parsed out of - * F</proc/cpuinfo> because thes...
2020 Jan 10
2
Re: [PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
...ams, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW --rbKG8BlqS9xyY7Uh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=apis virConnectClose ( virConnectDomainEventRegisterAny( virConnectGetAllDomainStats ( virConnectGetCapabilities ( virConnectGetDomainCapabilities ( virConnectGetMaxVcpus ( virConnectGetVersion ( virConnectListDefinedDomains ( virConnectListDomains ( virConnectNumOfDefinedDomains ( virConnectNumOfDomains ( virConnectOpen ( virConnectOpenAuth ( virConnectOpenReadOnly ( virConnectRef( virConnectSetKeep...
2016 Mar 22
0
[PATCH v3 09/11] launch: Remove guestfs_int_print_timestamped_message function.
...325,7 @@ launch_libvirt (guestfs_h *g, void *datav, const char *libvirt_uri) data->qemu_version = 0; } - if (g->verbose) - guestfs_int_print_timestamped_message (g, "get libvirt capabilities"); + debug (g, "get libvirt capabilities"); capabilities_xml = virConnectGetCapabilities (conn); if (!capabilities_xml) { @@ -339,8 +337,7 @@ launch_libvirt (guestfs_h *g, void *datav, const char *libvirt_uri) * struct, and can also fail if we detect that the hypervisor cannot * run qemu guests (RHBZ#886915). */ - if (g->verbose) - guestfs_int_print_times...
2015 May 05
2
[PATCH 0/2] v2v: -o libvirt: Check if the domain exists on the target (RHBZ#889082).
https://bugzilla.redhat.com/show_bug.cgi?id=889082
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
2017 Mar 16
7
[PATCH 0/4] Pass CPU vendor, model and topology from source to target.
This is tangentially related to: https://bugzilla.redhat.com/show_bug.cgi?id=1372668 The problem in that bug is that we didn't pass the source CPU model (Sandybridge in that case) through to the target RHV hypervisor. So when the Windows guest booted on the target it gives an error about CPU hardware being disconnected (although it otherwise boots and works fine). This patch series
2017 Mar 17
7
[PATCH v2 0/6] v2v: Pass CPU vendor, model and topology from source to target.
v1 -> v2: - Support for passing topology through -o glance. - Support for passing topology through -o rhv. - Use bool for acpi/apic/pae struct fields in virt-p2v. - Write the xpath expression in error messages instead of file/line. - Fix more memory leaks in virt-p2v cpuid.c. - Passes make check & check-valgrind. There may be some other minor changes. I believe that everything
2017 Sep 08
2
[PATCH] RFC: v2v: add and use libvirt connection objects
.../* Suppress default behaviour of printing errors to stderr. Note - * you can't set this to NULL to ignore errors; setting it to NULL - * restores the default error handler ... - */ - virConnSetErrorFunc (conn, NULL, ignore_errors); + conn = Libvirtconn_val (connv); capabilities = virConnectGetCapabilities (conn); if (!capabilities) { @@ -410,23 +430,19 @@ v2v_capabilities (value connv, value unitv) snprintf (errmsg, sizeof errmsg, _("cannot get libvirt hypervisor capabilities: %s"), err->message); - virConnectClose (conn); caml_inva...
2019 Apr 08
0
[PATCH v4 3/7] v2v: switch to ocaml-libvirt
...nvalid_argument (errmsg); - } - - /* Suppress default behaviour of printing errors to stderr. Note - * you can't set this to NULL to ignore errors; setting it to NULL - * restores the default error handler ... - */ - virConnSetErrorFunc (conn, NULL, ignore_errors); - - capabilities = virConnectGetCapabilities (conn); - if (!capabilities) { - err = virGetLastError (); - snprintf (errmsg, sizeof errmsg, - _("cannot get libvirt hypervisor capabilities: %s"), - err->message); - virConnectClose (conn); - caml_invalid_argument (errmsg); - } - - ca...