Re: [libvirt-users] how to add/remove emulated usb removable devices to guests

2013-12-05 Thread Alexandr Gluzskiy
Alexandr писал 2013-12-04 04:38: Good day, i was not able to find api to add/remove usb removable devices to guest, i have windows machines and need to plug usb stick with some fs (fat or ntfs) which is image on host, i was found what it is possible and implemented in libvirt https

Re: [libvirt-users] correct way to hot-add cdrom ?

2013-12-05 Thread Alexandr Gluzskiy
Daniel P. Berrange писал 2013-12-05 13:33: On Thu, Dec 05, 2013 at 01:28:07PM +0200, Alexandr Gluzskiy wrote: Alexandr писал 2013-12-02 09:36: >Good day to all. i have problems with cdrom hot adding code. currently >i using virDomainAttachDevice with type=file, device=cdrom, dev=hdc, >

Re: [libvirt-users] correct way to hot-add cdrom ?

2013-12-05 Thread Alexandr Gluzskiy
Alexandr писал 2013-12-02 09:36: Good day to all. i have problems with cdrom hot adding code. currently i using virDomainAttachDevice with type=file, device=cdrom, dev=hdc, this code works for machine with one ide hdd and one ide cdrom, but this not work for machine with only one ide hdd, and i

[libvirt-users] how to add/remove emulated usb removable devices to guests

2013-12-03 Thread Alexandr
Good day, i was not able to find api to add/remove usb removable devices to guest, i have windows machines and need to plug usb stick with some fs (fat or ntfs) which is image on host, i was found what it is possible and implemented in libvirt https://bugzilla.redhat.com/show_bug.cgi?id=922495,

[libvirt-users] correct way to hot-add cdrom ?

2013-12-02 Thread Alexandr
Good day to all. i have problems with cdrom hot adding code. currently i using virDomainAttachDevice with type=file, device=cdrom, dev=hdc, this code works for machine with one ide hdd and one ide cdrom, but this not work for machine with only one ide hdd, and i looking for solution to hot add

Re: [libvirt-users] event handler

2013-10-14 Thread Alexandr
Michal Privoznik писал 2013-10-14 12:04: On 14.10.2013 10:57, Alexandr wrote: 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

Re: [libvirt-users] event handler

2013-10-14 Thread Alexandr
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

Re: [libvirt-users] event handler

2013-10-14 Thread Alexandr
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 { if

[libvirt-users] event handler

2013-10-13 Thread Alexandr
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) { virEr

Re: [libvirt-users] virConnectDomainEventRegisterAny problem

2013-08-22 Thread Alexandr
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 23.08.2013 00:51, Alexandr пишет: > 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- Ha

Re: [libvirt-users] virConnectDomainEventRegisterAny problem

2013-08-22 Thread Alexandr
-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

Re: [libvirt-users] virConnectDomainEventRegisterAny problem

2013-08-21 Thread Alexandr
-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, Ma

Re: [libvirt-users] virConnectDomainEventRegisterAny problem

2013-08-21 Thread Alexandr
-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_EVE

Re: [libvirt-users] virConnectDomainEventRegisterAny problem

2013-08-20 Thread Alexandr
-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 >

[libvirt-users] virConnectDomainEventRegisterAny problem

2013-08-20 Thread Alexandr
-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 intdomain_ev

Re: [libvirt-users] libvirt hang on domain attemp to create domain

2013-06-20 Thread Alexandr
On 20.06.2013 10:44, Michal Privoznik wrote: On 20.06.2013 09:40, Александр wrote: В письме от Четверг, 20-июн-2013 09:15:14 Вы написали: On 19.06.2013 21:24, Александр wrote: В письме от Среда, 19-июн-2013 09:35:27 пользователь Michal Privoznik написал: On 18.06.2013 22:21, Александр wrote:

[libvirt-users] transient domains with saved state of persistent doamin

2013-06-09 Thread Alexandr
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Good day, i writing testing system and want to use libvirt for it, now i reading libvirt development guide and found info about transient domains which looks like what i need, but it's still unclear for me if it possible to implement what i want using