Re: [libvirt] [PATCH] build: use correct limit for unsigned long long

2012-07-02 Thread Daniel P. Berrange
On Fri, Jun 29, 2012 at 03:11:41PM -0600, Eric Blake wrote: Reported by Jason Helfman as a build-breaker on FreeBSD. * src/conf/domain_conf.c (virDomainFSDefParseXML): Use POSIX spelling. * src/openvz/openvz_conf.c (openvzReadFSConf): Likewise. --- Pushing under the build-breaker rule.

Re: [libvirt] compile option: --without-gnutls

2012-07-02 Thread Daniel P. Berrange
On Fri, Jun 29, 2012 at 06:09:53PM -0400, Chris Van Heuveln wrote: Hi libvirt-list, Full disclosure: this is the first open source project I've tried to contribute to and I'm still learning the process and tools. Welcome, and don't worry, we're a generally friendly bunch who like seeing new

Re: [libvirt] sanlock on F17

2012-07-02 Thread Daniel P. Berrange
On Fri, Jun 29, 2012 at 08:06:34PM -0400, Dave Allan wrote: I just tried to set up sanlock on F17 using the instructions at http://libvirt.org/locking.html, but libvirtd refuses to start with the sanlock error in the logs: Jun 29 19:56:20 nienna sanlock[8423]: 19846 open error -13

[libvirt] libvirt can't get capablities

2012-07-02 Thread Li Zhang
Hi, I have suffered several times on both x86 machine and power machine. When we want to use libvirt to create on VMs, it reports unknown OS type hvm. We can't get guest capabilities. The log is as the following(log_level=1): 2003-01-02 01:21:39.895+: 12214: error :

Re: [libvirt] libvirt can't get capablities

2012-07-02 Thread Christophe Fergeau
Hey, On Mon, Jul 02, 2012 at 05:47:08PM +0800, Li Zhang wrote: 2003-01-02 01:22:00.135+: 12207: error : qemuCapsComputeCmdFlags:1218 : unsupported configuration: this qemu binary requires libvirt to be compiled with yajl Your first problem is here, you need to have yajl-devel installed

Re: [libvirt] [PATCH] fix key error for qemuMonitorGetBlockStatsInfo

2012-07-02 Thread Osier Yang
On 2012年06月21日 15:58, Osier Yang wrote: On 2012年06月21日 15:37, lvro...@linux.vnet.ibm.com wrote: From: lvroycelvro...@linux.vnet.ibm.com virDomainBlockStatsFlags can't collect total_time_ns for read/write/flush because of key typo when retriveing from qemu cmd result Signed-off-by:

Re: [libvirt] libvirt can't get capablities

2012-07-02 Thread Osier Yang
On 2012年07月02日 17:47, Li Zhang wrote: Hi, I have suffered several times on both x86 machine and power machine. When we want to use libvirt to create on VMs, it reports unknown OS type hvm. We can't get guest capabilities. The log is as the following(log_level=1): 2003-01-02

Re: [libvirt] libvirt can't get capablities

2012-07-02 Thread Daniel P. Berrange
On Mon, Jul 02, 2012 at 05:47:08PM +0800, Li Zhang wrote: Hi, I have suffered several times on both x86 machine and power machine. When we want to use libvirt to create on VMs, it reports unknown OS type hvm. We can't get guest capabilities. The log is as the

Re: [libvirt] [libvirt-php PATCH] Add ability to managed save libvirt domains

2012-07-02 Thread Michal Novotny
On 06/27/2012 08:31 AM, Daniel Veillard wrote: On Sat, Jun 23, 2012 at 07:01:51AM +0400, y...@billing.fastvps.ru wrote: From: Pavel Odintsov pavel.odint...@gmail.com --- src/libvirt-php.c | 22 ++ src/libvirt-php.h |1 + 2 files changed, 23 insertions(+), 0

Re: [libvirt] [Patch v2 3/3] apparmor: QEMU bridge helper policy updates

2012-07-02 Thread Jamie Strandboge
On Fri, 2012-06-29 at 14:08 -0400, rmar...@linux.vnet.ibm.com wrote: From: Richa Marwaha rmar...@linux.vnet.ibm.com This patch provides AppArmor policy updates for the QEMU bridge helper. The QEMU bridge helper is a SUID executable exec'd by QEMU that drops capabilities to CAP_NET_ADMIN and

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

2012-07-02 Thread Jean-Baptiste Rouault
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 behaviour prevents from using promiscuous mode inside domains. I'd like to write some patches to disable these

Re: [libvirt] [Patch v2] vmware: detect when a domain was shut down from the inside

2012-07-02 Thread Jean-Baptiste Rouault
On Monday 02 April 2012 15:59:32 Jean-Baptiste Rouault wrote: This patch adds an internal function vmwareUpdateVMStatus to update the real state of the domain. This function is used in various places in the driver, in particular to detect when the domain has been shut down by the user with the

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

2012-07-02 Thread Eric Blake
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 behaviour prevents from using promiscuous mode inside

