Re: [libvirt] Question about the specification of virsh vcpupin and virsh vcpuinfo in libvirt-0.6.1.

2009-04-14 Thread Takahashi Tomohiro
Hi Daniel-san, Thank you for your reply. virsh doesn't place any restrictions on whether those commands can be run on inactive guests. It should just try the API regardless and be prepared for any errors. I see. I think that I should remove the following check from xend_internal.c PinVcpu

[libvirt] [Patch] Fix vcpupin to inactive domains on Xend3.0.3.

2009-04-14 Thread Takahashi Tomohiro
Hi, I made the patch that corrected the following problem. It is that when I execute the virsh vcpupin command to inactive domains on Xend3.0.3, Libvirt outputs the following Segmentation fault. # virsh vcpupin guest_dom 0 0,1,2 Segmentation fault Signed-off-by: Tomohiro Takahashi

Re: [libvirt] test driver for interface config

2009-04-14 Thread Daniel P. Berrange
On Sat, Apr 11, 2009 at 12:37:51AM -0400, Laine Stump wrote: On 04/10/2009 06:47 AM, Daniel P. Berrange wrote: On Thu, Apr 09, 2009 at 02:21:20PM -0400, Laine Stump wrote: So, in the interest of getting the most useful stuff into the code in the shortest time, here is a proposed schedule

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Gerd Hoffmann
Hi, Personally, I think relying on asynchronous events to provide reliable status is a bad idea. Management connections can and will get disconnected, buffers will get filled and event notifications will be dropped. I somehow like the idea from someone (Jamie?) somewhere in this thread to

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Daniel P. Berrange
On Sun, Apr 12, 2009 at 07:42:17PM +0100, Jamie Lokier wrote: Avi Kivity wrote: Anthony Liguori wrote: At the end of the day, I want to be able to run a QEMU instance from the command line, and have virt-manager be able to see it remotely and connect to it. That means multiple monitors

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Daniel P. Berrange
On Tue, Apr 14, 2009 at 12:15:23PM +0300, Avi Kivity wrote: Daniel P. Berrange wrote: Yes indeed its a little crazy :-) As anthony mentioned if libvirt were able to be notified of changes a user makes in the monitor, there's no reason we could not allow end users to access the monitor of a

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Avi Kivity
Jan Kiszka wrote: That is true, but we'd still be considering direct monitor access to be a 'expert' user mode of use. If they wish to shoot themselves in the foot by triggering a migration at same time they are hotplugging I'm fine if their whole leg gets blown away. ...while there is

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Jan Kiszka
Daniel P. Berrange wrote: On Tue, Apr 14, 2009 at 12:15:23PM +0300, Avi Kivity wrote: Daniel P. Berrange wrote: Yes indeed its a little crazy :-) As anthony mentioned if libvirt were able to be notified of changes a user makes in the monitor, there's no reason we could not allow end users

Re: [libvirt] [Patch] Fix vcpupin to inactive domains on Xend3.0.3.

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 04:41:50PM +0900, Takahashi Tomohiro wrote: Hi, I made the patch that corrected the following problem. It is that when I execute the virsh vcpupin command to inactive domains on Xend3.0.3, Libvirt outputs the following Segmentation fault. # virsh vcpupin guest_dom

Re: [libvirt] state drivers?

2009-04-14 Thread Daniel P. Berrange
On Mon, Apr 13, 2009 at 11:39:45AM -0400, Laine Stump wrote: I'm looking through the network driver, and see the state driver registered. Several other drivers also register a state driver. What is this used for? It looks like it's handling a startup/shutdown at a more basic level than then

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Avi Kivity
Daniel P. Berrange wrote: On Tue, Apr 14, 2009 at 12:15:23PM +0300, Avi Kivity wrote: Daniel P. Berrange wrote: Yes indeed its a little crazy :-) As anthony mentioned if libvirt were able to be notified of changes a user makes in the monitor, there's no reason we could not allow end

[libvirt] RFC: Import / export of Domain XML from/to native formats

2009-04-14 Thread Daniel P. Berrange
Some of the frequently asked questions I see floating around various user forums / mailing lists wrt libvirt XML, relate the import or export of existing configurations from/to libvirt. eg - What is the libvirt XML matching the QEMU args 'qemu -foo -bar -wiz' - What are the QEMU arguments

Re: [libvirt] VirtualBox libvirt support sample XML file

2009-04-14 Thread Daniel P. Berrange
On Thu, Apr 09, 2009 at 12:52:46PM +0200, Pritesh Kothari wrote: Hi All, Just posting a sample XML file for creating a machine with all features supported by the patch, so that it is easy for everyone to know which features are supported till now, I am in process of adding the

Re: [libvirt] [PATCH 2/2] VirtualBox support (Resending by fixing a autodetection Bug)

2009-04-14 Thread Daniel P. Berrange
On Thu, Apr 09, 2009 at 11:25:08AM +0200, Pritesh Kothari wrote: Hi All, Resending the second patch [PATCH 2/2] after fixing the Bug mentioned by Florian on the list. Regards, Pritesh On Wednesday 08 April 2009 14:20:29 Pritesh Kothari wrote: Hi All, I have attached a patch

