Re: [libvirt] Update on host interface configuration

2009-02-27 Thread Dan Kenigsberg
On Tue, Feb 24, 2009 at 11:06:02PM +, David Lutterkort wrote: On Tue, 2009-02-24 at 18:24 +0200, Dan Kenigsberg wrote: I know I'm arriving very late to this discussion and should have read it all before posting, but... The project I'm working on wanted to be able to setup network

Re: [libvirt] libvirt tls vnc

2009-02-27 Thread Daniel P. Berrange
On Thu, Feb 26, 2009 at 10:47:37PM +0100, Michael Kress wrote: My questions: 1) Isn't there a more comfortable end user compatible method to connect to the beast? (Because with this method, users obviously are urged to have Linux on the client side. Or would the purchase of real vnc

Re: [libvirt] PATCH: 0/3: Run QEMU guests within a CGroup

2009-02-27 Thread Daniel P. Berrange
On Thu, Feb 26, 2009 at 10:40:54PM +, David Lutterkort wrote: On Thu, 2009-02-26 at 16:36 +, Daniel P. Berrange wrote: Recent Linux kernels have a new concept of 'CGroups' which is a way to group tasks on the system and apply policy to them as a whole. We already use this in the LXC

[libvirt] [PATCH]: Fix non-live migration failure

2009-02-27 Thread Chris Lalancette
There is a logic error in the Qemu driver when doing a non-live migrate. During a non-live migrate, on the source host during the Perform step, we pause the domain; however, if there was ever a failure, we were forgetting to unpause the domain, meaning that the domain was paused forever. Add a

Re: [libvirt] libvirt tls vnc

2009-02-27 Thread Radek Hladik
Michael Kress napsal(a): Michael Kress wrote: Then I'll give a try on linux and mail the results later. 2009.02.26 19:09:44 LOG7[14644:3086588128]: Certificate: /home/kress/keys/client-cert.pem 2009.02.26 19:09:44 LOG7[14644:3086588128]: Certificate loaded 2009.02.26 19:09:44

[libvirt] using virsh remotely

2009-02-27 Thread Andreas Rittershofer
I can use virsh as a command line tool, for exampe virsh list gives me the list of the running machines and I am back to the prompt. When I make virsh -c qemu+ssh://maschine-2/system list I get the list of the running machine on the remote machine-2 - but that's it, I am not back to the

Re: [libvirt] using virsh remotely

2009-02-27 Thread Daniel P. Berrange
On Fri, Feb 27, 2009 at 03:36:15PM +0100, Andreas Rittershofer wrote: I can use virsh as a command line tool, for exampe virsh list gives me the list of the running machines and I am back to the prompt. When I make virsh -c qemu+ssh://maschine-2/system list I get the list of the

Re: [libvirt] using virsh remotely

2009-02-27 Thread Andreas Rittershofer
Am 27.02.2009 um 15:40 schrieb Daniel P. Berrange: On Fri, Feb 27, 2009 at 03:36:15PM +0100, Andreas Rittershofer wrote: I can use virsh as a command line tool, for exampe virsh list gives me the list of the running machines and I am back to the prompt. When I make virsh -c

Re: [libvirt] libvirt tls vnc

2009-02-27 Thread Michael Kress
Daniel P. Berrange wrote: You can see more about what i'm experimenting with here http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg01426.html Hello Daniel, Hello Radek, thanks so much for your great help - you've teached me a lot and you have given me a good orientation. What I

Re: [libvirt] PATCH: 1/3: Put each QEMU guest in a cgroup

2009-02-27 Thread Daniel Veillard
On Thu, Feb 26, 2009 at 04:38:25PM +, Daniel P. Berrange wrote: This patch sets up the cgroups for QEMU instances. It creates a cgroup when starting a guest, uses an exec hook to place the process into the correct cgroup, and cleans up empty cgroup when the QEMU process shuts down. @@

Re: [libvirt] PATCH: 2/3: Implement schedular params for QEMU

2009-02-27 Thread Daniel Veillard
On Thu, Feb 26, 2009 at 04:40:18PM +, Daniel P. Berrange wrote: This patch implements the schedular parameter APIs. This adds a single tunable 'cpu_shares' that is provided by cgroups. This is a slightly more fancy way of doing nice priorities, giving a way to tune relative priority of

Re: [libvirt] [PATCH] Remove redundant monitorWatch

2009-02-27 Thread Cole Robinson
Daniel P. Berrange wrote: On Mon, Feb 16, 2009 at 06:42:11PM -0500, Cole Robinson wrote: For some reason there are two VMDef members being used to keep track of monitor event handles: monitor_watch and monitorWatch. Remove the latter. Can you remove the 'monitor_watch' instead - all the

[libvirt] [PATCH] Mark defined networks as persistent

2009-02-27 Thread Cole Robinson
We aren't setting the persistent bit when a network is defined, so 'destroy' makes them disappear (though they will reappear later since their persistent config is never removed). Attached patch fixes this. Thanks, Cole Mark 'defined' networks as persistent. diff --git a/src/network_conf.c

