Re: [libvirt] [RFC] Allowing promiscuous mode for domains network interfaces

2012-07-05 Thread Jean-Baptiste Rouault
On Monday 02 July 2012 19:14:04 Eric Blake wrote: On 07/02/2012 09:28 AM, Jean-Baptiste Rouault wrote: Hi all, By default, OpenVZ and VirtualBox ( 4.0.x) filter network packets by MAC addresses : only broadcast, multicast and packets directly targeted to VMs are transmitted. This

Re: [libvirt] [virt-tools-list] Tracking VM installations

2012-07-05 Thread Richard W.M. Jones
On Thu, Jul 05, 2012 at 04:49:49AM +0300, Zeeshan Ali (Khattak) wrote: On Thu, Jul 5, 2012 at 12:09 AM, Richard W.M. Jones rjo...@redhat.com wrote: You can use libguestfs (specifically, virt-df) to display the amount of disk space used in the guest. For target disk, we use libvirt's

Re: [libvirt] [PATCH libvirt-java 1/2] Return a byte[] array with secretGetValue

2012-07-05 Thread Daniel Veillard
On Tue, Jun 26, 2012 at 10:07:31AM +0200, Wido den Hollander wrote: We break the API with this, but Java does not support multiple method signatures with different return types. The old method returned a String, but since a secret can be binary data this type is not suited. Users who

Re: [libvirt] [PATCH libvirt-java 2/2] Add flags to StoragePoolRefresh

2012-07-05 Thread Daniel Veillard
On Tue, Jun 26, 2012 at 10:07:32AM +0200, Wido den Hollander wrote: Signed-off-by: Wido den Hollander w...@widodh.nl --- src/main/java/org/libvirt/StoragePool.java |2 +- src/main/java/org/libvirt/jna/Libvirt.java |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

Re: [libvirt] [PATCH] qemu: Always set auth_supported for Ceph disks.

2012-07-05 Thread Daniel Veillard
On Mon, Jun 25, 2012 at 05:44:01PM +0200, Wido den Hollander wrote: Recently the Ceph project defaulted auth_supported from 'none' to 'cephx'. When no auth information was set for Ceph disks this would lead to librados defaulting to 'cephx', but there would be no additional authorization

Re: [libvirt] [virt-tools-list] Tracking VM installations

2012-07-05 Thread Daniel P. Berrange
On Thu, Jul 05, 2012 at 08:54:20AM +0100, Richard W.M. Jones wrote: On Thu, Jul 05, 2012 at 04:49:49AM +0300, Zeeshan Ali (Khattak) wrote: On Thu, Jul 5, 2012 at 12:09 AM, Richard W.M. Jones rjo...@redhat.com wrote: You can use libguestfs (specifically, virt-df) to display the amount

Re: [libvirt] [virt-tools-list] Tracking VM installations

2012-07-05 Thread Daniel P. Berrange
On Wed, Jul 04, 2012 at 10:45:29PM +0300, Zeeshan Ali (Khattak) wrote: Hi, We have a requirement in Boxes for showing progress bars on VMs under installation: https://github.com/gnome-design-team/gnome-mockups/raw/master/boxes/boxes-install6.png

Re: [libvirt] [PATCH] qemu: Always set auth_supported for Ceph disks.

2012-07-05 Thread Daniel Veillard
On Thu, Jul 05, 2012 at 05:07:17PM +0800, Daniel Veillard wrote: On Mon, Jun 25, 2012 at 05:44:01PM +0200, Wido den Hollander wrote: Recently the Ceph project defaulted auth_supported from 'none' to 'cephx'. When no auth information was set for Ceph disks this would lead to librados

Re: [libvirt] [PATCH v8 1/8] parallels: add driver skeleton

2012-07-05 Thread Dmitry Guryanov
On 07/05/2012 02:58 PM, Dmitry Guryanov wrote: I've added patch for mingw-libvirt.spec.in in this message Parallels Virtuozzo Server is a cloud-ready virtualization solution that allows users to simultaneously run multiple virtual machines and containers on the same physical server. Current

Re: [libvirt] [PATCH] Wire up loader to set the QEMU BIOS path

