<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Just to confirm for the list, following discussions with Richard
      in the IRC chat, the solution has been to use rbd-fuse to mount
      the Ceph RBD pool and run virt-sysprep from there.<br>
      <br>
      Documentation for rbd-fuse at
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a href="http://ceph.com/docs/next/man/8/rbd-fuse/">http://ceph.com/docs/next/man/8/rbd-fuse/</a>
      <div class="moz-signature">
        <p>Best regards<br>
           </p>
        <p><b>Graeme <br>
          </b></p>
        <div id="included_email_bodies"> </div>
      </div>
      On 07/01/14 10:13, Richard W.M. Jones wrote:<br>
    </div>
    <blockquote cite="mid:20140107101329.GJ24509@redhat.com" type="cite">
      <pre wrap="">On Tue, Jan 07, 2014 at 10:06:16AM +0000, Graeme Lambert wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,

I'm trying to run virt-sysprep against a disk in Ceph RBD storage
but I appear to be unable to do so.

The commands (bold) and outputs I've had are:

On Ceph node:
*virt-sysprep -a rbd://localhost/libvirt-pool/ubuntu-12-04-beanstalk001*
libguestfs: new guestfs handle 0x113b060
rbd://localhost/libvirt-pool/ubuntu-12-04-beanstalk001: No such file
or directory
libguestfs: trace: close
libguestfs: closing guestfs handle 0x113b060 (state 0)
</pre>
      </blockquote>
      <pre wrap="">
Ahhhh ...

I think the problem is virt-sysprep is too old, ie. predates us adding
support for remote disks.  IIRC you need >= 1.22 and you say below you
are using 1.14.8 which is very old.

Note that even if you have the latest version, no one has actually
tested Ceph support which probably means it's buggy.  There is some
discussion on the mailing list about this.

</pre>
      <blockquote type="cite">
        <pre wrap="">On libvirt node:
*virt-sysprep -d beanstalk002 --hostname beanstalk002 --format rbd*
Examining the guest ...
Fatal error: exception Guestfs.Error("libvirt domain has no disks")
</pre>
      </blockquote>
      <pre wrap="">
The error means that virt-sysprep was not able to find any "ordinary"
disks by looking at the libvirt XML description of the guest.  It's
likely to be the same problem as above, since the old virt-sysprep
will ignore anything which is not a local file.

</pre>
      <blockquote type="cite">
        <pre wrap="">I'm using Ubuntu 13.04 on libvirt node and Ubuntu 12.04.3 LTS on the
Ceph node.  The libguestfs version showing in dpkg is 1:1.14.8-1.

This works fine on qcow2 images that are on disk but I'm moving
towards having all disks in Ceph RBD and would like to be able to
virt-sysprep disks in there if at all possible.

Please can you advise where I'm going wrong?
</pre>
      </blockquote>
      <pre wrap="">
If Ceph support even upstream is broken, then it will need development
work to fix (starting with filing a bug ...)  But anyway nothing is
expected to work with 1.14.

Rich.

</pre>
    </blockquote>
    <br>
  </body>
</html>