[libvirt] Using virsh to load scripts for the guest machine

2012-07-15 Thread Mauricio Tavares
Right on the top of http://www.centos.org/docs/5/html/5.2/Virtualization/chap-Virtualization-Managing_guests_with_virsh.html, it seems to imply you can load/send scripts to the vm guest using virsh. Is that possible? How and what are the limitations? Can you query the vm guest? -- libvir-lis

[libvirt] [PATCHv2 1/5] Add virDomainGetHostname

2012-07-15 Thread Guido Günther
to query a guests's hostname. Containers like LXC and OpenVZ allow to set a hostname different from the hosts name and QEMU's guest agent could provide similar functionality. --- include/libvirt/libvirt.h.in |2 ++ src/driver.h |6 ++ src/libvirt.c| 45

[libvirt] [PATCHv2 0/5] Allow to query a guest's hostname

2012-07-15 Thread Guido Günther
The following patches allow to query a guest's hostname. Once we also have support to set the hostname via the domain's xml we can also print it in "virsh dominfo" by default so I left it out for now. I left the version at 0.9.14. It'd be happy to change this ot 0.10 should we settle for that one.

[libvirt] [PATCHv2 5/5] openvz: Implement domainGetHostname

2012-07-15 Thread Guido Günther
--- src/openvz/openvz_driver.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index c9150e0..6046a60 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -234,6 +234,47

[libvirt] [PATCHv2 3/5] remote: Provide RPC call for domainGetHostname

2012-07-15 Thread Guido Günther
--- src/remote/remote_driver.c |1 + src/remote/remote_protocol.x | 12 +++- src/remote_protocol-structs |8 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 3314f80..5d1ce4d 100644 --- a/src/

[libvirt] [PATCHv2 2/5] virsh: Add domhostname

2012-07-15 Thread Guido Günther
to query the guest's hostname. --- tools/virsh.c | 44 tools/virsh.pod |4 2 files changed, 48 insertions(+) diff --git a/tools/virsh.c b/tools/virsh.c index f9fe4b1..7c20202 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -14133,6 +1413

[libvirt] [PATCHv2 4/5] openvz: Add openvzVEGetStringParam

2012-07-15 Thread Guido Günther
to retrieve a VEs config parameters as a single string. This will be used by the upcoming domainGetHostname implementation. --- src/libvirt_openvz.syms |2 +- src/openvz/openvz_util.c | 32 src/openvz/openvz_util.h |1 + 3 files changed, 34 insertions(+)

[libvirt] libvirt + kvm external snapshots: use case?

2012-07-15 Thread Cole Robinson
Forgive my ignorance, but I'm trying to fill in some details for a Fedora feature page: https://fedoraproject.org/w/index.php?title=Features/Virt_Live_Snapshots Yet things aren't working quite as expected in my tests. I'm trying to think of this from an end user use case perspective. For example

Re: [libvirt] [PATCH 5/5] virsh: allow to print hostname in domain listings

2012-07-15 Thread Guido Günther
On Tue, Jul 10, 2012 at 03:18:19PM -0600, Eric Blake wrote: > On 07/10/2012 02:46 PM, Guido Günther wrote: > > --- > > tools/virsh.c | 18 +- > > 1 file changed, 17 insertions(+), 1 deletion(-) > > > > diff --git a/tools/virsh.c b/tools/virsh.c > > index 591a1ce..2c0446c 100644

[libvirt] [PATCH] configure: rbd doesn't need -lcrypto

2012-07-15 Thread Cole Robinson
See https://www.redhat.com/archives/libvir-list/2012-July/msg00493.html Basically building against librbd doesn't seem to actually require -lcrypto. Also report the rbd linker flags in configure output Signed-off-by: Cole Robinson --- configure.ac |8 +++- 1 file changed, 7 insertions(