2012-07-05 Thread Paolo Bonzini
Il 28/06/2012 14:02, Eric Blake ha scritto: I just realized (thanks to https://bugzilla.redhat.com/show_bug.cgi?id=836145) that we never documented how to use loader to influence whether a guest will be started with a BIOS that advertises or suppresses S3 support (since there are definitely

Re: [libvirt] [PATCH libvirt-java 1/2] Return a byte[] array with secretGetValue

2012-07-05 Thread Wido den Hollander
On 05-07-12 10:20, Daniel Veillard wrote: On Tue, Jun 26, 2012 at 10:07:31AM +0200, Wido den Hollander wrote: We break the API with this, but Java does not support multiple method signatures with different return types. The old method returned a String, but since a secret can be binary data

Re: [libvirt] [PATCH libvirt-java 1/2] Return a byte[] array with secretGetValue

2012-07-05 Thread Daniel Veillard
On Thu, Jul 05, 2012 at 02:58:44PM +0200, Wido den Hollander wrote: On 05-07-12 10:20, Daniel Veillard wrote: On Tue, Jun 26, 2012 at 10:07:31AM +0200, Wido den Hollander wrote: We break the API with this, but Java does not support multiple method signatures with different return types.

Re: [libvirt] [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-05 Thread Corey Bryant
On 07/04/2012 04:00 AM, Kevin Wolf wrote: Am 03.07.2012 19:03, schrieb Eric Blake: 2. drive_add file=/dev/fdset/1 - qemu_open uses the first fd from the set that has access flags matching the qemu_open action flags. qemu_open increments refcount for this fd. 3. add-fd /dev/fdset/1 FDSET={M} -

Re: [libvirt] [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-05 Thread Kevin Wolf
Am 05.07.2012 16:22, schrieb Corey Bryant: For some examples: 1. client calls 'add-fd', qemu is now tracking fd=4 with refcount 1, in use by monitor, as member of fdset1 2. client crashes, so all tracked fds are visited; fd=4 had not yet been passed to 'remove-fd', so qemu decrements

[libvirt] numa query

2012-07-05 Thread kapil jain
Hi, I have a host machine which contains 4 numa nodes each with 2 GB memory and 4 cpus. I am using qem-kvm hypervisor. I am trying to create a guest with the similar topology (4 numa nodes, with only 2 vcpus and 1 GB memory) as host. Each vcpu is 1-1 pinned to physical cpus(i.e. guest{socket0

Re: [libvirt] [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-05 Thread Corey Bryant
On 07/04/2012 04:09 AM, Kevin Wolf wrote: Am 03.07.2012 20:21, schrieb Corey Bryant: On 07/03/2012 02:00 PM, Eric Blake wrote: On 07/03/2012 11:46 AM, Corey Bryant wrote: Yes, I think adding a +1 to the refcount for the monitor makes sense. I'm a bit unsure how to increment the refcount

[libvirt] [PATCH] Only ummount /proc, /sys, /dev if the root source is '/'

2012-07-05 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Previous commits added code to unmount the existing /proc, /sys and /dev hierarchies on the root filesystem of the container. This should only have been done if the container's root filesystem was the same as the host's root. ie if the root source is

Re: [libvirt] [PATCH] Only ummount /proc, /sys, /dev if the root source is '/'

2012-07-05 Thread Eric Blake
On 07/05/2012 10:09 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Previous commits added code to unmount the existing /proc, /sys and /dev hierarchies on the root filesystem of the container. This should only have been done if the container's root filesystem was

Re: [libvirt] [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-05 Thread Corey Bryant
On 07/05/2012 10:51 AM, Kevin Wolf wrote: Am 05.07.2012 16:22, schrieb Corey Bryant: For some examples: 1. client calls 'add-fd', qemu is now tracking fd=4 with refcount 1, in use by monitor, as member of fdset1 2. client crashes, so all tracked fds are visited; fd=4 had not yet been passed

Re: [libvirt] [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-05 Thread Corey Bryant
On 07/05/2012 12:35 PM, Corey Bryant wrote: On 07/05/2012 10:51 AM, Kevin Wolf wrote: Am 05.07.2012 16:22, schrieb Corey Bryant: For some examples: 1. client calls 'add-fd', qemu is now tracking fd=4 with refcount 1, in use by monitor, as member of fdset1 2. client crashes, so all tracked

Re: [libvirt] [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-05 Thread Eric Blake
On 07/05/2012 10:35 AM, Corey Bryant wrote: 1. client calls 'add-fd', qemu is now tracking fd=4 in fdset1 with refcount of 0; fd=4's in-use flag is turned on 2. client calls 'device-add' with /dev/fdset/1 as the backing filename, so qemu_open() increments the refcount of fdset1 to 1 3.

Re: [libvirt] [PATCH 00/12] Fine grained access control for libvirt APIs

2012-07-05 Thread Corey Bryant
On 05/02/2012 07:44 AM, Daniel P. Berrange wrote: This is a repost of https://www.redhat.com/archives/libvir-list/2012-January/msg00907.html which got no comments last time out. This series of patch is the minimal required to get a working proof of concept implementation of fine grained

Re: [libvirt] [Qemu-devel] [PATCH v4 0/7] file descriptor passing using pass-fd

2012-07-05 Thread Corey Bryant
On 07/05/2012 01:00 PM, Eric Blake wrote: On 07/05/2012 10:35 AM, Corey Bryant wrote: 1. client calls 'add-fd', qemu is now tracking fd=4 in fdset1 with refcount of 0; fd=4's in-use flag is turned on 2. client calls 'device-add' with /dev/fdset/1 as the backing filename, so qemu_open()

Re: [libvirt] [PATCH 03/12] Remove hack using existance of an 'identity' string to disable auth

2012-07-05 Thread Corey Bryant
On 05/02/2012 07:44 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Currently the server determines whether authentication of clients is complete, by checking whether an identity is set. This patch removes that lame hack and replaces it with an explicit method for

Re: [libvirt] [PATCH 05/12] Define public API for managing identities

2012-07-05 Thread Corey Bryant
On 05/02/2012 07:44 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com --- include/libvirt/libvirt.h.in | 30 ++ include/libvirt/virterror.h |1 + src/datatypes.h | 20 src/libvirt.c| 246

Re: [libvirt] [PATCH 06/12] Define basic internal API for access control

2012-07-05 Thread Corey Bryant
On 05/02/2012 07:44 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com --- include/libvirt/virterror.h |3 + po/POTFILES.in|1 + src/Makefile.am | 16 + src/access/apis.txt | 577

Re: [libvirt] [PATCH 08/12] Add an SELinux access control driver

2012-07-05 Thread Corey Bryant
On 05/02/2012 07:44 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com --- po/POTFILES.in |1 + src/Makefile.am |3 +- src/access/viraccessdriverselinux.c | 388 +++

Re: [libvirt] [PATCH 09/12] Add ability to associate real/effective identity on virNetServerClientPtr

2012-07-05 Thread Corey Bryant
On 05/02/2012 07:44 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Add APIs which allow storage of a real effective identity on all server clients. Also add an API which allows creation of an initial identity based on the results of client authentication processes

[libvirt] [PATCH] qemu_agent: support qemu agent general command

2012-07-05 Thread MATSUDA, Daiki
Hi, All. Thank you for many comments. And I extremely apologize not to use git... My company's network closes the almost port and only http via proxy and simple mail are available. The attached patch is reflected all comments. Especially, diff -uNrp libvirt-0.9.13.orig/src/driver.h

[libvirt] [PATCH] Fix a string format bug in qemu_cgroup.c

2012-07-05 Thread tangchen
Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- src/qemu/qemu_cgroup.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index f8f375f..662d41d 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -473,8

Re: [libvirt] [PATCH] Fix a string format bug in qemu_cgroup.c

2012-07-05 Thread Wen Congyang
At 07/06/2012 09:53 AM, tangchen Wrote: Signed-off-by: Tang Chen tangc...@cn.fujitsu.com --- src/qemu/qemu_cgroup.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index f8f375f..662d41d 100644 ---