Ask Your Question

rwmjones's profile - activity

2014-12-17 12:40:26 -0500 commented question OpenStack Juno using RDO fails installation: AMQP server closed the connection

Dave, I filed a bug about this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1175428 (https://bugzilla.redhat.com/show_bug....)

2014-05-09 05:44:47 -0500 commented answer how to: create a small linux image for openstack?

In virt-sparsify 1.26, you could also use virt-sparsify --in-place option to do the sparsification in place (this is also much faster). Also if you use virt-sparsify in default (copying) mode, then it can do the format conversion (see --convert option in the man page).

2014-05-09 05:44:05 -0500 received badge  Supporter (source)
2014-03-18 11:24:59 -0500 answered a question Create VM images for Openstack

virt-sysprep can customize the image how you want. http://libguestfs.org/virt-builder.1.html (virt-builder) can create the image from scratch with customizations.

2014-01-12 07:44:29 -0500 commented answer Error mounting with libguestfs (guestfs_launch failed)

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

2013-12-22 05:14:56 -0500 answered a question Fail to boot vm, with nova compute complain: Unable to mount image

With the latest version of openstack, if libvirt_inject_partition is -1 then libguestfs should use inspection to determine the correct mounts. So you should check /etc/nova/nova.conf to find out what that setting is.

2013-12-22 05:00:31 -0500 received badge  Editor (source)
2013-12-20 06:33:05 -0500 answered a question nova.virt.disk.api error injecting data libguestfs permission denied

There are two different errors in the discussion above. The first one is:

mount_options: /dev/sda on / (options: ''): mount: you must specify the filesystem type

which means that libguestfs could not detect the filesystem in the disk image (and it's probably looking in the wrong place too).

My Cirros 0.3.0 disk image here has a partition containing an ext3 filesystem:

$ virt-filesystems -a cirros-0.3.0-x86_64-disk.img  --all --long -h
Name       Type        VFS   Label          MBR  Size  Parent
/dev/sda1  filesystem  ext3  cirros-rootfs  -    31M   -
/dev/sda1  partition   -     -              83   31M   /dev/sda
/dev/sda   device      -     -              -    39M   -

But for libguestfs in Nova to find this, it has to be able to inspect the image, which also works for 0.3.0:

$ virt-inspector -a cirros-0.3.0-x86_64-disk.img
<?xml version="1.0"?>
<operatingsystems>
  <operatingsystem>
    <root>/dev/sda1</root>
    <name>linux</name>
    <distro>cirros</distro>
    <product_name>2011.08</product_name>
    <major_version>2011</major_version>
    <minor_version>8</minor_version>

This didn't work properly with CirrOS 0.3.1, but https://github.com/libguestfs/libguestfs/commit/d20289186d257105f304a4fa0c3e6d26a5fb0807 (that bug has now been fixed upstream).

The second error is:

Error mounting /dev/cinder-volumes/instance-0000001d_disk with libguestfs (/dev/cinder-volumes/instance-0000001d_disk: Permission denied

which looks like a straight permissions error. libguestfs needs sufficient permissions to be able to read and write to the disk.

2013-12-12 05:08:54 -0500 answered a question Error mounting with libguestfs (guestfs_launch failed)

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