Re: [Libvir] trouble using ssh tunnel for remote hypervisor

2007-09-27 Thread Guillaume Rousse
Daniel P. Berrange a écrit : On Wed, Sep 26, 2007 at 11:47:40PM +0200, Guillaume Rousse wrote: Hello. I'm trying to use ssh tunnel for remote hypervisor access. However, I'm can't make it working... [EMAIL PROTECTED] ~]$ LC_ALL=C virsh --connect xen+ssh://[EMAIL PROTECTED] list --all

Re: [Libvir] trouble using ssh tunnel for remote hypervisor

2007-09-27 Thread Richard W.M. Jones
Guillaume Rousse wrote: Daniel P. Berrange a écrit : The daemon libvirtd will always listen for UNIX socket connections. You have to explicitly turn on TCP support, after having setup certificates. If using SSH, then we simply tunnel to the UNIX socket over SSH so all you need do is start the

Re: [Libvir] python libvirt methods to virDomainBlockStats and virDomainInterfaceStats

2007-09-27 Thread Richard W.M. Jones
Marco Sinhoreli wrote: Hello all, I'm using libvirt from cvs, and in libvirt.h there are virDomainBlockStats, and virDomainInterfaceStats calls. I think it is compiled into libvirtmod, then I'm trying to write two methods, blockStats, and interfacesStats in the class virDomain at the libvirt.py

[Libvir] /etc/sysconfig/keyboard syntax subtilities

2007-09-27 Thread Guillaume Rousse
virtmanager split content of /etc/sysconfig/keyboard on '' for determining keyboard. On mandriva system, there isn't any quote in this file: see http://qa.mandriva.com/show_bug.cgi?id=34190 Here is a patch making parsing of this file a bit more robust. -- Guillaume Rousse Moyens Informatiques -

Re: [Libvir] trouble using ssh tunnel for remote hypervisor

2007-09-27 Thread Daniel Veillard
On Thu, Sep 27, 2007 at 10:37:47AM +0100, Richard W.M. Jones wrote: Guillaume Rousse wrote: Daniel P. Berrange a écrit : The daemon libvirtd will always listen for UNIX socket connections. You have to explicitly turn on TCP support, after having setup certificates. If using SSH, then we

Re: [Libvir] /etc/sysconfig/keyboard syntax subtilities

2007-09-27 Thread Richard W.M. Jones
Guillaume Rousse wrote: virtmanager split content of /etc/sysconfig/keyboard on '' for determining keyboard. On mandriva system, there isn't any quote in this file: see http://qa.mandriva.com/show_bug.cgi?id=34190 Here is a patch making parsing of this file a bit more robust. Patch forwarded

[Libvir] topology test program

2007-09-27 Thread beth kon
Daniel, As we discussed, here is the program I was using for testing different topology strings. -- Elizabeth Kon (Beth) IBM Linux Technology Center Open Hypervisor Team email: [EMAIL PROTECTED] #include sys/types.h #include sys/stat.h #include fcntl.h #include stdio.h #include string.h

[Libvir] virt-df (a 'df' tool for virtual domains)

2007-09-27 Thread Richard W.M. Jones
Brave (or foolhardy?) souls may want to try out the almost-working version of 'virt-df' that I wrote: hg clone http://hg.et.redhat.com/virt/applications/virt-top--devel Usage is similar to ordinary 'df'. It understands the -h (human-readable) and -i (show inodes) options. You need to run

Re: [Libvir] virt-df (a 'df' tool for virtual domains)

2007-09-27 Thread John Levon
On Thu, Sep 27, 2007 at 07:07:00PM +0100, Richard W.M. Jones wrote: (2) It only understands a limited set of partition types. Assuming that the files and partitions that we get back from libvirt / Xen correspond to block devices in the guests, we can go some way towards manually parsing

Re: [et-mgmt-tools] Re: [Libvir] virt-df (a 'df' tool for virtual domains)

2007-09-27 Thread Daniel P. Berrange
On Thu, Sep 27, 2007 at 08:05:10PM +0100, Daniel P. Berrange wrote: On Thu, Sep 27, 2007 at 07:46:53PM +0100, Richard W.M. Jones wrote: John Levon wrote: On Thu, Sep 27, 2007 at 07:07:00PM +0100, Richard W.M. Jones wrote: (2) It only understands a limited set of partition types.

[Libvir] PATCH: Fix crash parsing input devices for QEMU

2007-09-27 Thread Daniel P. Berrange
There is an edge case in parsing of input devices where if you have a PS2 mouse defined, before a USB tablet, it could generate a null pointer deference thus crash. Normally you'd only have one pointer defined, but one might add a USB tablet for getting a improved mouse experience. Dan. -- |=-

Re: [Libvir] PATCH: Allow remote driver to handle any connection URI

2007-09-27 Thread Jim Fehlig
Daniel P. Berrange wrote: We currently have logic in the remote driver so that it handles the local QEMU driver URIs, so they get re-directed to the daemon. It also handles networking APIs for Xen driver. For normal APIs, Xen has the auto-spawned setuid proxy daemon. This was very useful at

[Libvir] [RFC][PATCH 1/2] Tested NUMA patches for available memory and topology

2007-09-27 Thread beth kon
Patch for accessing available memory. -- Elizabeth Kon (Beth) IBM Linux Technology Center Open Hypervisor Team email: [EMAIL PROTECTED] diff -urpN libvirt.danielpatch/include/libvirt/libvirt.h.in libvirt.cellsMemory/include/libvirt/libvirt.h.in ---