Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Jim Paris
Daniel P. Berrange wrote: On Mon, Jun 08, 2009 at 11:35:00AM +0200, Christian Weyermann wrote: Hello everybody, I encountered the following problem. I want my users to only be able to connect to their own virtual machines via VNC. Is there any way to do so? The VNC authentication

Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 04:05:39AM -0400, Jim Paris wrote: Daniel P. Berrange wrote: On Mon, Jun 08, 2009 at 11:35:00AM +0200, Christian Weyermann wrote: Hello everybody, I encountered the following problem. I want my users to only be able to connect to their own virtual machines

Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Garry Dolley
On Thu, Jun 11, 2009 at 04:05:39AM -0400, Jim Paris wrote: Daniel P. Berrange wrote: On Mon, Jun 08, 2009 at 11:35:00AM +0200, Christian Weyermann wrote: Hello everybody, I encountered the following problem. I want my users to only be able to connect to their own virtual machines

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-11 Thread Daniel P. Berrange
On Wed, Jun 10, 2009 at 07:28:51PM -0400, Hany Fahim wrote: Hey Daniel, Here is the output of 'xm list' from both machines: I wanted the 'xm info' output actually Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o-

Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Jim Paris
Daniel P. Berrange wrote: What about the VNC password? That's per-VM, isn't it? That is true by I don't really consider VNC password to be useful. It is utterly insecure. ... Garry Dolley wrote: With KVM/QEMU, you can set a VNC password per VM. But I think it is either/or though; you

Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Christian Weyermann
Daniel P. Berrange schrieb: On Thu, Jun 11, 2009 at 04:05:39AM -0400, Jim Paris wrote: Daniel P. Berrange wrote: On Mon, Jun 08, 2009 at 11:35:00AM +0200, Christian Weyermann wrote: Hello everybody, I encountered the following problem. I want my users to only be able to

Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 11:10:47AM +0200, Christian Weyermann wrote: Daniel P. Berrange schrieb: On Thu, Jun 11, 2009 at 04:05:39AM -0400, Jim Paris wrote: Daniel P. Berrange wrote: On Mon, Jun 08, 2009 at 11:35:00AM +0200, Christian Weyermann wrote: Hello everybody,

Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Christian Weyermann
Daniel P. Berrange schrieb: On Thu, Jun 11, 2009 at 11:10:47AM +0200, Christian Weyermann wrote: Daniel P. Berrange schrieb: On Thu, Jun 11, 2009 at 04:05:39AM -0400, Jim Paris wrote: Daniel P. Berrange wrote: On Mon, Jun 08, 2009 at 11:35:00AM +0200,

Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Christian Weyermann
Daniel P. Berrange schrieb: On Thu, Jun 11, 2009 at 11:45:43AM +0200, Christian Weyermann wrote: Daniel P. Berrange schrieb: On Thu, Jun 11, 2009 at 11:10:47AM +0200, Christian Weyermann wrote: Daniel P. Berrange schrieb: On Thu, Jun 11, 2009 at

Re: [libvirt] [PATCH 1/3] Re-factor qemu version parsing

2009-06-11 Thread Daniel P. Berrange
On Wed, Jun 10, 2009 at 09:02:39PM +0100, Mark McLoughlin wrote: This patch is purely re-factoring without any functional changes to make way for the next patch. The main thing achieved by the refactoring is that we now have easier access to the parenthesised string that KVM folks seem to

Re: [libvirt] [PATCH 2/3] Detect newer qemu-kvm versions

2009-06-11 Thread Daniel P. Berrange
On Wed, Jun 10, 2009 at 09:02:40PM +0100, Mark McLoughlin wrote: The KVM version string can be one of the following: - qemu-kvm-x.y.z in stable releases - kvm-XX for kvm versions up to kvm-85 - qemu-kvm-devel-XX for kvm version kvm-86 and later There are only a few of places where

Re: [libvirt] Re: [CentOS-devel] Latest kvm packages for CentOS 5.3

2009-06-11 Thread Daniel P. Berrange
On Wed, Jun 10, 2009 at 04:50:25PM +0200, Dag Wieers wrote: On Wed, 10 Jun 2009, Federico Simoncelli wrote: I've been working quite extensively with kvm on CentOS 5.3 lately. If you are interested in the latest rpm of kvm-kmod-2.6.30-rc8, qemu-kvm-0.10.5 and libvirt-0.6.4 you can temporary