[libvirt] [PATCH] fix build on RHEL and Centos

2009-04-14 Thread Daniel Veillard
I applied the minimal fix below preventing make rpm on those two platforms, except it applies ot libvirt.spec.in, fixes #495610 Daniel --- libvirt.spec.orig 2009-04-13 20:49:11.0 -0400 +++ libvirt.spec2009-04-13 20:49:59.0 -0400 @@ -46,6 +46,7 @@ %define with_rhel5 0

[libvirt] [Docs] More work on the API and architecture

2009-04-14 Thread Daniel Veillard
Another patch, incomplete adding a new page api.html[.in] with the goals of describing the main API concepts, architectures, naming conventions, etc ... It includes Dan's graphics and a change of how the stylesheet process the .html.in content allowing to turn code class='docref'foo/code into a

Re: [libvirt] RFC: Import / export of Domain XML from/to native formats

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 01:20:00PM +0100, Daniel P. Berrange wrote: Some of the frequently asked questions I see floating around various user forums / mailing lists wrt libvirt XML, relate the import or export of existing configurations from/to libvirt. eg - What is the libvirt XML

Re: [libvirt] test driver for interface config

2009-04-14 Thread Hugh O. Brock
On Tue, Apr 14, 2009 at 08:42:06AM +0100, Daniel P. Berrange wrote: On Sat, Apr 11, 2009 at 12:37:51AM -0400, Laine Stump wrote: On 04/10/2009 06:47 AM, Daniel P. Berrange wrote: On Thu, Apr 09, 2009 at 02:21:20PM -0400, Laine Stump wrote: So, in the interest of getting the most useful

[libvirt] Libvirt PHP binding