Re: [libvirt] libvirt can't get capablities

2012-07-02 Thread Christophe Fergeau
On Mon, Jul 02, 2012 at 05:56:35PM +0800, Osier Yang wrote: I'm wondering if we should force to require yajl-devel if build with with-qemu, as without yajl-devel, it can't do much work with new qemu now. Something like this ? ;) commit 350583c859deaaddc98d7319e1c2ad649e4d3e83 Author: Eric

[libvirt] [PATCH] qemu: add rbd to whitelist of migration-safe formats

2012-07-02 Thread Josh Durgin
QEMU (and librbd) flush the cache on the source before the destination starts, and the destination does not read any changeable data before that, so live migration with rbd caching is safe. This makes 'virsh migrate' work with rbd and caching without the --unsafe flag. Reported-by: Vladimir

Re: [libvirt] [PATCH] qemu: add rbd to whitelist of migration-safe formats

2012-07-02 Thread Eric Blake
On 07/02/2012 12:55 PM, Josh Durgin wrote: QEMU (and librbd) flush the cache on the source before the destination starts, and the destination does not read any changeable data before that, so live migration with rbd caching is safe. This makes 'virsh migrate' work with rbd and caching

Re: [libvirt] [PATCH] qemu: add rbd to whitelist of migration-safe formats

2012-07-02 Thread Josh Durgin
On 07/02/2012 12:48 PM, Eric Blake wrote: On 07/02/2012 12:55 PM, Josh Durgin wrote: QEMU (and librbd) flush the cache on the source before the destination starts, and the destination does not read any changeable data before that, so live migration with rbd caching is safe. This makes 'virsh

Re: [libvirt] [PATCH 01/13] Introduce the function virCgroupForHypervisor

2012-07-02 Thread Eric Blake
On 06/05/2012 02:13 AM, tangchen wrote: Introduce the function virCgroupForHypervisor() to create sub directory for hypervisor thread(include I/O thread, vhost-net thread) According to your cover letter, this patch was written by Wen, but I don't see a From: listing or Signed-off-by or any

Re: [libvirt] [PATCH 02/13] Introduce the function virCgroupMoveTask

2012-07-02 Thread Eric Blake
On 06/05/2012 02:16 AM, tangchen wrote: Introduce a new API to move all tasks from a cgroup to another cgroup Again, authorship is incorrect for the purposes of 'git am'. --- src/libvirt_private.syms |1 + src/util/cgroup.c| 55 ++

[libvirt] [PATCH 1/3] esx: Wrap libcurl multi handle

2012-07-02 Thread Matthias Bolte
--- src/esx/esx_vi.c | 111 ++ src/esx/esx_vi.h | 18 + 2 files changed, 129 insertions(+), 0 deletions(-) diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c index 5b5ab69..48718b6 100644 --- a/src/esx/esx_vi.c +++ b/src/esx/esx_vi.c

[libvirt] [PATCH 2/3] esx: Extend esxVI_CURL_Download for partial downloads

2012-07-02 Thread Matthias Bolte
--- src/esx/esx_driver.c |2 +- src/esx/esx_vi.c | 27 +-- src/esx/esx_vi.h |3 ++- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index db2144c..95b9286 100644 --- a/src/esx/esx_driver.c +++

[libvirt] [PATCH 3/3] esx: Add volume upload and download to the storage driver

2012-07-02 Thread Matthias Bolte
This requires new flags for the public API functions, because a VMDK volume can have metadata and content in separate files. This is not yet supported by the libvirt storage API as it currently assumes that a single file represents a volume. At least it does so in case of the volume upload and

[libvirt] [PATCH 0/3] esx: Storage volume up- and download

2012-07-02 Thread Matthias Bolte
I started the download part and the stream driver quite a while ago but stopped and put it aside as I realized that the storage volume API up- and download functions assume one file per volume. This is a problem with ESX as a VMDK can consist of two files. To solve this now I added two new flags:

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

2012-07-02 Thread Corey Bryant
On 06/26/2012 06:54 PM, Eric Blake wrote: On 06/26/2012 04:28 PM, Corey Bryant wrote: With this proposed series, we have usage akin to: 1. pass_fd FDSET={M} - returns a string /dev/fd/N showing QEMU's view of the FD 2. drive_add file=/dev/fd/N 3. if failure:

Re: [libvirt] [PATCH 3/3] esx: Add volume upload and download to the storage driver

2012-07-02 Thread Eric Blake
On 07/02/2012 03:44 PM, Matthias Bolte wrote: The new METADATA and CONTENT flags allow a caller to tell the ESX storage driver which part of a volume should be up- or downloaded in case of a two-file VMDK. In case of a one-file VMDK both or no flags must be given. In case of non-VMDK volumes

Re: [libvirt] [PATCH 0/3] esx: Storage volume up- and download

2012-07-02 Thread Doug Goldstein
On Mon, Jul 2, 2012 at 4:44 PM, Matthias Bolte matthias.bo...@googlemail.com wrote: I started the download part and the stream driver quite a while ago but stopped and put it aside as I realized that the storage volume API up- and download functions assume one file per volume. This is a

