Ask Your Question

Error mounting with libguestfs (guestfs_launch failed)

asked 2013-12-11 08:38:31 -0500

kemra102 gravatar image

updated 2014-01-27 02:37:36 -0500

I am having issues getting any image at all to boot in our new OpenStack environment. The latest freshly built image (using boots but I cannot SSH in. Upon investigating it looks like Nova/KVM/qemu cannot mount the image to inject SSH keys, or setup the networking, hostname etc. Here's the log entry that gets produced in /var/log/nova/compute.log:

Error mounting /var/lib/nova/instances/ea6dc4a1-1746-4c18-90b5-96c226acf68f/disk with libguestfs (guestfs_launch failed.
and/or run 'libguestfs-test-tool'.))

After Googling around for the issue the only other instances of this error I can find are due to incorrect SELinux labels. However all of our machines have SELinux disabled so this cannot be the issue. I have looked into the following nova options:

libvirt_inject_partition = -1

Explicitly setting these options across the compute nodes has made no difference at all and the error still occurs.

Also running libguestfs-test-tool as the message indicates shows 0 errors.

Images are built as the latest CentOS 6.5 64bit using Packer.

Mounting using guestfish --ro -a /var/lib/nova/instances/UUID/disk -i works without error and I can work throught the filesystem etc as I desire. When I try mount rw however I get the following error:

libguestfs: error: /usr/libexec/qemu-kvm exited with error status 1.
To see full error messages you may need to enable debugging.
libguestfs: error: guestfs_launch failed.
and/or run 'libguestfs-test-tool'.

Attempting a rw mount again with debugging turned on produces the following output:

I have checked the console.log of a Cirros image I booted and I am seeing the following error (clipped to remove anything unnecessary):

info: initramfs: up at 1.25
[    1.467464] end_request: I/O error, dev vda, sector 0
[    1.471458] Buffer I/O error on device vda, logical block 0
[    1.471458] lost page write due to I/O error on vda
***** WARNING: Resize failed, attempting to revert ******
[    1.493892] end_request: I/O error, dev vda, sector 0
[    1.497887] Buffer I/O error on device vda, logical block 0
[    1.497887] lost page write due to I/O error on vda
/dev/vda: Input/output error
Error closing /dev/vda
***** Appears to have gone OK ****
FAILED: failed to resize
Re-reading the partition table ...
info: initramfs loading root from /dev/vda1
info: /etc/init.d/rc.sysinit: up at 1.59
[    1.601350] end_request: I/O error, dev vda, sector 16067
[    1.605344] Buffer I/O error on device vda1, logical block 1
[    1.605344] lost page write due to I/O error on vda1
[    1.617854] EXT3-fs (vda1): I/O error while writing superblock
[    6.832592] end_request: I/O error, dev vda, sector 49351
[    6.836584] Buffer I/O error on device vda1, logical block 16643
[    6.836584] lost page write due to I/O ...
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2013-12-11 09:36:08 -0500

dheeru gravatar image

Are you using the CentOS image to build the instance ? Also give me the complete compute.log. There could be potential bug you are hitting. I will confirm only after seeing the compute.log and provide you the patch.

edit flag offensive delete link more


Happy to share the compute.log but it's far too big for pastebin and this site doesn't allow attachments, how would you prefer the log to be shared with you?

kemra102 gravatar imagekemra102 ( 2013-12-11 09:48:47 -0500 )edit

please drop an email you can send log around the time when the error occurred.

dheeru gravatar imagedheeru ( 2013-12-11 09:51:18 -0500 )edit

You should have the log shortly.

kemra102 gravatar imagekemra102 ( 2013-12-11 10:07:41 -0500 )edit

answered 2013-12-11 10:04:12 -0500

I'd try guestfs separately using: guestfish --ro -a /var/lib/nova/instances/ea6dc4a1-1746-4c18-90b5-96c226acf68f/disk -i which should allow easier debugging. Also note the option of using cloud-init with a config drive or meta data server to provide keys.

edit flag offensive delete link more


I tried this and updated my questions with my findings.

kemra102 gravatar imagekemra102 ( 2014-01-10 11:10:54 -0500 )edit

answered 2013-12-12 05:08:54 -0500

rwmjones gravatar image

What is the complete, unedited output of libguestfs-test-tool?

edit flag offensive delete link more


Apologies I was fire fighting another error. Complete output as requested:

kemra102 gravatar imagekemra102 ( 2014-01-10 11:01:17 -0500 )edit

@kemra102: That's a successful run of libguestfs-test-tool so you should be good I think.

rwmjones gravatar imagerwmjones ( 2014-01-12 07:44:29 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2013-12-11 08:38:31 -0500

Seen: 3,851 times

Last updated: Jan 27 '14