Re: [libvirt] [PATCH] [v2] Support kvm-img or qemu-img dynamically

2009-06-11 Thread Daniel Veillard
On Wed, Jun 10, 2009 at 10:28:00AM -0500, Doug Goldstein wrote: This patch adds a new function virFindFileInPath() and uses it to find where a binary lives in the PATH environment variable. Using this, we can dynamically find where utility functions exist (and if they even exists). So such we

Re: [libvirt] [PATCH 2/3] Detect newer qemu-kvm versions

2009-06-11 Thread Mark McLoughlin
On Thu, 2009-06-11 at 14:12 +0100, Daniel P. Berrange wrote: ACK, though the 'is_kvm' flag is a little redundant, since it is implied by kvm_version being != 0. Nope, kvm_version won't be available after kvm-85 unless we start parsing qemu-kvm-devel-86. The reason I didn't do that is that

Re: [libvirt] [PATCH 3/3] Add qemu help string parsing tests

2009-06-11 Thread Mark McLoughlin
On Thu, 2009-06-11 at 14:14 +0100, Daniel P. Berrange wrote: .. The test program is only built if WITH_QEMU is defined, so ... ... this source file conditional is redundant. ... And can kill this dummy main() too I didn't dream this up myself, you know ... take a look at qemuxml2argvtest

Re: [libvirt] [PATCH 3/3] Add qemu help string parsing tests

2009-06-11 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 02:23:27PM +0100, Mark McLoughlin wrote: On Thu, 2009-06-11 at 14:14 +0100, Daniel P. Berrange wrote: .. The test program is only built if WITH_QEMU is defined, so ... ... this source file conditional is redundant. ... And can kill this dummy main() too I

Re: [libvirt] [PATCH 1/3] Re-factor qemu version parsing

2009-06-11 Thread Daniel Veillard
On Wed, Jun 10, 2009 at 09:02:39PM +0100, Mark McLoughlin wrote: This patch is purely re-factoring without any functional changes to make way for the next patch. The main thing achieved by the refactoring is that we now have easier access to the parenthesised string that KVM folks seem to

Re: [libvirt] [PATCH 2/3] Detect newer qemu-kvm versions

2009-06-11 Thread Daniel Veillard
On Wed, Jun 10, 2009 at 09:02:40PM +0100, Mark McLoughlin wrote: The KVM version string can be one of the following: - qemu-kvm-x.y.z in stable releases - kvm-XX for kvm versions up to kvm-85 - qemu-kvm-devel-XX for kvm version kvm-86 and later Any chance to secure an API in the

Re: [libvirt] [PATCH 3/3] Add qemu help string parsing tests

2009-06-11 Thread Daniel Veillard
On Wed, Jun 10, 2009 at 09:02:41PM +0100, Mark McLoughlin wrote: Signed-off-by: Mark McLoughlin mar...@redhat.com --- src/qemu_conf.c| 10 +- src/qemu_conf.h|6 ++ tests/Makefile.am |9 ++- tests/qemuhelpdata/kvm-74

Re: [libvirt] [PATCH 2/3] Detect newer qemu-kvm versions

2009-06-11 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 03:53:15PM +0200, Daniel Veillard wrote: On Wed, Jun 10, 2009 at 09:02:40PM +0100, Mark McLoughlin wrote: The KVM version string can be one of the following: - qemu-kvm-x.y.z in stable releases - kvm-XX for kvm versions up to kvm-85 - qemu-kvm-devel-XX for

Re: [libvirt] [PATCH 1/3] Re-factor qemu version parsing

2009-06-11 Thread Mark McLoughlin
On Thu, 2009-06-11 at 15:49 +0200, Daniel Veillard wrote: +#define QEMU_VERSION_STRQEMU PC emulator version +#define KVM_VER_PREFIX (kvm- + +static int qemudParseHelpStr(const char *help, + unsigned int *flags, +

Re: [libvirt] [PATCH 2/3] Detect newer qemu-kvm versions

2009-06-11 Thread Mark McLoughlin
On Thu, 2009-06-11 at 15:53 +0200, Daniel Veillard wrote: On Wed, Jun 10, 2009 at 09:02:40PM +0100, Mark McLoughlin wrote: The KVM version string can be one of the following: - qemu-kvm-x.y.z in stable releases - kvm-XX for kvm versions up to kvm-85 - qemu-kvm-devel-XX for kvm

