Displaying 20 results from an estimated 800 matches similar to: "virConnectIsAlive"
2016 Jul 24
2
Lifecycle of a connection to libvirtd
Hey!
I am trying to figure out how to reliably maintain a connection to
libvirtd. From the documentation, I would expect something like that:
- virConnectOpen()
- virConnectRegisterCloseCallback()
- virConnectSetKeepAlive()
- Application logic
And in the registered callback, I would:
- virConnectUnregisterCloseCallback()
- virConnectClose()
- virConnectOpen()
-
2013 Aug 22
1
Re: virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
21.08.2013 12:58, Alexandr пишет:
> 21.08.2013 12:39, Daniel P. Berrange пишет:
>> On Wed, Aug 21, 2013 at 12:36:06PM +0300, Alexandr wrote:
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>
>>> 21.08.2013 09:46, Alexandr пишет:
>>>> 21.08.2013 09:32, Martin Kletzander пишет:
>>>>> On
2014 Apr 01
3
set keep alive
Can anyone explain what is happening.
After call
virConnectOpen
virEventRegisterDefaultImpl()
call virConnectSetKeepAlive returns
VirtError(1): internal error: the caller doesn't
support keepalive protocol; perhaps it's missing
event loop implementation,
but the next call this sequence of commands returns success.
Why virConnectSetKeepAlive not work right the first time?
--
Fl at sh
2013 Aug 21
2
Re: virConnectDomainEventRegisterAny problem
On Wed, Aug 21, 2013 at 12:36:06PM +0300, Alexandr wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 21.08.2013 09:46, Alexandr пишет:
> > 21.08.2013 09:32, Martin Kletzander пишет:
> >> On Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
> >>>
> >>> good day. i trying to make callback function for
> >>>
2014 Jun 13
1
Re: Status of Host machine.
Hi Michal,
virConnectOpen is for connecting to a host right..?
I want to check the host status, whether the connection to the host is
active or not..
for that purpose we have to use virConnectIsAlive()
I'm using libvirt python bindings,
here is the function defnintion.
def isAlive(self):
"""Determine if the connection to the hypervisor is still alive
A
2013 Aug 20
2
virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
good day. i trying to make callback function for
VIR_DOMAIN_EVENT_ID_LIFECYCLE, i have successfully registering callback,
but it never called, i need to know when domain started, stopped or
crashed, i have write following code
static int domain_event_handler(virConnectPtr conn, virDomainPtr dom,
int event, int detail, void * opaque)
{
2013 Aug 21
2
Re: virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
21.08.2013 09:32, Martin Kletzander пишет:
> On Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
>>
>> good day. i trying to make callback function for
>> VIR_DOMAIN_EVENT_ID_LIFECYCLE, i have successfully registering
>> callback, but it never called, i need to know when domain
>> started, stopped or crashed, i have
2013 Oct 14
2
event handler
good day to all.
i still have not solved my problem with event handling.
currently i have following code
void libvirt_eventloop_thr_func()
{
while(true) //TODO: stop somehow on exit
{
if(virEventRunDefaultImpl() < 0)
{
virErrorPtr err = virGetLastError();
fprintf(stderr, "Failed to run event loop: %s\n", err && err->message
? err->message : "Unknown
2013 Oct 14
2
Re: event handler
Michal Privoznik писал 2013-10-14 08:48:
> On 14.10.2013 02:42, Alexandr wrote:
>> good day to all.
>> i still have not solved my problem with event handling.
>> currently i have following code
>>
>>
>> void libvirt_eventloop_thr_func()
>> {
>> while(true) //TODO: stop somehow on exit
>> {
>>
2018 Mar 08
1
Statistics domain memory block when domain shutdown
Hi
My libvirt version is 3.4.0,host system is centos 7.4 ,kernel is 3.10.0-693.el7.x86_64 , when I shutdown domain in virtual system, My program call virDomainMemoryStats, My program blocked in this api. the call stack is
#0 0x00007ff242d78a3d in poll () from /lib64/libc.so.6
#1 0x00007ff243755ce8 in virNetClientIOEventLoop () from /lib64/libvirt.so.0
#2 0x00007ff24375654b in
2013 Oct 14
2
Re: event handler
Michal Privoznik писал 2013-10-14 11:39:
> On 14.10.2013 10:33, Alexandr wrote:
>> Michal Privoznik писал 2013-10-14 08:48:
>>> On 14.10.2013 02:42, Alexandr wrote:
>>>> good day to all.
>>>> i still have not solved my problem with event handling.
>>>> currently i have following code
>>>>
>>>>
>>>> void
2013 Jun 24
3
deadlock on connection loosing
libvirtd will lock if for example kill programm which established connection,
only sigkill + restart helps., to reproduce:
virConnectPtr libvirt_connection = virConnectOpen("qemu:///system");
if(libvirt_connection == NULL)
{
std::cout<<"failed to connect to qemu:///system\n";
exit(-1);
}
exit(0);
2016 Jul 25
0
Re: Lifecycle of a connection to libvirtd
On Sun, Jul 24, 2016 at 11:13:08PM +0200, Vincent Bernat wrote:
>Hey!
>
>I am trying to figure out how to reliably maintain a connection to
>libvirtd. From the documentation, I would expect something like that:
>
> - virConnectOpen()
> - virConnectRegisterCloseCallback()
> - virConnectSetKeepAlive()
> - Application logic
>
>And in the registered callback, I would:
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 May 16
2
Duplicate reboot events
Hi,
Running on:
$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
And:
$ rpm -qa |grep libvirt
libvirt-daemon-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-qemu-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-secret-2.0.0-10.el7_3.5.x86_64
libvirt-client-2.0.0-10.el7_3.5.x86_64
libvirt-daemon-driver-network-2.0.0-10.el7_3.5.x86_64
2016 Aug 03
0
Crash after connection close when callback is in progress
Hey!
It seems that if I close a connection while a domain event callback is
in progress, I can easily have a crash. Here is a backtrace:
#v+
#0 virFree (ptrptr=0x0) at ../../../src/util/viralloc.c:582
save_errno = <optimized out>
#1 0x00007fc8328a4ad2 in virObjectEventCallbackListPurgeMarked (cbList=0xadfc30) at ../../../src/conf/object_event.c:282
freecb = <optimized
2016 Sep 20
1
[PATCH] libvirt: read disk paths from pools (RHBZ#1366049)
A disk of type 'volume' is stored as
<source pool='pool_name' volume='volume_name'/>
and its real location is inside the 'volume_name', as 'pool_name': in
this case, query libvirt for the actual path of the specified volume in
the specified pool.
Adjust the code so that:
- for_each_disk gets the virConnectPtr, needed to do operations with
libvirt
2015 Apr 27
2
[Libvirt Users]how to provide password authentication for qemu driver
Dell Customer Communication
Hi All,
I am using
Compiled against library: libvirt 1.2.9
Using library: libvirt 1.2.9
Using API: QEMU 1.2.9
Running hypervisor: QEMU 2.1.2
I want user to provide username and password authentication to virConnectPtr
virConnectOpenAuth(const char *name,
virConnectAuthPtr auth,
unsigned int flags) to login remotely for the qemu
2011 Sep 23
1
The Format Of URI when Migrating
Hi, when I try to use such API:
virDomainPtr <http://www.libvirt.org/html/libvirt-libvirt.html#virDomainPtr> virDomainMigrate (virDomainPtr
<http://www.libvirt.org/html/libvirt-libvirt.html#virDomainPtr>
domain,
virConnectPtr
<http://www.libvirt.org/html/libvirt-libvirt.html#virConnectPtr>
dconn,
unsigned long flags,
const char * dname,
const char * uri,
2016 Sep 22
1
[PATCH v2] libvirt: read disk paths from pools (RHBZ#1366049)
A disk of type 'volume' is stored as
<source pool='pool_name' volume='volume_name'/>
and its real location is inside the 'volume_name', as 'pool_name': in
this case, query libvirt for the actual path of the specified volume in
the specified pool.
Adjust the code so that:
- for_each_disk gets the virConnectPtr, needed to do operations with
libvirt