Re: [Libguestfs] Debugging nested KVM guest (L2) booting with libguestfs/gdb

2014-02-13 Thread Kashyap Chamarthy
On Thu, Feb 13, 2014 at 12:08:37AM +0530, Kashyap Chamarthy wrote: [. . .] Try a couple more things - Run `qemu-sanity-check` in L1 -- Of course, this fails too. - Invoke (from a different shell, as root) QEMU directly with gdb debugging options -s -S with

Re: [Libguestfs] Debugging nested KVM guest (L2) booting with libguestfs/gdb

2014-02-13 Thread Richard W.M. Jones
On Thu, Feb 13, 2014 at 12:08:37AM +0530, Kashyap Chamarthy wrote: The 'qemu-kvm' command-line just hung at: $ ./run libguestfs-test-tool [. . .] -chardev socket,path=/home/tuser1/src/libguestfs/tmp/libguestfspCGc1F/guestfsd.sock,id=channel0 \ -device

[Libguestfs] [PATCH] sysprep: remove RH subscription manager files

2014-02-13 Thread Pino Toscano
Add a new operation for it, which should do what `subscription-manager clean` does. Part of RHBZ#1063374. --- po/POTFILES-ml | 1 + sysprep/Makefile.am| 1 + .../sysprep_operation_rh_subscription_manager.ml | 42

Re: [Libguestfs] [PATCH] sysprep: remove RH subscription manager files

2014-02-13 Thread Richard W.M. Jones
On Thu, Feb 13, 2014 at 11:00:26AM +0100, Pino Toscano wrote: Add a new operation for it, which should do what `subscription-manager clean` does. Part of RHBZ#1063374. ACK. Rich. po/POTFILES-ml | 1 + sysprep/Makefile.am

[Libguestfs] [PATCH] sysprep: remove RH subscription manager log files

2014-02-13 Thread Pino Toscano
Part of RHBZ#1063374. --- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index f154b4d..4c3eb8c 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++

[Libguestfs] [PATCH] mllib: hostname: replace the hostname on Debian also in /etc/hosts (RHBZ#953907).

2014-02-13 Thread Pino Toscano
In Debian/Ubuntu systems, read the previous hostname from /etc/hostname before replacing it, and replace it in /etc/hosts with the new hostname. --- mllib/hostname.ml | 27 +++ 1 file changed, 27 insertions(+) diff --git a/mllib/hostname.ml b/mllib/hostname.ml index

Re: [Libguestfs] [PATCH] mllib: hostname: replace the hostname on Debian also in /etc/hosts (RHBZ#953907).

2014-02-13 Thread Richard W.M. Jones
On Thu, Feb 13, 2014 at 02:15:31PM +0100, Pino Toscano wrote: +let expr = /files/etc/hosts/*[label() != '#comment']/*[label() != 'ipaddr'][. = ' ^ oldhost ^ '] in Quoting? If oldhost contains a ' character + some Augeas code, this might be exploitable. I thought it might be possible to

Re: [Libguestfs] [PATCH] sysprep: remove RH subscription manager log files

2014-02-13 Thread Richard W.M. Jones
On Thu, Feb 13, 2014 at 11:00:25AM +0100, Pino Toscano wrote: Part of RHBZ#1063374. --- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index f154b4d..4c3eb8c 100644

Re: [Libguestfs] [PATCH] mllib: hostname: replace the hostname on Debian also in /etc/hosts (RHBZ#953907).

2014-02-13 Thread Pino Toscano
On Thursday 13 February 2014 13:33:16 Richard W.M. Jones wrote: On Thu, Feb 13, 2014 at 02:15:31PM +0100, Pino Toscano wrote: +let expr = /files/etc/hosts/*[label() != '#comment']/*[label() != 'ipaddr'][. = ' ^ oldhost ^ '] in Quoting? If oldhost contains a ' character + some Augeas

[Libguestfs] [PATCH] mllib: hostname: on Debian replace it also in /etc/hosts (RHBZ#953907).

2014-02-13 Thread Pino Toscano
In Debian/Ubuntu systems, read the previous hostname from /etc/hostname before replacing it, and replace it in /etc/hosts with the new hostname. --- mllib/hostname.ml | 30 ++ 1 file changed, 30 insertions(+) diff --git a/mllib/hostname.ml b/mllib/hostname.ml index

Re: [Libguestfs] [PATCH] mllib: hostname: on Debian replace it also in /etc/hosts (RHBZ#953907).

2014-02-13 Thread Richard W.M. Jones
On Thu, Feb 13, 2014 at 03:10:41PM +0100, Pino Toscano wrote: In Debian/Ubuntu systems, read the previous hostname from /etc/hostname before replacing it, and replace it in /etc/hosts with the new hostname. --- mllib/hostname.ml | 30 ++ 1 file changed, 30

[Libguestfs] Libguestfs (1.22.6) driver/changes for mingw/win32

2014-02-13 Thread Or Goshen
Hi, I attached the changes I made to a vanilla libguestfs-1.22.6 in order to make it work in mingw/win32. Added is also the patch required to make QEMU compatible (add a command to QMP that lists the supported devices (the regilat way you do it print it to stderr, which is difficult to redirect

[Libguestfs] [PATCH 2/2] nbdkit: Retrieve libperl linking information from ExtUtils::Embed

2014-02-13 Thread Hilko Bengen
perl -MConfig -e 'print $Config{ldflags}' gave me -lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt with Perl 5.18 as configured on Debian/unstable. --- configure.ac | 15 +-- plugins/perl/Makefile.am | 4 +--- 2 files changed, 6 insertions(+), 13

[Libguestfs] [PATCH 1/2] nbdkit: Work around what seems like an bug in automake 1.14

2014-02-13 Thread Hilko Bengen
AM_INIT_AUTOMAKE(foreign) dnl ... seems to trigger Debian bug#738716 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ee9d377..df31014 100644 --- a/configure.ac +++ b/configure.ac @@ -35,7 +35,8 @@ AC_CONFIG_MACRO_DIR([m4])