Re: [libvirt-users] shutdown all domains

2014-03-14 Thread Eric Blake
On 03/14/2014 08:14 PM, Peng Yu wrote: > Hi, > > The following shows a script to shutdown all domains. Is this still > not available in libvirt-bin? If not, will it added in the future? The libvirt-guests script is about all the more we ever plan on shipping in the core libvirt packaging; it is a

[libvirt-users] shutdown all domains

2014-03-14 Thread Peng Yu
Hi, The following shows a script to shutdown all domains. Is this still not available in libvirt-bin? If not, will it added in the future? Thanks. http://lists.centos.org/pipermail/centos-virt/2009-November/001358.html -- Regards, Peng ___ libvirt-us

[libvirt-users] How assign static ip using NAT?

2014-03-14 Thread Peng Yu
Hi, I have the following configuration in the xml of the guest. But if I set a static ip on the guest, then the guest can not access the outside network. I don't find an example on how to set a static IP address for the guest. Could anybody know how to modify the following xml code to do so? Thank

Re: [libvirt-users] Scheduler Parameters

2014-03-14 Thread Faruk Caglar
Hi All, I have emailed the message below to Arnaud, but it got failed. I will need to have get set scheduling parameters (including timeslice, ratelimit, weight, cap for Xen) thru C# libvirt bindings. is there any plan to have those wrappers soon? Thanks Faruk On Fri, Mar 14, 2014 at 4:06 PM, F

Re: [libvirt-users] Sys::Virt integration into other event loops

2014-03-14 Thread Scott Wiersdorf
On Mar 14, 2014, at 9:32 AM, Daniel P. Berrange wrote: > - Register and run your own event loop impl by calling the method > Sys::Virt::Event::register(), passing in a custom subclass of > the Sys::Virt::Event class. This is what you should do to integrate > with existing event loop impls li

Re: [libvirt-users] Sys::Virt integration into other event loops

2014-03-14 Thread Daniel P. Berrange
On Fri, Mar 14, 2014 at 09:01:22AM -0600, Scott Wiersdorf wrote: > Hi all, > > I’m trying to integrate Perl’s Sys::Virt into an already existing AnyEvent > program. > > I’m accustomed to writing things like this: > > use EV; > use AnyEvent; > use AnyEvent::Handle; > my $h = AnyEvent::Handle->ne

[libvirt-users] Sys::Virt integration into other event loops

2014-03-14 Thread Scott Wiersdorf
Hi all, I’m trying to integrate Perl’s Sys::Virt into an already existing AnyEvent program. I’m accustomed to writing things like this: use EV; use AnyEvent; use AnyEvent::Handle; my $h = AnyEvent::Handle->new(fh => $fh, …); $h->on_read(sub { … }); EV::run; ## start the event loop I can add

Re: [libvirt-users] Problem in getting memory statistics

2014-03-14 Thread Claudio Bley
At Wed, 12 Mar 2014 13:36:50 +0100, Pasquale Dir wrote: > > Hello, > I need to get how much memory is used by a guest system, in order to > implement some monitoring function which tells me if the system is > overstressed. > > I am currently using java apis and the binding which was suggested to