Re: [libvirt] virsh -no-kvm problem on debian install

2009-06-23 Thread ChaosMedia WebDev
Daniel P. Berrange wrote: On Mon, Jun 22, 2009 at 12:18:44PM +0200, ChaosMedia WebDev wrote: Hi, i've installed lastest kvm-86 and libvirt-0.6.4 tarballs on my debian stable and have a problem using virsh No matter what i do in the guest domain config or with /usr/bin/ symlinks,

Re: [libvirt] [PATCH] Do a correct format mapping of partitions

2009-06-23 Thread Daniel P. Berrange
On Mon, Jun 22, 2009 at 06:31:38PM +0200, Henrik Persson E wrote: This patch reads the partition type and sets the correct target format of the storage volume when based on physical disk. I think the general idea you're trying to implement looks reasonable, but this patch you posted has been

[libvirt] [PATCH] Fixing issues in re-detection of transient VMs

2009-06-23 Thread Federico Simoncelli
Re-detection of transient VMs had two issues described in bugs 507304 and 507537: https://bugzilla.redhat.com/show_bug.cgi?id=507304 Summary: After a migration the domain status is saved as paused and it is not updated to running. A following libvirtd restart will detect the vm as paused

Re: [libvirt] [PATCH 4/3] Control LXC capabilities

2009-06-23 Thread Daniel P. Berrange
This patch updates the LXC driver to make use of libcap-ng for managing process capabilities. Previously Ryota Ozaki had provided code to remove the CAP_BOOT capabilities inside the container, preventing host reboots. In addition to that one, I believe we should be removing ability to load kernel

[libvirt] [PATCH] Do a correct format mapping of partitions 2