Re: [libvirt] [PATCH 1/3] esx: Wrap libcurl multi handle

2012-07-02 Thread Doug Goldstein
On Mon, Jul 2, 2012 at 4:44 PM, Matthias Bolte matthias.bo...@googlemail.com wrote: ---  src/esx/esx_vi.c |  111 ++  src/esx/esx_vi.h |   18 +  2 files changed, 129 insertions(+), 0 deletions(-) diff --git a/src/esx/esx_vi.c

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

2012-07-02 Thread Eric Blake
On 07/02/2012 04:02 PM, Corey Bryant wrote: Here's another option that Kevin and I discussed today on IRC. I've modified a few minor details since the discussion. And Kevin please correct me if anything is wrong. Proposal Four: Pass a set of fds via 'pass-fds'. The group of fds should

Re: [libvirt] [PATCH] qemu: add rbd to whitelist of migration-safe formats

2012-07-02 Thread Eric Blake
On 07/02/2012 02:42 PM, Josh Durgin wrote: On 07/02/2012 12:48 PM, Eric Blake wrote: On 07/02/2012 12:55 PM, Josh Durgin wrote: QEMU (and librbd) flush the cache on the source before the destination starts, and the destination does not read any changeable data before that, so live migration

Re: [libvirt] [PATCH 2/3] esx: Extend esxVI_CURL_Download for partial downloads

2012-07-02 Thread Doug Goldstein
On Mon, Jul 2, 2012 at 4:44 PM, Matthias Bolte matthias.bo...@googlemail.com wrote: ---  src/esx/esx_driver.c |    2 +-  src/esx/esx_vi.c     |   27 +--  src/esx/esx_vi.h     |    3 ++-  3 files changed, 28 insertions(+), 4 deletions(-) diff --git

Re: [libvirt] [PATCH 03/13] create a new cgroup and move all hypervisor threads to the new cgroup

2012-07-02 Thread Eric Blake
On 06/05/2012 02:16 AM, tangchen wrote: create a new cgroup and move all hypervisor threads to the new cgroup. And then we can do the other things: 1. limit only vcpu usage rather than the whole qemu 2. limit for hypervisor threads(include vhost-net threads) A really useful thing to add to

Re: [libvirt] [PATCH 04/13] Enable cpuset cgroup and synchronous vcpupin info to cgroup

2012-07-02 Thread Eric Blake
On 06/05/2012 02:17 AM, tangchen wrote: This patch enables cpuset cgroup, and synchronous vcpupin info set by sched_setaffinity() to cgroup. This doesn't really give many details about what you are trying to do here. Signed-off-by: Tang Chen tangc...@cn.fujitsu.com ---

Re: [libvirt] [PATCH] qemu_agent: support guest-info command

2012-07-02 Thread MATSUDA, Daiki
Mr. Daniel. I rewrote the patch for libvirt-0.9.13 to move some codes to libvirt-qemu as you suggested. But I am sorry for unusing git, because my joining company is very elegant for network security. So, I have an only way via http to get libvirt's source code... Regards MATSUDA Daiki

Re: [libvirt] libvirt can't get capablities

2012-07-02 Thread Li Zhang
On 07/02/2012 05:53 PM, Christophe Fergeau wrote: Hey, On Mon, Jul 02, 2012 at 05:47:08PM +0800, Li Zhang wrote: 2003-01-02 01:22:00.135+: 12207: error : qemuCapsComputeCmdFlags:1218 : unsupported configuration: this qemu binary requires libvirt to be compiled with yajl Your first

Re: [libvirt] libvirt can't get capablities

2012-07-02 Thread Li Zhang
On 07/02/2012 05:56 PM, Osier Yang wrote: On 2012年07月02日 17:47, Li Zhang wrote: Hi, I have suffered several times on both x86 machine and power machine. When we want to use libvirt to create on VMs, it reports unknown OS type hvm. We can't get guest capabilities. The log is as the

Re: [libvirt] [PATCH 01/13] Introduce the function virCgroupForHypervisor

2012-07-02 Thread tangchen
Hi~ On 07/03/2012 04:40 AM, Eric Blake wrote: On 06/05/2012 02:13 AM, tangchen wrote: Introduce the function virCgroupForHypervisor() to create sub directory for hypervisor thread(include I/O thread, vhost-net thread) According to your cover letter, this patch was written by Wen, but I

Re: [libvirt] libvirt can't get capablities

2012-07-02 Thread Li Zhang
On 07/03/2012 09:12 AM, Li Zhang wrote: On 07/02/2012 05:53 PM, Christophe Fergeau wrote: Hey, On Mon, Jul 02, 2012 at 05:47:08PM +0800, Li Zhang wrote: 2003-01-02 01:22:00.135+: 12207: error : qemuCapsComputeCmdFlags:1218 : unsupported configuration: this qemu binary requires libvirt to