Re: [libvirt] [PATCH 1/1] Add support for serial number in HAL storage

2009-06-11 Thread Daniel Veillard
On Wed, Jun 10, 2009 at 04:20:08PM -0400, Dave Allan wrote: Daniel P. Berrange wrote: On Mon, Jun 08, 2009 at 02:18:14PM -0400, David Allan wrote: --- src/node_device_conf.c |5 + src/node_device_conf.h |1 + src/node_device_hal.c |1 + 3 files changed, 7 insertions(+), 0

Re: [libvirt] PATCH: Improve URI error reporting

2009-06-11 Thread Daniel Veillard
On Wed, Jun 03, 2009 at 05:31:13PM +0100, Daniel P. Berrange wrote: There are currently far too many cases where a correct URI returns an generic 'failed to connect to hypervisor' error message. This gives the user no idea why they could not connect. Of particular importance is that they

[libvirt] attach-disk (cdrom) requirements

2009-06-11 Thread Francesco Latino
Hello, if the guest is powered off and I run the following command to attach a CD-ROM virsh attach-disk QEmu-fedora-i686-3 myCDROM.iso hdc --driver file --type cdrom --mode readonly I got error: libvir: QEMU error : internal error cannot attach device on inactive domain Is it a requirement

Re: [libvirt] [PATCH] [v2] Support kvm-img or qemu-img dynamically

2009-06-11 Thread Matthias Bolte
2009/6/10 Doug Goldstein car...@gentoo.org: This patch adds a new function virFindFileInPath() and uses it to find where a binary lives in the PATH environment variable. [...] +/* + * Finds a requested file in the PATH env. e.g.: + * kvm-img will return /usr/bin/kvm-img + * + * You must

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-11 Thread Hany Fahim
My apologies. Here it is: Xen 3.3: [r...@node1 ~]# xm info host : node1 release: 2.6.18-128.1.10.el5xen version: #1 SMP Thu May 7 11:51:15 EDT 2009 machine: i686 nr_cpus: 2 nr_nodes : 1

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-11 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 02:13:17PM -0400, Hany Fahim wrote: My apologies. Here it is: Xen 3.3: [r...@node1 ~]# xm info total_memory : 3063 free_memory: 128 node_to_cpu: node0:0-1 node_to_memory : node0:128 xen_major : 3 xen_minor

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-11 Thread Hany Fahim
Thanks Daniel, Is it fair to assume this fix may appear in the next release of libvirt? Hany On Thu, Jun 11, 2009 at 2:28 PM, Daniel P. Berrange berra...@redhat.comwrote: On Thu, Jun 11, 2009 at 02:13:17PM -0400, Hany Fahim wrote: My apologies. Here it is: Xen 3.3: [r...@node1 ~]# xm

Re: [libvirt] Re: [CentOS-devel] Latest kvm packages for CentOS 5.3

2009-06-11 Thread Gerrit Slomma
Daniel P. Berrange schrieb: On Wed, Jun 10, 2009 at 04:50:25PM +0200, Dag Wieers wrote: On Wed, 10 Jun 2009, Federico Simoncelli wrote: I've been working quite extensively with kvm on CentOS 5.3 lately. If you are interested in the latest rpm of kvm-kmod-2.6.30-rc8, qemu-kvm-0.10.5

Re: [libvirt] Re: [CentOS-devel] Latest kvm packages for CentOS 5.3

2009-06-11 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 10:17:06PM +0200, Gerrit Slomma wrote: Daniel P. Berrange schrieb: On Wed, Jun 10, 2009 at 04:50:25PM +0200, Dag Wieers wrote: On Wed, 10 Jun 2009, Federico Simoncelli wrote: I've been working quite extensively with kvm on CentOS 5.3 lately. If you are

[libvirt] problems with remote authentication with policykit

2009-06-11 Thread Jim Paris
Hi, I have libvirt 0.6.4 running kvm instances on a headless server. I'm using virt-manager 0.7.0 to manage them. In the past, I would SSH in and run virt-manager as root. Since running GTK apps as root is no good, I've switched to policykit authentication. By default, the libvirt policy only