[libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Marcela Castro León
Hello When installing libvirt 0.8.6, I've passed ./configure, but when I execute make, I've got CCLD libvirtd ../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_driver.o): In function `qemudVPAssociatePortProfiles': /home/chubut/libvirt-0.8.6/src/qemu/qemu_driver.c:11881:

[libvirt] [RFD] Add/Modify some API functions about Host Information

2011-01-20 Thread Minoru Usui
Hi, everyone In an environment with multiple host machines, I want to select a suitable host automatically on which I run a VM depending on machine's load. Libvirt has APIs to get host machine's information, but I think these APIs aren't enough for above purpose. So I suggest below changes. What

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Matthias Bolte
2011/1/20 Marcela Castro León mcast...@gmail.com: Hello When installing libvirt 0.8.6, I've passed ./configure, but when I execute make, I've got   CCLD   libvirtd ../src/.libs/libvirt_driver_qemu.a(libvirt_driver_qemu_la-qemu_driver.o): In function `qemudVPAssociatePortProfiles':

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Osier Yang
could you check if --with-macvtap and --with-virtualport are enabled for you? And what's your kernel version, I guess your kernel doesn't support macvtap yet. Regards Osier 于 2011年01月20日 16:23, Marcela Castro León 写道: Hello When installing libvirt 0.8.6, I've passed ./configure, but when I

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Marcela Castro León
thank you, i've solved installing 0.8.7 2011/1/20 Matthias Bolte matthias.bo...@googlemail.com 2011/1/20 Marcela Castro León mcast...@gmail.com: Hello When installing libvirt 0.8.6, I've passed ./configure, but when I execute make, I've got CCLD libvirtd

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Marcela Castro León
Hello I've finished the installation. The daemon is not up, so I've tried in that way: chubut@chubut:/usr/local/sbin$ sudo ./libvirtd start start 11:23:17.543: 6168: warning : networkAddGeneralIptablesRules:1097 : Could not add rule to fixup DHCP response checksums on network 'default'.

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Justin Clift
On 20/01/2011, at 9:26 PM, Marcela Castro León wrote: Hello I've finished the installation. The daemon is not up, so I've tried in that way: chubut@chubut:/usr/local/sbin$ sudo ./libvirtd start start 11:23:17.543: 6168: warning : networkAddGeneralIptablesRules:1097 : Could not add rule

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Marcela Castro León
Hello I've got this error. *chubut@chubut:/usr/local$ virsh -c qemu:///system list error: unable to connect to '/usr/local/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory error: failed to connect to the hypervisor* The daemon is not running, but i don't

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Justin Clift
On 20/01/2011, at 9:52 PM, Marcela Castro León wrote: Hello I've got this error. chubut@chubut:/usr/local$ virsh -c qemu:///system list error: unable to connect to '/usr/local/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory error: failed to connect

Re: [libvirt] [PATCH] docs: move the apps page to the top level as its good promo

2011-01-20 Thread Daniel P. Berrange
On Thu, Jan 20, 2011 at 03:05:52PM +0800, Daniel Veillard wrote: On Thu, Jan 20, 2011 at 05:19:53PM +1100, Justin Clift wrote: --- docs/sitemap.html.in | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/sitemap.html.in b/docs/sitemap.html.in index

Re: [libvirt] [PATCH] docs: move the apps page to the top level as its good promo

2011-01-20 Thread Justin Clift
On 20/01/2011, at 9:58 PM, Daniel P. Berrange wrote: snip I think perhaps the two pages should be re-arranged, it doesn't entirely make sense to have two different pages of related links at the same level in the nav. Either just have one page with all the data, or split up the apps page into a

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Marcela Castro León
Hello I think now is running. I've started doing *chubut@chubut:/usr/local/sbin$ sudo ./libvirtd * and checked doing *chubut@chubut:~$ ps -ef | grep libvirtd chubut1877 1700 0 12:16 pts/000:00:00 grep --color=auto libvirtd chubut@chubut:~$ ps -ef | grep libvirtd root 1945 1721

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Zdenek Styblik
On 01/20/2011 12:20 PM, Marcela Castro León wrote: Hello I think now is running. I've started doing *chubut@chubut:/usr/local/sbin$ sudo ./libvirtd * and checked doing *chubut@chubut:~$ ps -ef | grep libvirtd chubut1877 1700 0 12:16 pts/000:00:00 grep --color=auto libvirtd

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Marcela Castro León
Hello: I've got this: Thanks. * chubut@chubut:/usr/local/sbin$ sudo netstat -nlp | grep libvirt unix 2 [ ACC ] STREAM LISTENING 10732 1945/libvirtd /usr/local/var/run/libvirt/libvirt-sock unix 2 [ ACC ] STREAM LISTENING 10734 1945/libvirtd