2009-06-23 Thread Henrik Persson
I make a new try from a different mail client now. /Henrik --- libvirt-0.6.4.org/src/parthelper.c 2008-09-02 11:24:21.0 +0200 +++ libvirt-0.6.4/src/parthelper.c 2009-06-22 16:29:49.108681000 +0200 @@ -67,6 +67,7 @@ int main(int argc, char **argv) while (part) { const char

Re: [netcf-devel] [libvirt] [RFC] Reporting host interface status/statistics via netcf/libvirt, and listing active vs. inactive interfaces

2009-06-23 Thread David Lutterkort
On Mon, 2009-06-22 at 10:50 +0100, Daniel P. Berrange wrote: libvirt does not require that all functionality is present on all platforms. So as long as an error is raised if the user requests an unsupported configuration, we're fine. As for the XML question, libvirt requires 100% backwards

[libvirt] [PATCH] Avoid unecessary SELinux setfilecon

2009-06-23 Thread Daniel Veillard
As pointed by Tim Waugh in https://bugzilla.redhat.com/show_bug.cgi?id=507555 there are times where setting an SELinux file context is not possible, so if the context is already set appropriately the operation should be skipped Patch from Tim looks fine by me though I'm not versed in

Re: [libvirt] [PATCH] Avoid unecessary SELinux setfilecon

2009-06-23 Thread Daniel P. Berrange
On Tue, Jun 23, 2009 at 03:02:52PM +0200, Daniel Veillard wrote: As pointed by Tim Waugh in https://bugzilla.redhat.com/show_bug.cgi?id=507555 there are times where setting an SELinux file context is not possible, so if the context is already set appropriately the operation should be

Re: [libvirt] [RFC][PATCH] lxc: drop CAP_SYS_BOOT capability to preventrebooting from inside containers

2009-06-23 Thread Daniel P. Berrange
On Fri, May 08, 2009 at 12:43:19PM +0900, Ryota Ozaki wrote: Hi Serge, On Fri, May 8, 2009 at 11:04 AM, Serge E. Hallyn se...@us.ibm.com wrote: Quoting Ryota Ozaki (ozaki.ry...@gmail.com): Hi Serge, On Fri, May 8, 2009 at 9:12 AM, Serge E. Hallyn se...@us.ibm.com wrote: Quoting

[libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
My system: Ubuntu Jaunty 9.04 libvirt 0.6.4 kvm 0.8.4 qemu 0.10.0 I'm not sure what triggered this, I was working with several VMs, and then found that virsh decided to hang: ga...@kvr02:~$ virsh list Connecting to uri: qemu:///system hang I have to ^C out of it. If I 'force-stop' and then

Re: [libvirt] [PATCH 1/3] Probe for libcap-ng

2009-06-23 Thread Daniel P. Berrange
On Tue, Jun 23, 2009 at 03:35:07PM +0200, Daniel Veillard wrote: On Mon, Jun 22, 2009 at 08:51:37PM +0100, Daniel P. Berrange wrote: Probe for capng in configure, and set some RPM spec rules. Trivial boring stuff. As long as the requirement is not mandatory I'm just a bit surprized that

Re: [libvirt] [PATCH 2/3] Set basic capabilities needed for libvirtd

2009-06-23 Thread Daniel Veillard
On Mon, Jun 22, 2009 at 08:58:27PM +0100, Daniel P. Berrange wrote: This sets up some basic support in libvirtd for dropping privileges by removing capabilities, or changing uid/gid of the process. It needed a little movement of existing code to allow us to drop privileges in between

Re: [libvirt] [PATCH 1/3] Probe for libcap-ng

2009-06-23 Thread Daniel Veillard
On Mon, Jun 22, 2009 at 08:51:37PM +0100, Daniel P. Berrange wrote: Probe for capng in configure, and set some RPM spec rules. Trivial boring stuff. As long as the requirement is not mandatory I'm just a bit surprized that libcap-ng is not listed as a dependency just a build one on the spec

Re: [libvirt] [PATCH 3/3] Run all VMs without capabilities

2009-06-23 Thread Daniel Veillard
On Mon, Jun 22, 2009 at 09:05:24PM +0100, Daniel P. Berrange wrote: This patch adds a new flag to virExec() called VIR_EXEC_CLEAR_CAPS. If you set this flag than all capabilities are removed inbetween the fork() and exec() pair. It also updates QEMU and UML driver to run their VMs without

Re: [libvirt] [PATCH] Fixing issues in re-detection of transient VMs

2009-06-23 Thread Daniel Veillard
On Tue, Jun 23, 2009 at 11:30:10AM +0200, Federico Simoncelli wrote: Re-detection of transient VMs had two issues described in bugs 507304 and 507537: https://bugzilla.redhat.com/show_bug.cgi?id=507304 Summary: After a migration the domain status is saved as paused and it is not updated

Re: [libvirt] [PATCH 4/3] Control LXC capabilities

2009-06-23 Thread Serge E. Hallyn
Quoting Daniel P. Berrange (berra...@redhat.com): This patch updates the LXC driver to make use of libcap-ng for managing process capabilities. Previously Ryota Ozaki had provided code to remove the CAP_BOOT capabilities inside the container, preventing host reboots. In addition to that one,

Re: [libvirt] [PATCH] Power Hypervisor Support for libvirt - minimum set of features

2009-06-23 Thread Eduardo Otubo
Hello again, This is the life cycle operations I've been working on these days. Fortunately this is a smaller and more punctual diff. :) Any comment is always welcome. []'s On Mon, 2009-06-22 at 18:57 -0300, Eduardo Otubo wrote: Hello all, This is the initial patch for the driver for IBM

[libvirt] [PATCH] For comment/critique only - netcf backend for virInterface*.

2009-06-23 Thread Laine Stump
This is the backend for the interface driver (virInterface*()) that uses netcf. There are a few issues with it: 1) It doesn't yet implement the backend for virConnectListDefinedInterfaces() and virConnectNumOfDefinedInterfaces() (although it does use my patched netcf API to list only

Re: [libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
On Tue, Jun 23, 2009 at 06:22:34AM -0700, Garry Dolley wrote: My system: Ubuntu Jaunty 9.04 libvirt 0.6.4 kvm 0.8.4 qemu 0.10.0 I'm not sure what triggered this, I was working with several VMs, and then found that virsh decided to hang: ga...@kvr02:~$ virsh list Connecting to uri:

Re: [libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
On Tue, Jun 23, 2009 at 04:08:25PM -0300, Itamar Reis Peixoto wrote: why you don't try Fedora 11 it's have newer versions of libvirt and KVM and if you have problem's you can report a bug or talk with developers using IRC Why don't I use Fedora? Let's not go there... ;) -- Garry

[libvirt] Memory leak in node_device_conf.c

2009-06-23 Thread Dave Allan
I found what I assume is a memory leak in the node device code while working on a separate problem; patch attached. Dave diff --git a/src/node_device_conf.c b/src/node_device_conf.c index 1fbf9dc..56a9bb5 100644 --- a/src/node_device_conf.c +++ b/src/node_device_conf.c @@ -1203,6 +1203,8 @@

Re: [libvirt] virsh hangs

2009-06-23 Thread Daniel P. Berrange
On Tue, Jun 23, 2009 at 06:22:34AM -0700, Garry Dolley wrote: My system: Ubuntu Jaunty 9.04 libvirt 0.6.4 kvm 0.8.4 qemu 0.10.0 I'm not sure what triggered this, I was working with several VMs, and then found that virsh decided to hang: ga...@kvr02:~$ virsh list Connecting to uri:

Re: [libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
On Tue, Jun 23, 2009 at 12:05:35PM -0700, Garry Dolley wrote: On Tue, Jun 23, 2009 at 06:22:34AM -0700, Garry Dolley wrote: My system: Ubuntu Jaunty 9.04 libvirt 0.6.4 kvm 0.8.4 qemu 0.10.0 I'm not sure what triggered this, I was working with several VMs, and then found

Re: [libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
On Tue, Jun 23, 2009 at 09:39:25PM +0100, Daniel P. Berrange wrote: On Tue, Jun 23, 2009 at 06:22:34AM -0700, Garry Dolley wrote: My system: Ubuntu Jaunty 9.04 libvirt 0.6.4 kvm 0.8.4 qemu 0.10.0 I'm not sure what triggered this, I was working with several VMs, and then