2009-04-14 Thread Radek Hladik
Hi, I am trying to develop PHP binding for Libvirt API. As discussed previously on the list the best way is to create a ZEND extension. There is a great tutorial on the net ( http://devzone.zend.com/tag/Extension ) and PHP provides a lot of macros and functions to make extension writing

[libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel P. Berrange
On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: When running from command line everything seems to work fine. This is of course singlethreaded and potential resource leaks need not to cause a problem. However when running from webserver, the result is much more interesting.

Re: [libvirt] test driver for interface config

2009-04-14 Thread Laine Stump
On 04/14/2009 10:42 AM, Hugh O. Brock wrote: I don't see any compelling reason why we absolutely must have this ready for next release. I prefer to wait until the code is more developed than rushing to meet an unneccessary artificial date. I know this is listed as a Fedora 12 feature, but

[libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: So one thing is that every memory allocated by libvirt (using malloc()) I need to copy to memory allocated using emalloc(). Also every memory, that would be free()ed by libvirt I need to malloc() and copy from emmaloc()ed

[libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 04:00:18PM +0100, Daniel P. Berrange wrote: On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: It works but httpd processes open a lot pipes and after a few hours with page refreshing every 10 sec I even ran into error: [Mon Apr 13 02:40:26 2009] [error]

Re: [libvirt] [PATCH 2/2] VirtualBox support (Resending by fixing a autodetection Bug)

2009-04-14 Thread Pritesh Kothari
Hi Daniel, +char g_szVBoxErrMsg[256]; I don't much like the static fixed size error message buffer Fixed this. +if (conn-uri == NULL) { +conn-uri = xmlParseURI(uid ? vbox:///session : vbox:///system); +if (conn-uri == NULL) { +vboxError(conn,

Re: [libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel P. Berrange
On Tue, Apr 14, 2009 at 04:00:18PM +0100, Daniel P. Berrange wrote: On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: When running from command line everything seems to work fine. This is of course singlethreaded and potential resource leaks need not to cause a problem.

[libvirt] libvirt 0.6.2 on Fedora 10

2009-04-14 Thread Thomas Sjolshagen
I've been looking for a binary package for x86_64/fc10 of libvirt/libvirt-python, but can only find the F11 versions. Have none been created and I'll need to build my own, or am I (and google/rpmfind/koji/etc) being vision impaired? Thanks, // Thomas

Re: [libvirt] libvirt 0.6.2 on Fedora 10

2009-04-14 Thread Gerrit Slomma
Thomas Sjolshagen schrieb: I've been looking for a binary package for x86_64/fc10 of libvirt/libvirt-python, but can only find the F11 versions. Have none been created and I'll need to build my own, or am I (and google/rpmfind/koji/etc) being vision impaired? Thanks, // Thomas

Re: [libvirt] libvirt 0.6.2 on Fedora 10

2009-04-14 Thread Thomas Sjolshagen
Quoting Gerrit Slomma roadrunner...@web.de: Try here for x86_64 http://rpm.pbone.net/index.php3/stat/4/idpl/11201255/com/libvirt-python-0.5.1-2.fc10.x86_64.rpm.html or here for i386 http://rpm.pbone.net/index.php3/stat/4/idpl/11161520/com/libvirt-python-0.5.1-2.fc10.i386.rpm.html Should

Re: [libvirt] libvirt 0.6.2 on Fedora 10

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 11:25:30AM -0400, Thomas Sjolshagen wrote: I've been looking for a binary package for x86_64/fc10 of libvirt/libvirt-python, but can only find the F11 versions. Have none been created and I'll need to build my own, or am I (and google/rpmfind/koji/etc) being vision

Re: [libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Radek Hladik
Daniel P. Berrange napsal(a): On Tue, Apr 14, 2009 at 04:00:18PM +0100, Daniel P. Berrange wrote: On Tue, Apr 14, 2009 at 03:56:28PM +0200, Radek Hladik wrote: When running from command line everything seems to work fine. This is of course singlethreaded and potential resource leaks need not

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Jamie Lokier
Avi Kivity wrote: Daniel P. Berrange wrote: Yes indeed its a little crazy :-) As anthony mentioned if libvirt were able to be notified of changes a user makes in the monitor, there's no reason we could not allow end users to access the monitor of a VM libvirt is managing. We just need to

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Jamie Lokier
Gerd Hoffmann wrote: Management apps don't need new parsers, the existing info foo parser(s) will do just fine. And QEMU doesn't need new printers. Less code to go wrong :-) -- Jamie -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] Re: [Qemu-devel] [PATCH 1/6] Allow multiple monitor devices (v2)

2009-04-14 Thread Jamie Lokier
Avi Kivity wrote: If you want things to work reliably, you have to follow the chain of command. Or use locks and/or transactions like everything else :-) -- Jamie -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH] lxc: Add lxcGetHostname()

2009-04-14 Thread Dan Smith
This patch adds the getHostname method to the lxc driver structure (using the qemu driver's generic code). Apparently virsh started using that method during console attachment recently. Without this implementation, the virsh refused to attach to lxc consoles. Signed-off-by: Dan Smith

Re: [libvirt] Re: Libvirt PHP binding

2009-04-14 Thread Daniel Veillard
On Tue, Apr 14, 2009 at 07:14:32PM +0200, Radek Hladik wrote: Daniel P. Berrange napsal(a): I upgraded to libvirt 0.6.2 from rawhide - I had to compile it from SRPM because RPM version reported some selinux undefined symbol. But my test system is hybrid of F10, F11 and rawhide :-). On the

[libvirt] vcpuinfo returns wrong CPU value for kvm

2009-04-14 Thread Gerrit Slomma
vcpuinfo returns a wrong value for kvm with libvirt 0.6.2: virsh # nodeinfo CPU-Modell: x86_64 CPU(s): 2 CPU-Frequenz:2333 MHz CPU-Socket(s): 1 Kern(e) pro Socket: 2 Thread(s) pro Kern: 1 NUMA-Zelle(n): 1 Speichergrösse: 3062956 kB virsh # dominfo

[libvirt] libvirt 0.3.3 and unix_sock_group

2009-04-14 Thread Daniel Labrosse
Hi All, I've been using libvirt 0..4.4 for a few weeks now. I have unix_sock_group = mygroup set so that i can perform non-root management capabilities on the host. I have recently installed a new host running Scientific Linux 5.3 and libvirt 0.3.3 comes as default. First off, there is no

[libvirt] libvirt arch detection on x86_64 host

2009-04-14 Thread Gerry Reno
I have a 64-bit host that is running a 32-bit OS (Fedora 10). # cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 16 model : 2 model name : AMD Phenom(tm) 9850 Quad-Core Processor stepping: 3 cpu MHz : 2511.416 cache size

Re: [libvirt] libvirt arch detection on x86_64 host

2009-04-14 Thread Gerrit Slomma
Gerry Reno schrieb: I have a 64-bit host that is running a 32-bit OS (Fedora 10). (...) # virsh nodeinfo CPU model: i686 (...) Shouldn't the host arch have been detected and identified as x86_64? Regards, Gerry -- Libvir-list mailing list Libvir-list@redhat.com

Re: [libvirt] test driver for interface config

2009-04-14 Thread David Lutterkort
On Fri, 2009-04-10 at 11:47 +0100, Daniel P. Berrange wrote: I'm afraid this isn't really going to fly. The libvirt public interface is defined by C library API/ABI, and the XML format. To provide the guarenteed stability consistency of this interface across releases, we need to have the XML

Re: [libvirt] [Patch] Fix vcpupin to inactive domains on Xend3.0.3.

2009-04-14 Thread Takahashi Tomohiro
Hi Daniel-san, Thank you for your reply. I see. And I checked this problem is solved by your patch. Thanks, Tomohiro Takahashi. Daniel Veillard wrote: On Tue, Apr 14, 2009 at 04:41:50PM +0900, Takahashi Tomohiro wrote: Hi, I made the patch that corrected the following problem. It is that

Re: [libvirt] libvirt arch detection on x86_64 host

2009-04-14 Thread Gerry Reno
Gerrit Slomma wrote: Gerry Reno schrieb: I have a 64-bit host that is running a 32-bit OS (Fedora 10). (...) # virsh nodeinfo CPU model: i686 (...) Shouldn't the host arch have been detected and identified as x86_64? Regards, Gerry -- Libvir-list mailing list