Re: [libvirt] [PATCH] fix minor typo

2008-08-14 Thread Atsushi SAKAI
Hi, John Thank you for your suggestion. I am looking around the libvirt.pot and found 4 typos additionally. I am pushing these fixes. Thanks Atsushi SAKAI John Levon <[EMAIL PROTECTED]> wrote: > > Fix a typo in the message for the 'dump' command in virsh. > > Signed-off-by: John Levon <[EMAI

[libvirt] Re: fail to run virsh

2008-08-14 Thread Jun Koi
Please can somebody help? I am kind of stucked here. Thanks, Jun On Thu, Aug 14, 2008 at 5:27 PM, Jun Koi <[EMAIL PROTECTED]> wrote: > Hi, > > I installed libvirt (cvs version), and can confirm that libvirtd is > running. However, virsh failed to work. I got the below message when > running virsh

Re: [libvirt] breaking out of virsh console?

2008-08-14 Thread acue
Hello, even though this might probably not be exactly what you expect, I released a GPL3-Tool, the UnifiedSessionsManager, what functionally supports the "splitted" management of Clients and Servers including Headless-Mode and allows for disconnect and reconnect by a simplified addressing schema

Re: [libvirt] VMWare support, any news?

2008-08-14 Thread acue
Hello, even though it might probably not be exactly what you expect, I released a GPL3-Tool, the UnifiedSessionsManager, what functionally exactly does this. It supports transparently VMware-workstation+server+player and utilizes either vmrun or vmware-cmd. For new VMs the inventory entries are

Re: [libvirt] VMWare support, any news?

2008-08-14 Thread Michael March
Vmware has an api the vmware server, vmware workstation and esx all (mostly) share. -- -Original Message- From: Stefan de Konink <[EMAIL PROTECTED]> Date: Fri, 15 Aug 2008 00:33:20 To: Yushu Yao<[EMAIL PROTECTED]> Cc: Subject: Re: [libvirt] VMWare support, any news? On Thu, 14 Aug

Re: [libvirt] VMWare support, any news?

2008-08-14 Thread Stefan de Konink
On Thu, 14 Aug 2008, Yushu Yao wrote: > Thanks Daniel, > > Could you point me to the simplest example of one other back-end? (I > looked into "test" one but don't know if it has been different after > refactoring). > > So, consider VMPlayer as an example, I need simply do a system call >

Re: [libvirt] VMWare support, any news?

2008-08-14 Thread Yushu Yao
Thanks Daniel, Could you point me to the simplest example of one other back-end? (I looked into "test" one but don't know if it has been different after refactoring). So, consider VMPlayer as an example, I need simply do a system call "vmplayer --xxx yyy.vmx" in the driver implementation

Re: [libvirt] breaking out of virsh console?

2008-08-14 Thread Stefan de Konink
On Thu, 14 Aug 2008, Daniel P. Berrange wrote: > On Thu, Aug 14, 2008 at 02:26:57PM -0400, Andrew Cathrow wrote: > > On Thu, 2008-08-14 at 11:23 -0700, Schroeder, Paul wrote: > > > > > Hello all... > > > > > > In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh > > > console myvm

Re: [libvirt] VMWare support, any news?

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 02:11:33PM -0700, Yushu Yao wrote: > Hi All, > > I noticed there are some discussion about VMWare support of libvirt > several back in April-May. Just wondering is there a prototype yet? This is no code that I'm aware of. With the recent libvirt code refactoring it sho

Re: [libvirt] breaking out of virsh console?

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 02:26:57PM -0400, Andrew Cathrow wrote: > On Thu, 2008-08-14 at 11:23 -0700, Schroeder, Paul wrote: > > > Hello all... > > > > In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh > > console myvm" and log in from the host machine's command line. It works

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 03:31:04PM -0400, Andrew Cathrow wrote: > On Thu, 2008-08-14 at 10:12 +0100, Daniel P. Berrange wrote: > > > > There is also the option to request the 'inactive' XML dump for a running > > domain which removes any auto-allocated params. This is just a convenience > > thoug

[libvirt] VMWare support, any news?

2008-08-14 Thread Yushu Yao
Hi All, I noticed there are some discussion about VMWare support of libvirt several back in April-May. Just wondering is there a prototype yet? The function I¹m interested in is to stop/start a VM by VMWare player/workstation/free server. Thanks, -Yushu -- Libvir-list mailing list Libvi

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread Andrew Cathrow
On Thu, 2008-08-14 at 10:12 +0100, Daniel P. Berrange wrote: > There is also the option to request the 'inactive' XML dump for a running > domain which removes any auto-allocated params. This is just a convenience > though, and not required for re-creating the VM later. What version is this in

Re: [libvirt] breaking out of virsh console?

2008-08-14 Thread Andrew Cathrow
On Thu, 2008-08-14 at 11:23 -0700, Schroeder, Paul wrote: > Hello all... > > In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh > console myvm" and log in from the host machine's command line. It works > perfectly. Trouble is, I don't know how to break out of it to get back >

[libvirt] breaking out of virsh console?

2008-08-14 Thread Schroeder, Paul
Hello all... In my VM's inittab, I set agetty to run on ttyS0 so I could do "virsh console myvm" and log in from the host machine's command line. It works perfectly. Trouble is, I don't know how to break out of it to get back to the command line on my host. I've only been able to do so by killi

Re: [libvirt] [PATCH] get memory in openvz driver

2008-08-14 Thread Evgeniy Sokolov
On Thu, Aug 14, 2008 at 06:08:31PM +0400, Evgeniy Sokolov wrote: On Wed, Aug 13, 2008 at 12:50:33PM +0400, Evgeniy Sokolov wrote: OpenVZ has several parameters for memory management. All of them can be configured independetly. Summing all the different memory limits together is wrong - this wil

[libvirt] [PATCH] Delete veth devices during lxcVMCleanup

2008-08-14 Thread Dan Smith
This makes sure to delete veth devices after we've killed the container. In the case of a destroy or crash, this ensures the system is cleaned up properly. To be applied atop Daniel Berrange's current LXC patch stack. diff -r b18ae864eb98 -r cd0bd9a6288a src/lxc_driver.c --- a/src/lxc_driver.c W

Re: [libvirt] PATCH: 3/4: Introduce libvirt_lxc binary

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 07:55:02AM -0700, Dan Smith wrote: > DB> The deletion of veth's is the last thing the controller process > DB> does. So assuming it doesn't crash they should be cleaned up. > > Well, a destroy operation kills the container and leaves the veth > devices 100% of the time for

Re: [libvirt] PATCH: 3/4: Introduce libvirt_lxc binary

2008-08-14 Thread Dan Smith
DB> The deletion of veth's is the last thing the controller process DB> does. So assuming it doesn't crash they should be cleaned up. Well, a destroy operation kills the container and leaves the veth devices 100% of the time for me. While attempting to test that, I noticed that if I have a conta

Re: [libvirt] [PATCH] get memory in openvz driver

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 06:08:31PM +0400, Evgeniy Sokolov wrote: > >On Wed, Aug 13, 2008 at 12:50:33PM +0400, Evgeniy Sokolov wrote: > >>OpenVZ has several parameters for memory management. All of them can be > >>configured independetly. > > > >Summing all the different memory limits together is w

Re: [libvirt] [PATCH] manage number of virtual CPUs

2008-08-14 Thread Evgeniy Sokolov
On Wed, Aug 13, 2008 at 05:04:45PM +0400, Evgeniy Sokolov wrote: +static int openvzGetMaxVCPUs(virConnectPtr conn, const char *type) { +if (STRCASEEQ(type, "openvz")) +return 4096; //OpenVZ has no limitation This should be 1024 since that's the max CPUs exposed by the kernel to us

Re: [libvirt] [PATCH] get memory in openvz driver

2008-08-14 Thread Evgeniy Sokolov
On Wed, Aug 13, 2008 at 12:50:33PM +0400, Evgeniy Sokolov wrote: OpenVZ has several parameters for memory management. All of them can be configured independetly. Patch allow to get configuration of memory from container config and then calculate total usage of memory. It is open question how

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread John Levon
On Thu, Aug 14, 2008 at 09:42:09AM +0200, Stefan de Konink wrote: > > You need to take care of only two parameters ID and VNC port, other > > things will remain. If you want to put different path for disk you can > > do that as well. API is already available to define by you own xml. > > Even if y

Re: [libvirt] [PATCH] get memory in openvz driver

2008-08-14 Thread Daniel P. Berrange
On Wed, Aug 13, 2008 at 12:50:33PM +0400, Evgeniy Sokolov wrote: > OpenVZ has several parameters for memory management. All of them can be > configured independetly. > > Patch allow to get configuration of memory from container config and > then calculate total usage of memory. > > It is open q

Re: [libvirt] [PATCH] manage number of virtual CPUs

2008-08-14 Thread Daniel P. Berrange
On Wed, Aug 13, 2008 at 05:04:45PM +0400, Evgeniy Sokolov wrote: > +static int openvzGetMaxVCPUs(virConnectPtr conn, const char *type) { > +if (STRCASEEQ(type, "openvz")) > +return 4096; //OpenVZ has no limitation This should be 1024 since that's the max CPUs exposed by the kernel to u

Re: [libvirt] PATCH: 3/4: Introduce libvirt_lxc binary

2008-08-14 Thread Daniel P. Berrange
On Wed, Aug 13, 2008 at 10:20:03AM -0700, Dan Smith wrote: > DB> This patch is the important one, switching from an I/O controller > DB> which is simply fork'd off libvirtd, to a properly execable > DB> libvirt_lxc binary. > > This works for me. The network interfaces aren't cleaned up properly o

Re: Bug with (Re: [libvirt] Reusing dumpxml output)

2008-08-14 Thread Stefan de Konink
On Thu, 14 Aug 2008, Stefan de Konink wrote: > On Thu, 14 Aug 2008, Daniel P. Berrange wrote: > > > Then we can see about fixing it & adding another test case to ensure > > it doesn't break again > > I'm going to upgrade to the latest git to be sure, I'll report back soon. New version fixes the i

Re: Bug with (Re: [libvirt] Reusing dumpxml output)

2008-08-14 Thread Stefan de Konink
On Thu, 14 Aug 2008, Daniel P. Berrange wrote: > Then we can see about fixing it & adding another test case to ensure > it doesn't break again I'm going to upgrade to the latest git to be sure, I'll report back soon. Stefan -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.

Re: Bug with (Re: [libvirt] Reusing dumpxml output)

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 10:48:20AM +0200, Stefan de Konink wrote: > Output from dumpxml: > > > unittest_200808081319_00010 > 380ac319-6b7c-a471-305c-e467c1672c73 > > > linux > /usr/lib/xen/boot/linux-2.6.20-xen-r6 > root=/dev/xvda ro > > 131072 > 1 > destroy > re

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread Stefan de Konink
On Thu, 14 Aug 2008, Daniel P. Berrange wrote: > On Thu, Aug 14, 2008 at 01:04:56AM +0200, Stefan de Konink wrote: > > I would like to reuse configurations that have been edited using the > > libvirt api. For example by attaching interfaces. > > > > Now the output that dumpxml generates, is very '

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 09:42:09AM +0200, Stefan de Konink wrote: > On Thu, 14 Aug 2008, ajishrao wrote: > > > You need to take care of only two parameters ID and VNC port, other > > things will remain. If you want to put different path for disk you can > > do that as well. API is already availabl

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 12:09:24PM +0530, ajishrao wrote: > You need to take care of only two parameters ID and VNC port, other > things will remain. If you want to put different path for disk you can > do that as well. API is already available to define by you own xml. > Even if you don't modify t

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 01:04:56AM +0200, Stefan de Konink wrote: > I would like to reuse configurations that have been edited using the > libvirt api. For example by attaching interfaces. > > Now the output that dumpxml generates, is very 'specific' to an active > configuration. I am not able to

Re: [libvirt] [PATCH] Fix serial console telnet protocol support

2008-08-14 Thread Daniel P. Berrange
On Thu, Aug 14, 2008 at 10:21:25AM +0200, Guido G?nther wrote: > Hi Mark, > On Wed, Aug 13, 2008 at 06:44:28PM +0100, Mark McLoughlin wrote: > > With e.g.: > > > > > > > > > > > > > > > > You currently get: > > > > Unknown option: listen > > qemu: could not open serial d

Bug with (Re: [libvirt] Reusing dumpxml output)

2008-08-14 Thread Stefan de Konink
Output from dumpxml: unittest_200808081319_00010 380ac319-6b7c-a471-305c-e467c1672c73 linux /usr/lib/xen/boot/linux-2.6.20-xen-r6 root=/dev/xvda ro 131072 1 destroy restart destroy

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread ajishrao
On Thu, 2008-08-14 at 09:42 +0200, Stefan de Konink wrote: > On Thu, 14 Aug 2008, ajishrao wrote: > > > You need to take care of only two parameters ID and VNC port, other > > things will remain. If you want to put different path for disk you can > > do that as well. API is already available to

[libvirt] fail to run virsh

2008-08-14 Thread Jun Koi
Hi, I installed libvirt (cvs version), and can confirm that libvirtd is running. However, virsh failed to work. I got the below message when running virsh with debugging information. How to fix this problem? Many thanks, Jun # LIBVIRT_DEBUG=1 virsh DEBUG: libvirt.c: virInitialize (register dri

Re: [libvirt] [PATCH] Fix serial console telnet protocol support

2008-08-14 Thread Guido Günther
Hi Mark, On Wed, Aug 13, 2008 at 06:44:28PM +0100, Mark McLoughlin wrote: > With e.g.: > > > > > > > > You currently get: > > Unknown option: listen > qemu: could not open serial device 'telnet:127.0.0.1:,listen' > > With the telnet protocol, qemu expects "server" a

Re: [libvirt] Reusing dumpxml output

2008-08-14 Thread Stefan de Konink
On Thu, 14 Aug 2008, ajishrao wrote: > You need to take care of only two parameters ID and VNC port, other > things will remain. If you want to put different path for disk you can > do that as well. API is already available to define by you own xml. > Even if you don't modify the id/vnc it doesn't