Re: [libvirt] [PATCH] OpenVZ xml refactoring

2008-07-29 Thread Daniel P. Berrange
On Mon, Jul 28, 2008 at 10:12:49AM -0400, Daniel Veillard wrote: On Mon, Jul 28, 2008 at 05:38:47PM +0400, Evgeniy Sokolov wrote: On Fri, Jul 25, 2008 at 04:44:09PM +0400, Evgeniy Sokolov wrote: In general that looks way cleaner to me, I will give it a few nmore days and apply, unless

Re: [libvirt] [PATCH] OpenVZ xml refactoring

2008-07-29 Thread Daniel Veillard
On Tue, Jul 29, 2008 at 08:53:27AM +0100, Daniel P. Berrange wrote: On Mon, Jul 28, 2008 at 10:12:49AM -0400, Daniel Veillard wrote: On Mon, Jul 28, 2008 at 05:38:47PM +0400, Evgeniy Sokolov wrote: On Fri, Jul 25, 2008 at 04:44:09PM +0400, Evgeniy Sokolov wrote: In general that

Re: [libvirt] [PATCH] Fix logical storage pool operation on SLES10-SP2

2008-07-29 Thread Daniel P. Berrange
On Mon, Jul 28, 2008 at 03:35:30PM -0400, David Lively wrote: The attached patch adjusts for a difference in behavior in the LVM utilities 'lvs' and 'vgs'. The SLES10-SP2 versions of these (and presumably others) append a trailing separator. This patch simply adjusts the regexps to allow

Re: [libvirt] Libvir on Hardy: file a bug or not?

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 08:53:03AM +0300, Mihamina Rakotomandimby (R12y) wrote: Hi, I am using Ubuntu Hardy up to date. I get: virsh # start xp libvir: QEMU error : QEMU quit during console startup qemu: unknowm parameter 'boot' in 'file=/home/mihamina/xp.img,if=ide,boot=on' error:

Re: [libvirt] Libvir on Hardy: file a bug or not?

2008-07-29 Thread Mihamina Rakotomandimby (R12y)
Daniel P. Berrange wrote: The Ubuntu libvirt had a early version of the patch for supporting the 'boot=on' parameter - I believe they always use it for any VM with a domain type of 'kvm'. Since you are using regular QEMU it is correct that you need to change the domain type to type=qemu anyway.

Re: [libvirt] Libvir on Hardy: file a bug or not?

2008-07-29 Thread Pau Garcia i Quiles
Quoting Mihamina Rakotomandimby (R12y) [EMAIL PROTECTED]: I cannot help you with your problem but in case you want to try the latest and greatest libvirt, there are 0.4.4 packages available in my PPA: http://launchpad.net/~pgquiles/+archive (UNOFFICIAL AND UNSUPPORTED) Hi, I am using

[libvirt] Now ESXi is 'free'

2008-07-29 Thread Stefan de Konink
Now ESXi is 'free as in beer' would it be appropriate to hack a libvirtd in it? Stefan -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH]: Add carriage returns to qemudLog

2008-07-29 Thread Chris Lalancette
Since qemudLog just maps to fprintf(stderr), add carriage returns every where it is used, so it's easier on the eyes while debugging. Signed-off-by: Chris Lalancette [EMAIL PROTECTED] Index: src/qemu_driver.c === RCS file:

[libvirt] [PATCH]: Fix Qemu CD-ROM with no source

2008-07-29 Thread Chris Lalancette
The new generic domain re-factor introduced a small regression into the drive handling code. In particular, if you had a section of XML like: disk type='file' device='cdrom' target dev='hdc' bus='ide'/ readonly/ /disk This used to work with older libvirt, but now fails.

Re: [libvirt] [PATCH] qemud: move check for polkit before config file check

2008-07-29 Thread Daniel P. Berrange
On Sat, Jul 26, 2008 at 07:02:59PM -0400, Guido G?nther wrote: Hi, Without this patch and without a /etc/libvirt/libvirt.conf config file the default policy for running the daemon as non root user is still polkit which is bad. Please apply. Urgh, yes there's a hidden 'return' statement on the

Re: [libvirt] Now ESXi is 'free'

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 11:49:52AM +0200, Stefan de Konink wrote: Now ESXi is 'free as in beer' would it be appropriate to hack a libvirtd in it? I don't see how it being free really makes any significant difference. Someone still needs to actually write a libvirt driver to interact with

Re: [libvirt] [PATCH]: Fix Qemu CD-ROM with no source

2008-07-29 Thread Gerd Hoffmann
Daniel P. Berrange wrote: On Tue, Jul 29, 2008 at 12:07:37PM +0200, Chris Lalancette wrote: The new generic domain re-factor introduced a small regression into the drive handling code. In particular, if you had a section of XML like: disk type='file' device='cdrom' target

Re: [libvirt] [PATCH]: Fix Qemu CD-ROM with no source

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 12:07:37PM +0200, Chris Lalancette wrote: The new generic domain re-factor introduced a small regression into the drive handling code. In particular, if you had a section of XML like: disk type='file' device='cdrom' target dev='hdc' bus='ide'/

