[Libguestfs] libguestfs failure

Richard W.M. Jones rjones at redhat.com
Sat Sep 12 08:53:02 UTC 2015


On Fri, Sep 11, 2015 at 05:59:26PM -0400, Todd Wright wrote:
> Original error from libvirt: internal error: process exited while
> connecting to monitor: Cannot set up guest memory 'pc.ram': Cannot
> allocate memory

That's your error according to libvirt.  qemu in this case will be
trying to allocate ~ 500 MB of RAM (using ordinary malloc).

Do you have enough free memory on the host?

Another thing to do would be to look for the file called
guestfs-ecwkqdns6qyvh9v5.log (probably located somewhere under
/var/log/libvirt/qemu), and see if there is some other qemu error
which libvirt is hiding from us.

You could also remove libvirt from the equation and have libguestfs
run qemu directly, to see if that makes any difference and/or allows
you to see the real error:

  LIBGUESTFS_BACKEND=direct libguestfs-test-tool

More information possibly in this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=765733

BTW you don't need to run libguestfs-test-tool as root.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list