Re: [libvirt] [PATCH] Account for defined networks when generating bridge names

2009-02-27 Thread Cole Robinson
Daniel P. Berrange wrote: On Mon, Feb 16, 2009 at 06:40:59PM -0500, Cole Robinson wrote: diff --git a/src/network_driver.c b/src/network_driver.c index d750565..d83f902 100644 --- a/src/network_driver.c +++ b/src/network_driver.c @@ -812,7 +812,12 @@ static int

Re: [libvirt] PATCH: 3/3: Control file device access

2009-02-27 Thread Daniel Veillard
On Thu, Feb 26, 2009 at 04:42:59PM +, Daniel P. Berrange wrote: This patch is more focused on access control. CGroups has a controller that enforces ACLs on device nodes. This allows us to restrict exactly what block/character devices a guest is allowed to access. So in the absence of

Re: [libvirt] [PATCH]: Fix non-live migration failure

2009-02-27 Thread Daniel Veillard
On Fri, Feb 27, 2009 at 01:12:40PM +0100, Chris Lalancette wrote: There is a logic error in the Qemu driver when doing a non-live migrate. During a non-live migrate, on the source host during the Perform step, we pause the domain; however, if there was ever a failure, we were forgetting to

[libvirt] [PATCH] Recognize available media in nodedev hal driver

2009-02-27 Thread Cole Robinson
The host device hal driver can't tell when a storage device has media available, the culprit being an incorrect return value check. The attached patch fixes this. Unfortunately the driver also doesn't properly detect media eject and media inserted hal events. I've been poking at this but it's a

[libvirt] [PATCH] Don't validate disk type in virsh attach-disk

2009-02-27 Thread Cole Robinson
virsh attempts to validate the requested disk type, rather than just let the underlying driver do it. This was erroneously denying floppy device attaches. Patch attached. Thanks, Cole commit 3481061f6ed960269d9b29a4a1380367d557cf37 Author: Cole Robinson crobi...@redhat.com Date: Fri Feb 27

Re: [libvirt] [PATCH]: Fix non-live migration failure

2009-02-27 Thread Chris Lalancette
Daniel Veillard wrote: On Fri, Feb 27, 2009 at 01:12:40PM +0100, Chris Lalancette wrote: There is a logic error in the Qemu driver when doing a non-live migrate. During a non-live migrate, on the source host during the Perform step, we pause the domain; however, if there was ever a failure, we

[libvirt] [PATCH] Better error reporting in qemu AttachDevice

2009-02-27 Thread Cole Robinson
The attached patch fixes qemu AttachDevice to show the invalid disk bus or type in it's error messages. This also adds an error message where previously we could fall through, leading virsh to print 'Unknown Error' if attempting to hotplug an IDE disk. Thanks, Cole commit

RE: [libvirt] internal error Timed out while reading console log output

2009-02-27 Thread jmandawg
I have discovered that this timeout is due to kvm-84 being really slow to start (~10-15 seconds just to get to the bios screen). Is there any way that this timeout can be set via the Libvirt.conf with a reasonable default. It seems as though the current default is only around 3 seconds which

RE: [libvirt] Help with bridged networking

2009-02-27 Thread Jesus Urroa
Hi, Thanks all for your help, I installed libvirt 0.6.0-4 and kvm 84-1 from fedora's rawhide and that solved the problem. However know I have a new problem I tried the other virtual machines and some of them just don't start, they seem to stop when the bios jumps to the disk and grub, any

Re: [libvirt] Updated James Morris patch to apply to libvirt-0.6.0 version

2009-02-27 Thread Daniel J Walsh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Another patch off latest repository. This patch does not require the XML to include a label, although this is still supported. Implemented most of the comments from Jim. make check and make syntax-check passes, Added seclabeltest.c to run in tests,

Re: [libvirt] Update on host interface configuration

2009-02-27 Thread David Lutterkort
On Fri, 2009-02-27 at 10:07 +0200, Dan Kenigsberg wrote: The real issue is, that in this stage, management may have lost connectivity to the node. What exactly is the scenario here ? Are you trying to manage any old node as long as it has libvirt installed ? As soon as you need any sort of

Re: [libvirt] virDomainGetVcpus error with Fedora 10

2009-02-27 Thread Kaitlin Rupert
Daniel P. Berrange wrote: On Fri, Feb 13, 2009 at 03:37:22PM -0800, Kaitlin Rupert wrote: Hi, I'm running Fedora 10 with the following libvirt version: libvirt-0.6.0-3 I'm calling virDomainGetVcpus() with the following parameters: virDomainGetVcpus(dom, info, max, NULL, 0); where max = 2

Re: [libvirt] Multpile network interfaces have same MAC address

2009-02-27 Thread David Mueller
On Feb 25, 2009, at 7:29 AM, David Mueller wrote: On Wed, Feb 25, 2009 at 3:21 AM, Daniel P. Berrange berra...@redhat.com wrote: Last time I saw this was with QEMU and the rtl8139 nic, where there was a bug setting up the MMIO space, so all NICs were reading their mac from the first NIC's