Re: [libvirt] [PATCH/RFC]: hostdev passthrough support

2008-07-29 Thread Daniel P. Berrange
On Mon, Jul 28, 2008 at 09:26:57AM -0400, Daniel Veillard wrote: On Fri, Jul 25, 2008 at 04:17:30PM -0400, Guido Günther wrote: Hi, attached is some basic support for host device passthrough. It enables you to passthrough usb devices in qemu/kvm via: devices hostdev type='usb'

Re: [libvirt] [PATCH/RFC]: hostdev passthrough support

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 11:53:46AM +0100, Daniel P. Berrange wrote: This stuff is obviously going to have a correlation with the host device enumeration support I'd offered a design for a few months back. As such I'd like to try and keep a consistent XML format between the two. For reference

[libvirt] KVM migration patch (2008-07-29)

2008-07-29 Thread Richard W.M. Jones
This is just a rebase of the KVM migration patch to the latest libvirt CVS: http://www.annexia.org/tmp/libvirt-kvm-migrate-20080729.patch Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my OCaml programming blog: http://camltastic.blogspot.com

Re: [libvirt] [PATCH/RFC]: hostdev passthrough support

2008-07-29 Thread Daniel P. Berrange
On Fri, Jul 25, 2008 at 04:17:30PM -0400, Guido G?nther wrote: Hi, attached is some basic support for host device passthrough. It enables you to passthrough usb devices in qemu/kvm via: devices hostdev type='usb' vendor='0204' product='6025'/ hostdev type='usb' bus='001' device='007'/

Re: [libvirt] [PATCH/RFC]: hostdev passthrough support

2008-07-29 Thread Daniel Veillard
On Tue, Jul 29, 2008 at 11:56:18AM +0100, Daniel P. Berrange wrote: On Mon, Jul 28, 2008 at 09:26:57AM -0400, Daniel Veillard wrote: I also think we need to clarify the naming conventions, are numbers provided decimal, if yes then is an 0x hexadecimal version allowed too. I also see how a

[libvirt] [PATCH] virsh edit command

2008-07-29 Thread Richard W.M. Jones
One thing which is very apparent is that sys admins using libvirt / virsh have a great deal of difficulty understanding where the configuration files have gone and how to edit them. This patch adds a virsh edit domain command which is basically the equivalent of: virsh dumpxml dom

Re: [libvirt] Libvir on Hardy: file a bug or not?

2008-07-29 Thread Mihamina Rakotomandimby (R12y)
Pau Garcia i Quiles wrote: I cannot help you with your problem but in case you want to try the latest and greatest libvirt, there are 0.4.4 packages available in my PPA: http://launchpad.net/~pgquiles/+archive (UNOFFICIAL AND UNSUPPORTED) They doesnt solve the problem. Thank you, anyway. --

Re: [libvirt] [PATCH] Fix logical storage pool operation on SLES10-SP2

2008-07-29 Thread David Lively
On Tue, 2008-07-29 at 09:44 +0100, Daniel P. Berrange wrote: BTW, what version of the LVM tools is SLES using - its probably useful to note that in the comment you added, in case the same problem is particular to a version, rather than just SLES lvm2 2.02.17 (-7.19, x86_64) But it's hard to

[libvirt] PATCH: Support container XML enhancements

2008-07-29 Thread Daniel P. Berrange
This is something I previously submitted as part of one of the LXC patches, but I figure it makes sense on its own, since OpenVZ needs this now too. This adds two new XML elements to the domain XML format: - An init block within os allowing specification of the path for a binary to run when

Re: [libvirt] PATCH: Support container XML enhancements

2008-07-29 Thread Evgeniy Sokolov
Daniel P. Berrange пишет: eg to use a template called 'fedora9web' as the root filesystem for a container filesystem type='template' source name='fedora9web'/ target dir='/'/ /filesystem Daniel, OpenVZ also require quota tags quota type=size

Re: [libvirt] PATCH: Support container XML enhancements

2008-07-29 Thread John Levon
On Tue, Jul 29, 2008 at 04:20:14PM +0100, Daniel P. Berrange wrote: This is something I previously submitted as part of one of the LXC patches, but I figure it makes sense on its own, since OpenVZ needs this now too. No update to libvirt.rng? Or test cases? os typeexe/type

Re: [libvirt] PATCH: Support container XML enhancements

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 07:33:29PM +0400, Evgeniy Sokolov wrote: Daniel P. Berrange ??: eg to use a template called 'fedora9web' as the root filesystem for a container filesystem type='template' source name='fedora9web'/ target dir='/'/

