On Thu, Dec 11, 2014 at 02:51:20PM -0800, Vann T wrote:
I posted this problem on IRC yesterday. Here are some logs.
Recap on the problem:
When I do inspect_os() (from the python api) or invoke virt-inspector, I
get this error:
libguestfs: error: internal_parse_mountable: internal_parse_mountable_stub:
/dev/vg_nestedctos1/lv_root: No such file or directory
I don't have this problem when I invoke it using the OS supplied binaries
(version 1.14.8). I'm using libguestfs-1.28.4 compiled from the source
tarball.
Could it be that I'm missing something when I compiled libguestfs? Online
searches have been a dead end so far. Also, I wonder why it doesn't detect
the vg_nestedctos1/lv_root filesystem. libguestfs-1.14.8 says 'ext4' but it
says 'unknown' when I use the one I compiled.
This smells a lot like:
https://bugzilla.redhat.com/show_bug.cgi?id=1020806
The tricky explanation is in comment 10 and following of that bug.
If you're building from source, try adding this to appliance/init:
echo "" > /proc/sys/kernel/hotplug
The real problem was that CONFIG_UEVENT_HELPER_PATH in the
Debian/Ubuntu kernel config contains some bogus binary. So if it is
this bug, then fixing that setting and rebuilding your kernel would be
an alternative approach.
Another problem I can see is that the appliance/init lvm vgchange
command is failing:
lvm vgchange -aay --sysinit
Invalid argument ay
Error during parsing of command line.
That's unexpected, and not an error that I've seen before. Perhaps
/sbin/lvm is too old or too new?
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org