Re: [Libvir] [PATCH] Another Report error in virsh.c code.

2008-03-11 Thread S.Sakamoto
> Is this one necessary? vshCommandOptString prints an error anyway > because the cpulist parameter is marked as required, ie: > > $ virsh vcpupin > error: command 'vcpupin' requires option > error: command 'vcpupin' requires option > error: command 'vcpupin' requires option > > > @@

Re: [Libvir] virsh start problem + patch

2008-03-11 Thread Richard W.M. Jones
OK, I think that's a good explanation but I'll leave it to Dan to comment 'coz he wrote the code ... Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and t

Re: [Libvir] [PATCH] Another Report error in virsh.c code.

2008-03-11 Thread Richard W.M. Jones
On Tue, Mar 11, 2008 at 05:09:45PM +0900, S.Sakamoto wrote: > BTW, I think another message is needed here to inform the internal > error to user. > For example, the migrate command shows the following message when > "desturi" is missing: > migrate: Missing desturi > But it does not show the err

Re: [Libvir] [PATCH] Another Report error in virsh.c code.

2008-03-11 Thread S.Sakamoto
> On Tue, Mar 11, 2008 at 05:09:45PM +0900, S.Sakamoto wrote: > > BTW, I think another message is needed here to inform the internal > > error to user. > > For example, the migrate command shows the following message when > > "desturi" is missing: > > migrate: Missing desturi > > But it does no

Re: [Libvir] PATCH: Fix libvirtd to not shutdown at startup

2008-03-11 Thread Daniel Veillard
On Sun, Mar 09, 2008 at 08:59:24PM +, Daniel P. Berrange wrote: > Changes to the daemon to make it called qemudShutdown() broke the network > driver when run in --daemon mode. This is because the main daemon forks > into the background, and the original PID then exits destroying any active > ne

Re: [Libvir] PATCH: Don't make connection read-only when non-root

2008-03-11 Thread Daniel Veillard
On Mon, Mar 10, 2008 at 11:49:54AM +, Richard W.M. Jones wrote: > On Sun, Mar 09, 2008 at 09:05:02PM +, Daniel P. Berrange wrote: > > The virsh commands has long forced the connection to be read-only if running > > as non-root. This is bogus because it is perfectly capable of authenticating

Re: [Libvir] PATCH: Fix xen unified driver open logic

2008-03-11 Thread Daniel Veillard
On Mon, Mar 10, 2008 at 07:09:36PM +, Daniel P. Berrange wrote: > When adding PolicyKit support we disabled the proxy driver, but did not > correctly fix up the Xen unified driver. The result is that it is still > trying to run the proxy setuid helper which doesn't exist and thus it fails > the

[Libvir] Snapshots for Xen and KVM

2008-03-11 Thread Gabriel Kaufmann
Hi, Does anyone knows if Xen and KVM support snapshots (regardless if Libvirt provides the API for them). If yes, will libvirt add API for it? Best Regards, Gabriel Kaufmann Software Engineer [EMAIL PROTECTED] Ericom Software Tel (Dir): +972 2 591 1700 Ext 754 Tel (Ma

[Libvir] Accessing qemu from windows

2008-03-11 Thread Gabriel Kaufmann
Hi, I'm running virsh from linux machine with the URI qemu+tcp://:@/system >From a linux machine (not the same that runs the libvirtd deamon) with >libvirt 0.3.0, this URI allows me to connect. In the other hand, using the Virsh.exe (that comes with ocaml-libvirt-0.4.0.1.exe

Re: [Libvir] Need Help on Error handling.

2008-03-11 Thread Ajishrao.r
Thanks for the reply, I will see it and then will let you know. On Mon, Mar 10, 2008 at 6:23 PM, Chris Lalancette <[EMAIL PROTECTED]> wrote: > Richard W.M. Jones wrote: > > On Sun, Mar 09, 2008 at 10:52:33PM +0530, Ajishrao.r wrote: > >> Hi, > >> I am using libvirt to manage, The Hypervisor

[libvir] Could not connect to xend

2008-03-11 Thread Anton Protopopov
Hi. When I tried to run virsh to connect to xen, I have got an error --- libvirt failed to open connection to xend. Here is output with DEBUG enabled. What kind of additional information do you need? [EMAIL PROTECTED] ~]# LIBVIRT_DEBUG=SPAM virsh DEBUG: libvirt.c: virInitialize (register drivers)