Re: [libvirt] PATCH: Support container XML enhancements

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 04:44:32PM +0100, John Levon wrote: On Tue, Jul 29, 2008 at 04:20:14PM +0100, Daniel P. Berrange wrote: This is something I previously submitted as part of one of the LXC patches, but I figure it makes sense on its own, since OpenVZ needs this now too. No update

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread Richard W.M. Jones
On Tue, Jul 29, 2008 at 02:48:26PM +0100, John Levon wrote: On Tue, Jul 29, 2008 at 01:27:42PM +0100, Richard W.M. Jones wrote: One thing which is very apparent is that sys admins using libvirt / virsh have a great deal of difficulty understanding where the configuration files have gone

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread John Levon
On Tue, Jul 29, 2008 at 05:00:27PM +0100, Richard W.M. Jones wrote: Isn't the *right* solution to this problem to finally add property set/get interface for the things people actually want to modify, like boot flags? Do you mean things like the current 'virsh attach-device' / 'virsh

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread Richard W.M. Jones
On Tue, Jul 29, 2008 at 05:09:37PM +0100, John Levon wrote: Right. But to my mind you're fixing the symptom not the problem. *Why* do they need to edit the XML? I ask this of everybody who complains at me about having to edit XML: 99% of the time it's wanting to change boot flags, but it's

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 05:09:37PM +0100, John Levon wrote: On Tue, Jul 29, 2008 at 05:00:27PM +0100, Richard W.M. Jones wrote: Isn't the *right* solution to this problem to finally add property set/get interface for the things people actually want to modify, like boot flags? Do

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 05:17:55PM +0100, Richard W.M. Jones wrote: On Tue, Jul 29, 2008 at 05:09:37PM +0100, John Levon wrote: Right. But to my mind you're fixing the symptom not the problem. *Why* do they need to edit the XML? I ask this of everybody who complains at me about having to

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread John Levon
On Tue, Jul 29, 2008 at 05:25:57PM +0100, Daniel P. Berrange wrote: I actually started at one point on a graphical libvirt XML editor, although I fairly quickly realised it would be a Sisyphean task because the format isn't tremendously well defined[1] and it keeps changing. Also because

Re: [libvirt] PATCH: Support container XML enhancements

2008-07-29 Thread John Levon
On Tue, Jul 29, 2008 at 04:54:09PM +0100, Daniel P. Berrange wrote: This is something I previously submitted as part of one of the LXC patches, but I figure it makes sense on its own, since OpenVZ needs this now too. No update to libvirt.rng? Or test cases? Mmm, yes need the RNG

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread Richard W.M. Jones
On Tue, Jul 29, 2008 at 05:27:09PM +0100, John Levon wrote: On Tue, Jul 29, 2008 at 05:25:57PM +0100, Daniel P. Berrange wrote: I actually started at one point on a graphical libvirt XML editor, although I fairly quickly realised it would be a Sisyphean task because the format isn't

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread John Levon
On Tue, Jul 29, 2008 at 05:46:34PM +0100, Richard W.M. Jones wrote: Right, and it'll probably never happen if we band-aid over the problem. Ah well. Well, I take your point here, and if you really think 'virsh edit' is a bad idea then perhaps we can do something else (give it another

Re: [libvirt] [PATCH] virsh edit command

2008-07-29 Thread Richard W.M. Jones
On Tue, Jul 29, 2008 at 05:50:30PM +0100, John Levon wrote: On Tue, Jul 29, 2008 at 05:46:34PM +0100, Richard W.M. Jones wrote: Do you think a graphical libvirt XML format editor is a good solution? This would help enormously. You could even start it from 'virsh edit' if $DISPLAY is set.

Re: [libvirt] PATCH: Support container XML enhancements

2008-07-29 Thread Daniel P. Berrange
On Tue, Jul 29, 2008 at 05:15:02PM +0100, John Levon wrote: On Tue, Jul 29, 2008 at 04:54:09PM +0100, Daniel P. Berrange wrote: I don't think any of the stated options would work for ZFS dataset delegation, though I suppose that could be added later if it happens. What is ZFS dataset

[libvirt] [PATCH] don't dump core on NULL ifname

2008-07-29 Thread Guido Günther
Hi, actually I thought I sent this out already, but it seems I didn't: Don't dump core on NULL ifname when getting interface statistic. Not all networking types have a target ifname set (user,client,server,mcast). Cheers, -- Guido [PATCH] don't dump core on NULL ifname not all networking types

Re: [libvirt] [PATCH/RFC]: hostdev passthrough support

2008-07-29 Thread Guido Günther
Hi Daniel, On Mon, Jul 28, 2008 at 09:26:57AM -0400, Daniel Veillard wrote: On Fri, Jul 25, 2008 at 04:17:30PM -0400, Guido Günther wrote: Hi, attached is some basic support for host device passthrough. It enables you to passthrough usb devices in qemu/kvm via: devices hostdev

Re: [libvirt] PATCH: Support container XML enhancements

2008-07-29 Thread John Levon
On Tue, Jul 29, 2008 at 05:56:38PM +0100, Daniel P. Berrange wrote: It allows you to place an entire ZFS hierarchy under control of a zone, e.g. I can say that the ZFS dataset export/foo is accessible to the zone and it can freely create sub-filesystems, snapshot, etc. It could almost

[libvirt] libvirt log

2008-07-29 Thread Steve Oliphant
I have a quick question. I am trying to debug a remote access problem and have set the following parameters: # Override the default config file #LIBVIRTD_CONFIG=/etc/libvirt/libvirtd.conf # Listen for TCP/IP connections # NB. must setup TLS/SSL keys prior to using this LIBVIRTD_ARGS=--listen