Displaying 20 results from an estimated 34 matches for "virconnectdomaineventregisterani".
Did you mean:
virconnectdomaineventregisterany
2020 Apr 13
2
what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result
HI, everyone:
My target deal with network hotplug use virDomainDetachDeviceFlags. Because when the API return ,the network maybe doesn’t remove from my vm guest os.
So I use virConnectDomainEventRegisterAny to register an event ID: VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED ,
my process as follow:
2020 Apr 14
0
Re: what a correct use for virConnectDomainEventRegisterAny API, how to Obtain a stable expected result
On Mon, Apr 13, 2020 at 05:32:38PM +0800, thomas.kuang wrote:
> HI, everyone:
>
>
> My target deal with network hotplug use virDomainDetachDeviceFlags. Because when the API return ,the network maybe doesn’t remove from my vm guest os.
>
> So I use virConnectDomainEventRegisterAny to register an event ID: VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED ,
>
> my process as follow:
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)
{
2020 Apr 07
0
why virConnectDomainEventRegisterAny can't alway trigger the callback ,how can i get a stable callback ?
hi, all:
I create a vm with six nic, after the vm start, i delete tree nics.
all the three nic delete logic will happen in a thread , every nic delete has the following process:
int vnf_control_del_network(void *arg)
{
。。。。。
call_id = virConnectDomainEventRegisterAny(conn, dom, VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED, VIR_DOMAIN_EVENT_CALLBACK(vnf_control_del_network_cb), cb_para,
2013 Aug 21
0
Re: virConnectDomainEventRegisterAny problem
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 write following code
>
> static int domain_event_handler(virConnectPtr conn, virDomainPtr dom,
> int
2013 Aug 21
0
Re: virConnectDomainEventRegisterAny problem
-----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
>>> VIR_DOMAIN_EVENT_ID_LIFECYCLE, i have successfully registering
>>> callback, but it never called, i need to
2013 Aug 21
0
Re: virConnectDomainEventRegisterAny problem
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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 Wed 21 Aug 2013 01:03:37 AM CEST, Alexandr wrote:
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 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
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 Aug 21
1
Reboot, halt, poweroff called inside an lxc domain
Hi all,
Is there any possibility (using libvirt C API or whatever else) to
"propagate" shutdown events (reboot, halt, power off) to a host? The API
seems to lack this functionality - there exists function
virConnectDomainEventRegisterAny, but the virDomainEventStoppedDetailType
enum does not distinguish between these 3 different situations.
Moreover, while rebooting a machine, an
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
>> {
>>
2011 Nov 04
1
Event&Callback in QEMU
Hi buddy,
I wanna to monitor a domain's life cycle event, so i register a event an a
virConnectDomainEventCallback, the code segment is as below:
------------------------
int DomainEventCallback(virConnectPtr conn,
virDomainPtr dom,
int event,
int detail,
void * opaque){
/*My code */
.......
}
int main(){
/* .....*/
virDomainPtr dom =
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
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
2017 Aug 21
1
dump in virEventPollRunOnce
libvirt
version: 3.4.0
architecture: x86_64 ubuntu16.04-server
hypervisor: kvm,qemu
My program use libvirt event , the program is a module(.so) file in cloud application, when unload the module, program will dump in virEventPoolRunOnce call.
program frame
virInitialize
virEventAddTimeOut
virEventRunDefaultImpl
virConnectXXX
virConnectDomainEventRegisterAny
...
virConnectDomainEventDeregisterAny
2012 Oct 24
0
Libvirt event for disk change is not being registered by DomainEventRegisterAny()
Hi,
I am writing an application which would monitor the changes on the domain
on the KVM hypervisor through libvirt events.
Recently I have upgraded my libvirt from 9.4 to 9.10 and I have this issue.
While *de-registering* for DomainEventDiskChangeCallback, I get a libvirt
error saying
'libvirtError: internal error domain event 2 not registered;'
where 2 is the callbackid
2012 Oct 25
0
Please help: Libvirt event for disk change is not being registered by DomainEventRegisterAny()
Hi,
I am writing an application which would monitor the changes on the domain
on the KVM hypervisor through libvirt events.
Recently I have upgraded my libvirt from 9.4 to 9.10 and I have this issue.
While *de-registering* for DomainEventDiskChangeCallback, I get a libvirt
error saying
'libvirtError: internal error domain event 2 not registered;'
where 2 is the callbackid
2013 Oct 14
0
Re: event handler
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
> {
> if(virEventRunDefaultImpl() < 0)
> {
> virErrorPtr err = virGetLastError();
>