Re: [Libvir] [RFC] Device attach/detach on virsh

2007-05-10 Thread Daniel Veillard
On Fri, May 11, 2007 at 12:21:00AM +0100, Daniel P. Berrange wrote: > On Thu, May 10, 2007 at 12:50:40PM -0400, Daniel Veillard wrote: > > On Thu, May 10, 2007 at 06:50:53PM +0900, Masayuki Sunou wrote: > > To me this proposal is not okay as-is because it looks completely tied to > > Xen. But may

Re: [Libvir] [RFC] Device attach/detach on virsh

2007-05-10 Thread Daniel P. Berrange
On Thu, May 10, 2007 at 06:50:53PM +0900, Masayuki Sunou wrote: > I want to add I/F to do attach/detatch of VIF and VBD to virsh with > virDomainAttachDevice()/virDomainDetachDevice(). > And, I have two proposals about I/F for virsh to do attach/detach of VIF and > VBD. > > proposal 1: > Virsh

Re: [Libvir] [RFC] Device attach/detach on virsh

2007-05-10 Thread Daniel P. Berrange
On Thu, May 10, 2007 at 12:50:40PM -0400, Daniel Veillard wrote: > On Thu, May 10, 2007 at 06:50:53PM +0900, Masayuki Sunou wrote: > > I want to add I/F to do attach/detatch of VIF and VBD to virsh with > > virDomainAttachDevice()/virDomainDetachDevice(). > > And, I have two proposals about I/F fo

Re: [Libvir] [PATCH] Three cleanup patches

2007-05-10 Thread Daniel Veillard
On Thu, May 10, 2007 at 05:24:00PM +0100, Richard W.M. Jones wrote: > * Add some extra generated files to .cvsignore > > * Remove an unused header in qemud/uuid.c > > * Log an error if xenHypervisorOpen fails because xenHypervisorInit has > failed. just wondering about the last one, would tha

Re: [Libvir] [RFC] Device attach/detach on virsh

2007-05-10 Thread Daniel Veillard
On Thu, May 10, 2007 at 06:50:53PM +0900, Masayuki Sunou wrote: > I want to add I/F to do attach/detatch of VIF and VBD to virsh with > virDomainAttachDevice()/virDomainDetachDevice(). > And, I have two proposals about I/F for virsh to do attach/detach of VIF and > VBD. > > proposal 1: > Virsh

Re: [Libvir] [RFC] Life-cycle Management of the domain take2

2007-05-10 Thread Daniel Veillard
On Thu, May 10, 2007 at 12:06:51PM +0900, Saori Fukuta wrote: > Hi Daniel, > > Thank you for your proposal ! I considered the way with it. > > On Fri, 27 Apr 2007 10:35:15 -0400 Daniel Veillard wrote: > > So I have a problem with this, and I suggest to isolate configuration > > file APIs, which

Re: [Libvir] Question on acquiring cpuTime in struct _virDomainInfo

2007-05-10 Thread Daniel P. Berrange
On Thu, May 10, 2007 at 05:41:33PM +0200, Jan Michael wrote: > Hi everyone, > > using libvirt I'm trying to calculate cpu utilization of a node in > percent. But sometimes values beyond 100.0% are being calculated. > This is because a domain spend more time on a cpu than time is > elapsed in

[Libvir] [PATCH] Three cleanup patches

2007-05-10 Thread Richard W.M. Jones
* Add some extra generated files to .cvsignore * Remove an unused header in qemud/uuid.c * Log an error if xenHypervisorOpen fails because xenHypervisorInit has failed. Rich. -- Emerging Technologies, Red Hat http://et.redhat.com/~rjones/ 64 Baker Street, London, W1U 7DF Mobile: +44 786

Re: [Libvir] [PATCH] Remote 3/8: Client-side

2007-05-10 Thread Richard W.M. Jones
Richard W.M. Jones wrote: Richard W.M. Jones wrote: 3 Client-side - A src/remote_internal.c A src/remote_internal.h M src/driver.h M src/libvirt.c I've fixed the default paths that the client and server use to find PKI certificates now. The updated header file remote_internal.h

[Libvir] [PATCH] Remote 7/8: Documentation updates

2007-05-10 Thread Richard W.M. Jones
Richard W.M. Jones wrote: 7 Documentation updates --- M docs/libvir.html M docs/remote.html I've just pushed a documentation update which contains sections on how to generate and install TLS certificates and how to create a libvirtd.conf configuration file. The update

Re: [Libvir] [PATCH] Remote 4/8: Server-side call dispatch

2007-05-10 Thread Richard W.M. Jones
Richard W.M. Jones wrote: Daniel P. Berrange wrote: Finally, with CHECK_CONN; Is it possible to tweak the macro definition so its use appears as CHECK_CONN(client); So its clear what variable this macro is doing work against. Will do. Attached is the updated remote.c. The only

[Libvir] Question on acquiring cpuTime in struct _virDomainInfo

2007-05-10 Thread Jan Michael
Hi everyone, using libvirt I'm trying to calculate cpu utilization of a node in percent. But sometimes values beyond 100.0% are being calculated. This is because a domain spend more time on a cpu than time is elapsed in the meantime. A short explanation of the way how cpu utilization is c

Re: [Libvir] virsh - vcpuinfo cmd not working in 0.2.2

2007-05-10 Thread Daniel P. Berrange
On Thu, May 10, 2007 at 02:55:29PM +0200, Jan Michael wrote: > Hi Daniel, > > On 07.05.2007, at 22:06, Daniel P. Berrange wrote: > >On Mon, May 07, 2007 at 10:13:57AM +0900, Atsushi SAKAI wrote: > >>Hi, Jan > >> > >>I think you should use 0.2.1 at this moment. > >>libvirt cannot handle Xen-hypervi

Re: [Libvir] virsh - vcpuinfo cmd not working in 0.2.2

2007-05-10 Thread Jan Michael
Hi Daniel, On 07.05.2007, at 22:06, Daniel P. Berrange wrote: On Mon, May 07, 2007 at 10:13:57AM +0900, Atsushi SAKAI wrote: Hi, Jan I think you should use 0.2.1 at this moment. libvirt cannot handle Xen-hypervisor-domctl correctly on 0.2.2. But Xen-hypervisor-sysctl works fine. This problem r

[Libvir] [RFC] Device attach/detach on virsh

2007-05-10 Thread Masayuki Sunou
I want to add I/F to do attach/detatch of VIF and VBD to virsh with virDomainAttachDevice()/virDomainDetachDevice(). And, I have two proposals about I/F for virsh to do attach/detach of VIF and VBD. proposal 1: Virsh catches MAC, bridge name, device name (physical,virtual), and another by t