Re: [libvirt-users] Monitoring and statistics through libvirt
by peter.phaal@gmail.com
On Fri, Oct 01, 2010 at 03:47:23PM +0200, Tomi wrote:
> Hi folks,
> is it possible to monitor and gather statistics in realtime (CPU,
> memory, HDD, network, ... - something like dstat) of guest systems
> with libvirt through console from host system (KVM based)? If yes, do
> those guests need to be created through libvirt? Thanks for your help
> and time.
If you have a large number of servers to monitor, you might want to look at
the Host sFlow agent:
http://host-sflow.sourceforge.net/
The Host sFlow agent is installed on the server and locally polls physical
server statistics and VM statistics using libvirt. The statistics are
exported using the sFlow protocol.
http://www.sflow.org/
If you want detailed network visibility then the Open vSwitch includes
sFlow monitoring of inter-VM traffic:
http://openvswitch.org/
For more information, see:
http://blog.sflow.com/2010/10/kvm.html
http://blog.sflow.com/2010/10/sflowtrend-adds-server-performance.html
Peter
14 years, 1 month
[libvirt-users] libvirt fails to autostart on boot
by Serg Khaladzinski
Hi
I'm having a problem with libvirt.
OS: Ubuntu 10.04
When I installed everything initially it worked properly, I was able to use
virtual manager to connect to QEMU and install (and run guest OS).
But after I rebooted my box - libvirt is not started even though I can see init
script in /etc/init.d/libvirt-bin
When I start libvirtd manually it works.. But it's kind of annoying for me to do
it manually every time..
Maybe someone may suggest any ideas of how can I debug and fix this issue with
libvirt autostart.
Thanks a lot.
14 years, 1 month
Re: [libvirt-users] Monitoring and statistics through libvirt
by Peter Phaal
On Fri, Oct 01, 2010 at 03:47:23PM +0200, Tomi wrote:
> Hi folks,
>
> is it possible to monitor and gather statistics in realtime (CPU,
> memory, HDD, network, ... - something like dstat) of guest systems
> with libvirt through console from host system (KVM based)? If yes, do
> those guests need to be created through libvirt? Thanks for your help
> and time.
If you have a large number of servers to monitor, you might want to look at the Host sFlow agent:
http://host-sflow.sourceforge.net/
The Host sFlow agent is installed on the server and locally polls physical server statistics and VM statistics using libvirt. The statistics are exported using the sFlow protocol.
http://www.sflow.org/
If you want detailed network visibility then the Open vSwitch includes sFlow monitoring of inter-VM traffic:
http://openvswitch.org/
For more information, see:
http://blog.sflow.com/2010/10/kvm.html
http://blog.sflow.com/2010/10/sflowtrend-adds-server-performance.html
Peter
14 years, 1 month
[libvirt-users] NFS4 + SELinux
by Mike Hall
All test machines are CentOS 5.5 (RHEL subscriptions purchased).
We've had NFS3 storage working fine and decided to try NFS4.
We can mount an NFS4 share on our KVM host, but the SELinux file context on the mountpoint directory is magically changed from virt_image_t to nfs_t. Restorecon refuses to change it back.
Adding the mount option context=system_u:object_r:virt_image_t on either server or client doesn't help (option not recognised).
What could we be doing wrong? Does NFS4 + KVM work?
Are there any 'best practices' references around for using NFS4 for KVM storage?
Much of the documentation doesn't appear 100% relevant as we're dealing with a dedicated SAN network with one user (root) and 'always on' sharing, so much of the more complicated authentication and autofs stuff just gets in the way.
Thanks
Michael Hall
IT Communications Officer
Alice Springs Town Council
mhall(a)astc.nt.gov.au
(08) 8950 0561
14 years, 1 month
[libvirt-users] NFSv4 Storage Pools
by paul.worner@thomsonreuters.com
Hi,
Is it possible to configure libvirt to use NFSv4 for a pool? I am doing
some iptables SNATing and rpc.statd can't handle it.
Thanks,
Paul
14 years, 1 month
Re: [libvirt-users] Question about use libvirt
by Mike Hall
Original message:
For a new system to develop, I need to know if I can use libvirt for to get (listen) the information that pass trought the lan (vlan) of the each VM.
Marcela's perfect Spanish:
quiero saber si utilizando esta libreria, puedo utilizar alguna función que me permita capturar los mensajes que se envian aplicaciones paralelas de paso de mensajes que se ejecutan en las máquinas virtuales.
Mike's imperfect translation:
"I need to know if, using this library (libvirt), I can use a function that allows me to capture information sent by applications in parallel to/in addition to information passed by virtual machines"
I'm no expert, but I don't think libvirt has access, via virtual networking, to data sent by applications running in virtual machines. My guess is that such data would be accessible in the same way as with physical machines on a physical network (eg tcpdump?).
Mike
14 years, 1 month
Re: [libvirt-users] Fwd: undefining and redefining a Domain from libvirt java bindings
by Osier
----- "Ravi Pawar" <ravifc(a)gmail.com> wrote:
> hi,
>
> i am trying to undefine a domain by using dm.undefine();
> and then trying to create one with same name is giving me error saying
> 'Domain not found: no domain with matching uuid
> 'aeae9d4e-17cb-b661-a612-88ac677c28c1'
The error is not throwed by "dm.undefine".
looked at and tried your test program, it throws error message like:
libvir: QEMU error : Domain not found: no domain with matching name 'tt2'
Definitely, it's throwed by:
dm =conn.domainLookupByName("tt2");
I guess you looked up the domain by "UUID" before.. so it came the
error message saying "no domain with matching uuid .....".
The error doesn't influnce the program running forward. e.g.
Domain dm1 = conn.domainDefineXML(dumpxml);
dm1.create();
int id;
id = dm1.getID();
System.out.println(id);
dm1.undefine();
You will get the domain ID..
I'm not familiar with Java, guess you can catch the error and turn
it into a warning message with "Expection Handler". correct me if I'm
not right.. :-)
- Osier
>
> i have attached my test program which reproduces the issue.
>
> please let me know where i am going wrong?
>
> configuration: libvirt : 0.6.3
> Java Bindings: 0.4.2
>
> --
> Thanks & Regards
>
> Ravi Pawar
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users(a)redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
14 years, 1 month
[libvirt-users] Mac OS X: dyld: lazy symbol binding failed
by Mitchell Hashimoto
I'm using the Ruby/FFI libvirt library and getting this consistently
on Mac OS X:
ruby-1.9.2-p0 > FFI::Libvirt.virInitialize
dyld: lazy symbol binding failed: Symbol not found: _virThreadInitialize
Referenced from: /usr/local/lib/libvirt.dylib
Expected in: flat namespace
dyld: Symbol not found: _virThreadInitialize
Referenced from: /usr/local/lib/libvirt.dylib
Expected in: flat namespace
Trace/BPT trap
I exported DYLD_PRINT_LIBRARIES and it shows that libvirt.dylib is
loaded in the process space, but the above still occurs. When I
statically link into a C program it works fine, however. Anyone have
any idea what could be causing this?
If this doesn't get a response, I'll post it to the dev list, since
its perhaps relevant to them as well.
Thanks,
Mitchell
14 years, 1 month