[Pkg-libvirt-commits] [libguestfs] 03/87: launch: libvirt: Clearer message when libvirt screws up.

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:09:52 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository libguestfs.

commit b6a9b89ab36be757146b11dcb0c7631248f080dc
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Dec 19 18:38:57 2013 +0000

    launch: libvirt: Clearer message when libvirt screws up.
    
    Instead of:
    
    libguestfs: error: could not create appliance through libvirt.
    Try using the direct backend to run qemu directly without libvirt,
    by setting the LIBGUESTFS_BACKEND=direct environment variable.: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/tmp/libguestfs3RnJSd/snapshot2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=writeback: could not open disk image /tmp/libguestfs3RnJSd/snapshot2: Could not open backing file: Could not open '/home/lsm5/fimagebuilder/fedora-imagebuilder/fedora-imagebuilder-sda.qcow2': Permission denied
    
    it will now say:
    
    libguestfs: error: could not create appliance through libvirt.
    
    Try running qemu directly without libvirt using this environment variable:
    export LIBGUESTFS_BACKEND=direct
    
    Original error from libvirt: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/tmp/libguestfs3RnJSd/snapshot2,if=none,id=drive-scsi0-0-0-0,format=qcow2,cache=writeback: could not open disk image /tmp/libguestfs3RnJSd/snapshot2: Could not open backing file: Could not open '/home/lsm5/fimagebuilder/fedora-imagebuilder/fedora-imagebuilder-sda.qcow2': Permission denied
    
    (cherry picked from commit 8acb91a58487eba2f3598457a97afe3e559c52af)
---
 src/launch-libvirt.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/launch-libvirt.c b/src/launch-libvirt.c
index 36e3df0..168939c 100644
--- a/src/launch-libvirt.c
+++ b/src/launch-libvirt.c
@@ -407,8 +407,11 @@ launch_libvirt (guestfs_h *g, void *datav, const char *libvirt_uri)
   if (!dom) {
     libvirt_error (g, _(
       "could not create appliance through libvirt.\n"
-      "Try using the direct backend to run qemu directly without libvirt,\n"
-      "by setting the LIBGUESTFS_BACKEND=direct environment variable."));
+      "\n"
+      "Try running qemu directly without libvirt using this environment variable:\n"
+      "export LIBGUESTFS_BACKEND=direct\n"
+      "\n"
+      "Original error from libvirt"));
     goto cleanup;
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list