Re: [libvirt] [RFC] Power Hypervisor Libvirt support

2009-05-06 Thread Eduardo Otubo
Em Qua, 2009-05-06 às 09:26 +0200, Daniel Veillard escreveu: > On Mon, May 04, 2009 at 05:50:03PM -0300, Eduardo Otubo wrote: > > Hello DV, > > Hi Eduardo, > > sorry for the delay I took a few days of vacations :-) Hello DV, Nice! Hope you enjoyed your vacations :) > > > > +while (chann

Re: [libvirt] Authentication with virConnectAuthPtr

2009-05-06 Thread Eduardo Otubo
This sample of code helped me a lot! Here is the phypOpen function I rewrited based on your code: http://pastebin.com/f65912242 - I did a lot of tests with my HMC here and everything seemed to be working fine. The prompt for the password and the use of the public key. I also did use the virRaiseE

Re: [libvirt] [PATCH] lxc: fix mknod file type

2009-05-06 Thread Ryota Ozaki
Hi, On Thu, May 7, 2009 at 7:39 AM, Ryota Ozaki wrote: > Hi Daniel, > > On Wed, May 6, 2009 at 7:31 PM, Daniel P. Berrange > wrote: >> On Wed, May 06, 2009 at 04:01:32AM +0900, Ryota Ozaki wrote: >>> Hi, >>> >>> This patch fixes the 2nd argument of mknod syscall. The argument >>> should include

Re: [libvirt] PCI Passthrough

2009-05-06 Thread Aaron Clausen
Okay, barring VT-D being supported (which it doesn't look like it is on the server in question), is there any way to get a SCSI tape drive to work in a Windows guest? -- Aaron Clausen mightymartia...@gmail.com -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/list

Re: [libvirt] [PATCH] lxc: fix mknod file type

2009-05-06 Thread Ryota Ozaki
Hi Daniel, On Wed, May 6, 2009 at 7:31 PM, Daniel P. Berrange wrote: > On Wed, May 06, 2009 at 04:01:32AM +0900, Ryota Ozaki wrote: >> Hi, >> >> This patch fixes the 2nd argument of mknod syscall. The argument >> should include a file type, i.e., S_IFCHR in this case, otherwise >> created files w

Re: [libvirt] Re: Has anyone ever gotten the client or full to compile on OS X?

2009-05-06 Thread Schley Andrew Kutz
Anyone? :( I really don't want to have to bring up a whole new box just do do dev work that I should be able to do from my Mac. I guess I can write against the Java bindings locally and then debug remotely on a Linux server. -- -a "Ideally, a code library must be immediately usable by naiv

Re: [libvirt] [PATCH 2/3] support for "Host only" and "Internal" networks in VirtualBox driver

2009-05-06 Thread Daniel P. Berrange
On Wed, May 06, 2009 at 06:11:50PM +0200, Pritesh Kothari wrote: > Hi All, > > As discussed on the list resending the networking patch's. the patch's are as > below: > > [PATCH 2/3]: contains support for "Host only" and "Internal" networks in > VirtualBox driver ACK, > commit 2cc53f659c47083

Re: [libvirt] [PATCH 1/3] support for "Internal" network in libvirt

2009-05-06 Thread Daniel P. Berrange
On Wed, May 06, 2009 at 06:11:42PM +0200, Pritesh Kothari wrote: > Hi All, > > As discussed on the list resending the networking patch's. the patch's are as > below: > > [PATCH 1/3]: contains support for "Internal" network in libvirt ACK > commit 34a1776a7049ad5b5678739d597e441686aa6e7e > Auth

Re: [libvirt] discrepancies in issuing virsh capabilities with different user-accounts

2009-05-06 Thread Gerrit Slomma
Gerrit Slomma schrieb: Hello When doing a virsh capabilities with root i get a different output than when issuing the command with my own unprivileged account roadrunner. Furthermore the first issuing of the command as roadrunner throws a error-message. Restarting of the libvirt-daemon gives

Re: [libvirt] PCI Passthrough

2009-05-06 Thread Daniel P. Berrange
On Wed, May 06, 2009 at 11:29:27AM -0700, Aaron Clausen wrote: > I'm having a heck of a time trying to figure out how to do PCI > passthrough for a PCI SCSI controller. I need, if at all possible, to > access it so that I can use a SCSI tape drive with a Windows Server > 2000 guest. This is xml c

[libvirt] discrepancies in issuing virsh capabilities with different user-accounts

2009-05-06 Thread Gerrit Slomma
Hello When doing a virsh capabilities with root i get a different output than when issuing the command with my own unprivileged account roadrunner. Furthermore the first issuing of the command as roadrunner throws a error-message. Restarting of the libvirt-daemon gives the correct output. Samp

Re: [libvirt] KVM processes -- should we be able to attach them to the libvirtd process?

2009-05-06 Thread Daniel P. Berrange
On Wed, May 06, 2009 at 08:56:18PM +0200, Gerrit Slomma wrote: > Daniel P. Berrange schrieb: > >On Tue, May 05, 2009 at 11:38:13PM -0500, Matthew Farrellee wrote: > > > >>It doesn't appear to be the case that the libvirtd daemon can trivially > >>restart and continue with no interruptions. Right

Re: [libvirt] [PATCH 2/2] support for multiple graphics devices

2009-05-06 Thread Daniel P. Berrange
On Wed, May 06, 2009 at 06:08:39PM +0200, Daniel Veillard wrote: > On Thu, Apr 30, 2009 at 11:28:31AM +0200, Pritesh Kothari wrote: > > Hi All, > > > > I have added support for multiple graphics devices, the patches are as > > below. > > I have checked them against current cvs head and works fine

[libvirt] PCI Passthrough

2009-05-06 Thread Aaron Clausen
I'm having a heck of a time trying to figure out how to do PCI passthrough for a PCI SCSI controller. I need, if at all possible, to access it so that I can use a SCSI tape drive with a Windows Server 2000 guest. This is xml config I have: testserver f75a2f63-e1bd-72a5-6134-3fcafbcdb970 5

Re: [libvirt] KVM processes -- should we be able to attach them to the libvirtd process?

2009-05-06 Thread Gerrit Slomma
Hugh O. Brock schrieb: Not too long ago we took a patch that allowed QEMU VMs to keep running even if libvirtd died or was restarted. I was talking to Matt Farellee (cc'd) this afternoon about manageability, and he feels fairly strongly that this behavior should be optional -- in other words, it

Re: [libvirt] PATCH: Raise log level for dlopen() problems

2009-05-06 Thread Daniel Veillard
On Thu, Apr 30, 2009 at 03:14:10PM +0100, Daniel P. Berrange wrote: > Some of the problems when dlopen'ing a module really should be reported to > the user/admin more readily. So this raises the logging level for the > important failure messages, so they're visible by default Yes definitely, ACK

Re: [libvirt] PATCH: Enable migration with QEMU >= 0.10.0

2009-05-06 Thread Daniel Veillard
On Thu, Apr 30, 2009 at 03:09:05PM +0100, Daniel P. Berrange wrote: > The KVM migration code was added to QEMU for the 0.10.0 release, so we > should enable this in libvirt now. Oh, right, ACK, Grepping for TODO and XXX in */*.c gives an impressibve list ... Daniel -- Daniel Veillard |

Re: [libvirt] [PATCH 2/2] support for multiple graphics devices

2009-05-06 Thread Pritesh Kothari
On Wednesday 06 May 2009 18:08:39 you wrote: > On Thu, Apr 30, 2009 at 11:28:31AM +0200, Pritesh Kothari wrote: > > Hi All, > > > > I have added support for multiple graphics devices, the patches are as > > below. I have checked them against current cvs head and works fine > > > > PATCH 1/2: contai

Re: [libvirt] PATCH: More robust name & UUID uniqueness checking for QEMU

2009-05-06 Thread Daniel Veillard
On Thu, Apr 30, 2009 at 03:05:01PM +0100, Daniel P. Berrange wrote: > When defining a VM config, we need to apply the following logi > > - If existing VM has same UUID > - If name also matches => allow > - Else => raise error > > - Else > - If name matches => raise error >

[libvirt] [PATCH 1/3] support for "Internal" network in libvirt

2009-05-06 Thread Pritesh Kothari
Hi All, As discussed on the list resending the networking patch's. the patch's are as below: [PATCH 1/3]: contains support for "Internal" network in libvirt [PATCH 2/3]: contains support for "Host only" and "Internal" networks in VirtualBox driver [PATCH 3/3]: contains networking API for hoston

[libvirt] [PATCH 2/3] support for "Host only" and "Internal" networks in VirtualBox driver

2009-05-06 Thread Pritesh Kothari
Hi All, As discussed on the list resending the networking patch's. the patch's are as below: [PATCH 1/3]: contains support for "Internal" network in libvirt [PATCH 2/3]: contains support for "Host only" and "Internal" networks in VirtualBox driver [PATCH 3/3]: contains networking API for hoston

[libvirt] [PATCH 3/3] networking API for hostonly networks in VirtualBox driver in libvirt

2009-05-06 Thread Pritesh Kothari
Hi All, As discussed on the list resending the networking patch's. the patch's are as below: [PATCH 1/3]: contains support for "Internal" network in libvirt [PATCH 2/3]: contains support for "Host only" and "Internal" networks in VirtualBox driver [PATCH 3/3]: contains networking API for hoston

Re: [libvirt] [PATCH 2/2] support for multiple graphics devices

2009-05-06 Thread Daniel Veillard
On Thu, Apr 30, 2009 at 11:28:31AM +0200, Pritesh Kothari wrote: > Hi All, > > I have added support for multiple graphics devices, the patches are as below. > I have checked them against current cvs head and works fine > > PATCH 1/2: contains changes in libvirt for multiple graphics devices > PAT

Re: [libvirt] [PATCH] Fix qemu driver's interpretation of

2009-05-06 Thread Daniel P. Berrange
On Wed, May 06, 2009 at 04:39:05PM +0100, Mark McLoughlin wrote: > This change: > > Tue Mar 3 08:55:13 GMT 2009 Daniel P. Berrange > >Don't try to detach & reset PCI devices while running test >suite for XML-> ARGV conversion. >* src/qemu_driver.c: Add qemuPrepareHostD

[libvirt] [PATCH] Fix qemu driver's interpretation of

2009-05-06 Thread Mark McLoughlin
This change: Tue Mar 3 08:55:13 GMT 2009 Daniel P. Berrange Don't try to detach & reset PCI devices while running test suite for XML-> ARGV conversion. * src/qemu_driver.c: Add qemuPrepareHostDevices() helper to detach and reset PCI devices. * src/qemu_conf.

Re: [libvirt] [PATCH] Fix the style of argument("cpumap") in op_pincpu()

2009-05-06 Thread Daniel Veillard
On Wed, May 06, 2009 at 09:53:46AM +0100, Daniel P. Berrange wrote: > On Thu, Apr 30, 2009 at 04:00:54PM +0900, Tatsuro Enokura wrote: > > Hi all, > > > > The form of cpumap argument in op_pincpu method on xend change > > by following a patch. > > http://xenbits.xensource.com/xen-unstable.hg?rev

Re: [libvirt] [PATCH] Refresh QEMU driver caps in getCapabilities

2009-05-06 Thread Cole Robinson
On 05/06/2009 09:14 AM, Daniel Veillard wrote: > On Mon, May 04, 2009 at 03:08:20PM -0400, Cole Robinson wrote: >> Daniel P. Berrange wrote: >>> On Tue, Apr 28, 2009 at 12:25:41PM -0400, Cole Robinson wrote: >>> >>> diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 79ee072..6b5c17f

Re: [libvirt] [PATCH 1/1] Changes in version detection and moving a global variable in the global struct

2009-05-06 Thread Daniel Veillard
On Wed, Apr 29, 2009 at 01:14:05PM +0200, Pritesh Kothari wrote: > Hi All, > > PATCH 1/1: contains changes in version detection and moving a global variable > in the global struct, so that no more global vairables exists. Looks fine to me, I just commented out the version 2.5 references before

Re: [Libvirt] SSH with certificates

2009-05-06 Thread Daniel P. Berrange
On Wed, May 06, 2009 at 03:33:47PM +0200, Christian Weyermann wrote: > Hello everybody, > > We are trying to use libvirt with qemu over ssh and our goal is to have > authentication done by certificates. Therefore I created a keypair on > the client and send the public key to the server. Std. SSH c

[Libvirt] SSH with certificates

2009-05-06 Thread Christian Weyermann
Hello everybody, We are trying to use libvirt with qemu over ssh and our goal is to have authentication done by certificates. Therefore I created a keypair on the client and send the public key to the server. Std. SSH connections work without an password prompt as expected (ssh -l user), but if I

Re: [libvirt] [PATCH 1/1] Making path detection more robust in VirtualBox

2009-05-06 Thread Daniel Veillard
On Thu, Apr 30, 2009 at 12:16:06PM +0100, Daniel P. Berrange wrote: > On Wed, Apr 29, 2009 at 01:14:02PM +0200, Pritesh Kothari wrote: > > Hi All, > > > > PATCH 1/1: contains changes in the glue code for making path detection more > > robust in VirtualBox > > ACK Looks fine to me too, so appl

Re: [libvirt] [PATCH] Refresh QEMU driver caps in getCapabilities

2009-05-06 Thread Daniel Veillard
On Mon, May 04, 2009 at 03:08:20PM -0400, Cole Robinson wrote: > Daniel P. Berrange wrote: > > On Tue, Apr 28, 2009 at 12:25:41PM -0400, Cole Robinson wrote: > > > > > >> diff --git a/src/qemu_driver.c b/src/qemu_driver.c > >> index 79ee072..6b5c17f 100644 > >> --- a/src/qemu_driver.c > >> +++ b/

Re: [libvirt] participate in irc chat

2009-05-06 Thread jens
You are right, my irc client tricks me. On 05/05/09 Daniel P. Berrange wrote: > Sounds like you're probably on the wrong IRC network. #virt is on > irc.oftc.net, and is fully open to anyone who wishes to join -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listin

Re: [libvirt] libvirt / virt-manager issue with NFS share as storage plus a philosophy question - resend w/subject

2009-05-06 Thread Daniel P. Berrange
On Tue, May 05, 2009 at 02:40:54PM -0500, mike.h...@yr20.com wrote: > > Now comes the philosophy piece: It seems like that the way that > libvirt and virt-manager want to handle storage is to be able to > fully control the mounting process. That seems to me to be a > very nice thing as you ha

Re: [libvirt] Cannot determine QEMU argv syntax with KVM 85

2009-05-06 Thread Daniel P. Berrange
On Tue, May 05, 2009 at 09:08:02PM +, Frederik Himpe wrote: > With KVM 85, it is impossible to start domains with libvirtd anymore (I > tried both libvirtd 0.6.1 and 0.6.3): > > # virsh start Cooker > error: Failed to start domain Cooker > error: internal error Cannot determine QEMU argv synt

Re: [libvirt] [PATCH] lxc: fix mknod file type

2009-05-06 Thread Daniel P. Berrange
On Wed, May 06, 2009 at 04:01:32AM +0900, Ryota Ozaki wrote: > Hi, > > This patch fixes the 2nd argument of mknod syscall. The argument > should include a file type, i.e., S_IFCHR in this case, otherwise > created files will be regular files. Wierd. I guess no one has anything that uses this bec

Re: [libvirt] [PATCH 0/1] Added Networking API to change/create/etc. hostonly/internal network in VirtualBox

2009-05-06 Thread Pritesh Kothari
> > change/create/etc. hostonly/internal network in VirtualBox > > > > > > vboxnet0 > > 786f6276-656e-4074-8000-0a002700 > > > > This line isn't neccessary - AFAICT there is no forwarding off traffic > from hostonly networks to the LAN. Just set VIR_NETWORK_FORWARD_NONE > for this

Re: [libvirt] [PATCH 1/2] Support for 'hostonly' and 'internal' network in VirtualBox

2009-05-06 Thread Daniel P. Berrange
On Wed, Apr 29, 2009 at 01:14:15PM +0200, Pritesh Kothari wrote: > Hi All, > > I have added the support for hostonly and internal network as suggested on > irc > and list and am attaching the patch for same. > > PATCH 1/2: contains changes in the xml parsing/formatting on libvirt side > namely

Re: [libvirt] [PATCH 1/1] Added Networking API to change/create/etc. hostonly/internal network in VirtualBox

2009-05-06 Thread Daniel P. Berrange
On Wed, Apr 29, 2009 at 01:14:07PM +0200, Pritesh Kothari wrote: > Hi All: > > [PATCH 0/1]: Contains sample xml file showing features supported so far. > [PATCH 1/1]: Contains the patch for adding Networking API to > change/create/etc. hostonly/internal network in VirtualBox First up, now I see

Re: [libvirt] [PATCH 0/1] Added Networking API to change/create/etc. hostonly/internal network in VirtualBox

2009-05-06 Thread Daniel P. Berrange
On Wed, Apr 29, 2009 at 01:14:10PM +0200, Pritesh Kothari wrote: > Hi All: > > [PATCH 0/1]: Contains sample xml file showing features supported so far. > [PATCH 1/1]: Contains the patch for adding Networking API to > change/create/etc. hostonly/internal network in VirtualBox > > vboxnet0

Re: [libvirt] [RFC] Power Hypervisor Libvirt support

2009-05-06 Thread Daniel P. Berrange
On Mon, May 04, 2009 at 05:50:03PM -0300, Eduardo Otubo wrote: > > > > + > > > +/* return the lpar_id given a name and a managed system name */ > > > +static int > > > +phypGetLparID(SSH_SESSION * ssh_session, const char *managed_system, > > > + const char *name) > > > +{ > > > +i

Re: [libvirt] [PATCH v2 4/4] Check that QEMU is still alive while reading startup output.

2009-05-06 Thread Daniel P. Berrange
On Mon, May 04, 2009 at 03:52:11PM -0400, Cole Robinson wrote: > By checking the pid every retry period, we can quickly determine if > the process crashed at startup, rather than make the user wait for > the entire timeout (3 seconds). ACK. Daniel > > Signed-off-by: Cole Robinson > --- > src

Re: [libvirt] [PATCH v2 3/4] Add pidfile argument to __virExec

2009-05-06 Thread Daniel P. Berrange
On Mon, May 04, 2009 at 03:52:10PM -0400, Cole Robinson wrote: > virExec will write out the pid of the daemonized process only. Use this > in the QEMU driver, rather than QEMU's pidfile, so we can catch errors we > might miss if the emulator bails early. ACK, looks good now. Daniel -- |: Red Hat

Re: [libvirt] [PATCH v2 2/4] Report qemu log data if we fail to daemonize the process.

2009-05-06 Thread Daniel P. Berrange
On Mon, May 04, 2009 at 03:52:09PM -0400, Cole Robinson wrote: > This ensures the user will actually see 'hook' function error output. ACK Daniel > > Signed-off-by: Cole Robinson > --- > src/qemu_driver.c | 13 +++-- > 1 files changed, 11 insertions(+), 2 deletions(-) > > diff --gi

Re: [libvirt] [PATCH v2 1/4] Add helper function virExecDaemonize

2009-05-06 Thread Daniel P. Berrange
On Mon, May 04, 2009 at 03:52:08PM -0400, Cole Robinson wrote: > Wraps __virExec with the VIR_EXEC_DAEMON flag. Waits on the intermediate > process to ensure we don't end up with any zombies, and differentiates between > original process errors and intermediate process errors. > @@ -157,20 +156,1

Re: [libvirt] [PATCH] Fix the style of argument("cpumap") in op_pincpu()

2009-05-06 Thread Daniel P. Berrange
On Thu, Apr 30, 2009 at 04:00:54PM +0900, Tatsuro Enokura wrote: > Hi all, > > The form of cpumap argument in op_pincpu method on xend change > by following a patch. > http://xenbits.xensource.com/xen-unstable.hg?rev/a63d20d7a941 > > xenDaemonDomainPinCpu() sends the string for cpumap argument

Re: [libvirt] KVM processes -- should we be able to attach them to the libvirtd process?

2009-05-06 Thread Daniel P. Berrange
On Tue, May 05, 2009 at 11:38:13PM -0500, Matthew Farrellee wrote: > Daniel P. Berrange wrote: > > On Tue, May 05, 2009 at 04:13:38PM -0400, Hugh O. Brock wrote: > >> Not too long ago we took a patch that allowed QEMU VMs to keep running > >> even if libvirtd died or was restarted. > >> > >> I was

Re: [libvirt] [RFC] Power Hypervisor Libvirt support

2009-05-06 Thread Daniel Veillard
On Mon, May 04, 2009 at 05:50:03PM -0300, Eduardo Otubo wrote: > Hello DV, Hi Eduardo, sorry for the delay I took a few days of vacations :-) > I agree with your suggestions and everything is fixed now. But I would > like to discuss some points. good ! > > > > > +while (channel && cha