Re: [libvirt] [RFD] Add/Modify some API functions about Host Information

2011-01-20 Thread Zdenek Styblik
On 01/20/2011 09:34 AM, Minoru Usui wrote: Hi, everyone In an environment with multiple host machines, I want to select a suitable host automatically on which I run a VM depending on machine's load. Libvirt has APIs to get host machine's information, but I think these APIs aren't enough

Re: [libvirt] [RFD] Add/Modify some API functions about Host Information

2011-01-20 Thread Daniel P. Berrange
On Thu, Jan 20, 2011 at 05:34:28PM +0900, Minoru Usui wrote: Hi, everyone In an environment with multiple host machines, I want to select a suitable host automatically on which I run a VM depending on machine's load. Libvirt has APIs to get host machine's information, but I think these

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Zdenek Styblik
On 01/20/2011 12:32 PM, Zdenek Styblik wrote: On 01/20/2011 12:20 PM, Marcela Castro León wrote: Hello I think now is running. I've started doing *chubut@chubut:/usr/local/sbin$ sudo ./libvirtd * and checked doing *chubut@chubut:~$ ps -ef | grep libvirtd chubut1877 1700 0 12:16

Re: [libvirt] Installing libvirt 0.8.6 Ubuntu 9.10

2011-01-20 Thread Justin Clift
On 20/01/2011, at 10:20 PM, Marcela Castro León wrote: Hello I think now is running. I've started doing chubut@chubut:/usr/local/sbin$ sudo ./libvirtd and checked doing chubut@chubut:~$ ps -ef | grep libvirtd chubut1877 1700 0 12:16 pts/000:00:00 grep --color=auto libvirtd

[libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Michal Novotny
Hi, this is the patch for to support multiple serial ports for Xen driver. The definition for Xen has been introduced in BZ #614004 and this is adding support to libvirt-based tools. The patch was originally written for RHEL-5 and libvirt 0.8.2 (RHEL-5.6) where it has been tested using the virsh

[libvirt] Fwd: [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Michal Novotny
Hi, I've been posting this patch using git send-email but unfortunately it didn't arrive to the list but I saw some other mails arrive to the list AFAIK so I'm posting this one just to make sure it wasn't my sendmail issue. Michal Original Message Subject:[PATCH]

Re: [libvirt] [PATCH] docs: correct setmem text plus expand setmaxmem text

2011-01-20 Thread Matthias Bolte
2011/1/19 Justin Clift jcl...@redhat.com: This completes the man page updates required for BZ # 622534:  https://bugzilla.redhat.com/show_bug.cgi?id=622534 -Change the maximum memory allocation limit in the guest domain. This should -not change the current memory use. The memory limit is

Re: [libvirt] [PATCH] docs: correct setmem text plus expand setmaxmem text

2011-01-20 Thread Justin Clift
On 20/01/2011, at 11:30 PM, Matthias Bolte wrote: 2011/1/19 Justin Clift jcl...@redhat.com: This completes the man page updates required for BZ # 622534: https://bugzilla.redhat.com/show_bug.cgi?id=622534 -Change the maximum memory allocation limit in the guest domain. This should -not

Re: [libvirt] [PATCHv2] docs: document controller element

2011-01-20 Thread Matthias Bolte
2011/1/19 Eric Blake ebl...@redhat.com: * docs/formatdomain.html.in: Talk about controller and address throughout. ---    v2: wording improvements suggested by Matthias Bolte  docs/formatdomain.html.in |  104 -  1 files changed, 102

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Paolo Bonzini
On 01/20/2011 12:58 PM, root wrote: +if ((list-type != VIR_CONF_STRING) || (list-str == NULL)) +goto skipport; + I believe this should do xenXMError(VIR_ERR_INTERNAL_ERROR, _(config value %s was malformed), name); goto

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Michal Novotny
On 01/20/2011 02:32 PM, Paolo Bonzini wrote: On 01/20/2011 12:58 PM, root wrote: +if ((list-type != VIR_CONF_STRING) || (list-str == NULL)) +goto skipport; + I believe this should do xenXMError(VIR_ERR_INTERNAL_ERROR, _(config

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Daniel P. Berrange
On Thu, Jan 20, 2011 at 01:20:50PM +0100, Michal Novotny wrote: Hi, this is the patch for to support multiple serial ports for Xen driver. The definition for Xen has been introduced in BZ #614004 and this is adding support to libvirt-based tools. The patch was originally written for RHEL-5

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Michal Novotny
On 01/20/2011 02:53 PM, Daniel P. Berrange wrote: On Thu, Jan 20, 2011 at 01:20:50PM +0100, Michal Novotny wrote: Hi, this is the patch for to support multiple serial ports for Xen driver. The definition for Xen has been introduced in BZ #614004 and this is adding support to libvirt-based

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Michal Novotny
On 01/20/2011 03:07 PM, Michal Novotny wrote: On 01/20/2011 03:07 PM, Daniel P. Berrange wrote: On Thu, Jan 20, 2011 at 03:06:11PM +0100, Michal Novotny wrote: On 01/20/2011 02:53 PM, Daniel P. Berrange wrote: On Thu, Jan 20, 2011 at 01:20:50PM +0100, Michal Novotny wrote: Hi, this is the

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Daniel P. Berrange
On Thu, Jan 20, 2011 at 03:06:11PM +0100, Michal Novotny wrote: On 01/20/2011 02:53 PM, Daniel P. Berrange wrote: On Thu, Jan 20, 2011 at 01:20:50PM +0100, Michal Novotny wrote: Hi, this is the patch for to support multiple serial ports for Xen driver. The definition for Xen has been

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Michal Novotny
On 01/20/2011 03:07 PM, Daniel P. Berrange wrote: On Thu, Jan 20, 2011 at 03:06:11PM +0100, Michal Novotny wrote: On 01/20/2011 02:53 PM, Daniel P. Berrange wrote: On Thu, Jan 20, 2011 at 01:20:50PM +0100, Michal Novotny wrote: Hi, this is the patch for to support multiple serial ports for

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Daniel P. Berrange
On Thu, Jan 20, 2011 at 03:07:55PM +0100, Michal Novotny wrote: On 01/20/2011 03:07 PM, Daniel P. Berrange wrote: On Thu, Jan 20, 2011 at 03:06:11PM +0100, Michal Novotny wrote: On 01/20/2011 02:53 PM, Daniel P. Berrange wrote: On Thu, Jan 20, 2011 at 01:20:50PM +0100, Michal Novotny wrote:

Re: [libvirt] [RFD] Add/Modify some API functions about Host Information

2011-01-20 Thread Eric Blake
On 01/20/2011 05:13 AM, Daniel P. Berrange wrote: * virSysinfoRead() This API is completely internal. But DMI type1 information(dmidecode -t1) is useful for above purpose, because it's one of the information which suppose to processing capacity about host machine.

Re: [libvirt] [PATCHv2] docs: document controller element

2011-01-20 Thread Eric Blake
On 01/20/2011 05:59 AM, Matthias Bolte wrote: 2011/1/19 Eric Blake ebl...@redhat.com: * docs/formatdomain.html.in: Talk about controller and address throughout. --- v2: wording improvements suggested by Matthias Bolte docs/formatdomain.html.in | 104

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Paolo Bonzini
On 01/20/2011 02:39 PM, Michal Novotny wrote: Well, I'm working on support for serial port configuration as serial = [ /dev/null, /dev/ttyS0, /dev/ttyS1 ] to: 1) pass /dev/null to the guest as /dev/ttyS0 2) pass /dev/ttyS0 to the guest as /dev/ttyS1 3) pass /dev/ttyS1 to the guest as /dev/ttyS2

Re: [libvirt] How can I improve the performance of libvirt when running many virtual machines on same host

2011-01-20 Thread Diego Dias
Thanks for the answer. I will try to allocate more memory to Dom0 (it is running wih 2GB on a physical host with 64GB) and see if libvirtd/xend are swapping. I said the magic number 35 because I was running 54 guests on that host and xend was really slow (around 5 minutes to execute a /xm

Re: [libvirt] cont command failing via JSON monitor on restore

2011-01-20 Thread Laine Stump
On 01/19/2011 10:05 PM, Jim Fehlig wrote: I think a patch addressing the issue in the JSON monitor, where we can reliably detect the error, is a good start. Would that be okay? Agreed. -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH] maint: support --no-git option during autogen.sh

2011-01-20 Thread Eric Blake
https://bugzilla.redhat.com/show_bug.cgi?id=562743 * .gnulib: Update to latest, for improved bootstrap. * bootstrap: Resync from gnulib. * autogen.sh (bootstrap): Add --bootstrap-sync, to make it easier to keep bootstrap up-to-date. Pass optional --no-git through. Reported by Aleksey Avdeev. ---

Re: [libvirt] [PATCH] Add support for multiple serial ports to Xen driver

2011-01-20 Thread Michal Novotny
Good, I spend many hours on this but I see I'll continue working on this tomorrow since it's not OK yet. Michal - Original Message - From: Paolo Bonzini pbonz...@redhat.com To: Michal Novotny minov...@redhat.com Cc: Libvirt libvir-list@redhat.com Sent: Thursday, January 20, 2011 3:13:22

[libvirt] [RFC] libxenlight driver

2011-01-20 Thread Jim Fehlig
I'm looking into creating a driver for the new Xen xl/libxl toolstack (aka libxenlight [1]), set to become the default in upcoming Xen 4.1.0 release. My first hurdle is deciding whether this should be a new driver or integrated with existing xen-unified driver. Initially I thought a new driver

[libvirt] [PATCH] event: fix two event-handling bugs

2011-01-20 Thread Eric Blake
Regression introduced in commit e6b68d7. Prior to that point, handlesAlloc was always a multiple of EVENT_ALLOC_EXTENT, and was an integer (so even if the subtraction wrapped, a negative value was less than the count and did not try to free the handles array). But after that point, VIR_RESIZE_N

[libvirt] [PATCH] [v2] qemu: Retry JSON monitor cont cmd on MigrationExpected error

2011-01-20 Thread Jim Fehlig
When restoring a saved qemu instance via JSON monitor, the vm is left in a paused state. Turns out the 'cont' cmd was failing with MigrationExpected error class and An incoming migration is expected before this command can be executed error description due to migration (restore) not yet complete.

Re: [libvirt] [RFD] Add/Modify some API functions about Host Information

2011-01-20 Thread Minoru Usui
Hi, Zdenek Thank you for your comment. On Thu, 20 Jan 2011 12:48:46 +0100 Zdenek Styblik sty...@turnovfree.net wrote: On 01/20/2011 09:34 AM, Minoru Usui wrote: Hi, everyone In an environment with multiple host machines, I want to select a suitable host automatically on which I run a

Re: [libvirt] [RFD] Add/Modify some API functions about Host Information

2011-01-20 Thread Minoru Usui
Hi, Daniel. Thank you for your advice. On Thu, 20 Jan 2011 12:13:21 + Daniel P. Berrange berra...@redhat.com wrote: On Thu, Jan 20, 2011 at 05:34:28PM +0900, Minoru Usui wrote: Hi, everyone In an environment with multiple host machines, I want to select a suitable host

Re: [libvirt] [RFD] Add/Modify some API functions about Host Information

2011-01-20 Thread Minoru Usui
Hi, Eric On Thu, 20 Jan 2011 08:20:20 -0700 Eric Blake ebl...@redhat.com wrote: On 01/20/2011 05:13 AM, Daniel P. Berrange wrote: * virSysinfoRead() This API is completely internal. But DMI type1 information(dmidecode -t1) is useful for above purpose, because it's one of

Re: [libvirt] [PATCH] event: fix two event-handling bugs

2011-01-20 Thread Daniel Veillard
On Thu, Jan 20, 2011 at 05:01:13PM -0700, Eric Blake wrote: Regression introduced in commit e6b68d7. Prior to that point, handlesAlloc was always a multiple of EVENT_ALLOC_EXTENT, and was an integer (so even if the subtraction wrapped, a negative value was less than the count and did not

Re: [libvirt] [PATCH] [v2] qemu: Retry JSON monitor cont cmd on MigrationExpected error

2011-01-20 Thread Daniel Veillard
On Thu, Jan 20, 2011 at 07:27:14PM -0700, Jim Fehlig wrote: When restoring a saved qemu instance via JSON monitor, the vm is left in a paused state. Turns out the 'cont' cmd was failing with MigrationExpected error class and An incoming migration is expected before this command can be

[libvirt] [PATCH] qemu: report more proper error for unsupported graphics

2011-01-20 Thread Osier Yang
Report VIR_ERR_CONFIG_UNSUPPORTED instead of VIR_ERR_INTERNAL_ERROR, as it's valid in our domain schema, just unsupported by hypervisor here. * src/qemu/qemu_command.c --- src/qemu/qemu_command.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git