Re: [libvir] Could not connect to xend

2008-03-11 Thread Daniel P. Berrange
On Tue, Mar 11, 2008 at 05:23:24PM +0300, Anton Protopopov wrote: > Hi. > > When I tried to run virsh to connect to xen, I have got an error --- libvirt > failed to open connection to xend. > Here is output with DEBUG enabled. What kind of additional information do > you need? > > [EMAIL PROTECTE

Re: [Libvir] [PATCH] Another Report error in virsh.c code.

2008-03-11 Thread Richard W.M. Jones
On Tue, Mar 11, 2008 at 07:19:57PM +0900, S.Sakamoto wrote: > I wish it is unified as follows. > > ***migrate*** > 2225desturi = vshCommandOptString (cmd, "desturi", &found); > 2226if (!found) { > 2227vshError (ctl, FALSE, "%s", _("migrate: Missing desturi")); > 2228goto do

Re: [Libvir] Snapshots for Xen and KVM

2008-03-11 Thread Richard W.M. Jones
On Tue, Mar 11, 2008 at 12:54:37PM +0200, Gabriel Kaufmann wrote: > Does anyone knows if Xen and KVM support snapshots (regardless if > Libvirt provides the API for them). It's currently on the Xen to-do list, but apart from some research papers I'm not aware of them implementing it. Perhaps rece

Re: [Libvir] Accessing qemu from windows

2008-03-11 Thread Richard W.M. Jones
On Tue, Mar 11, 2008 at 01:00:23PM +0200, Gabriel Kaufmann wrote: > I'm running virsh from linux machine with the URI > qemu+tcp://:@/system > >From a linux machine (not the same that runs the libvirtd deamon) with > >libvirt 0.3.0, this URI allows me to connect. > In the other hand, using the

[Libvir] "virsh list" command of libvirt consumes a lot of CPU in the domain-0

2008-03-11 Thread jean-paul . pigache
Hi all, I know that this is not a libvirt issue but this badly impacts libvirt usage. Is anyone aware of any status on this issue ? Daniel ? Here is some history I could get from the libvirt mailing list : * October 12, 2006 (Daniel Berrange). I've been trying to track down just why talking to X

Re: [Libvir] Accessing qemu from windows

2008-03-11 Thread Richard W.M. Jones
On Tue, Mar 11, 2008 at 06:00:31PM +0200, Gabriel Kaufmann wrote: > I'm sure it actually makes a remote TCP connection since on the server side I > get the error: > 'libvir: error : could not connect to qemu:///system?' It actually prints this out on the server side? Can you run the server with

Re: [Libvir] Snapshots for Xen and KVM

2008-03-11 Thread Bryan Kearney
Is there a means of snapshotting before you start up xen, and then reverting after you shut it down? -- bk Richard W.M. Jones wrote: On Tue, Mar 11, 2008 at 12:54:37PM +0200, Gabriel Kaufmann wrote: Does anyone knows if Xen and KVM support snapshots (regardless if Libvirt provides the API fo

Re: [Libvir] virsh start problem + patch

2008-03-11 Thread Daniel P. Berrange
On Tue, Mar 11, 2008 at 06:57:33AM +0100, Toth Istvan wrote: > # virsh list --all > Id Name State > -- > 0 Domain-0 running > - windows-xen shut off > - windows-xen2 no state > > # xm list > Name

Re: [Libvir] Snapshots for Xen and KVM

2008-03-11 Thread John Levon
On Tue, Mar 11, 2008 at 03:43:51PM +, Richard W.M. Jones wrote: > On Tue, Mar 11, 2008 at 12:54:37PM +0200, Gabriel Kaufmann wrote: > > Does anyone knows if Xen and KVM support snapshots (regardless if > > Libvirt provides the API for them). > > It's currently on the Xen to-do list, but apart