Re: Use virt-* tools from within container?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 27, 2016 at 07:09:11PM -0400, Ken D'Ambrosio wrote:
> Hi, all.  I've set up an LXC container for various Openstack admin chores,
> and now I'm being asked to have it used for importing qcow2 images -- on
> which we want to run utilities like virt-sparsify and virt-sysprep, first.
> Sadly, when I do that, it dies horribly, e.g.,
> 
> root@openstack-cli:/tmp# virt-sysprep -a cloud-image.qcow2
> Examining the guest ...
> libguestfs: warning: supermin-helper -f checksum returned a short string
> Fatal error: exception Guestfs.Error("cannot find any suitable libguestfs
> supermin, fixed or old-style appliance on LIBGUESTFS_PATH (search path:
> /usr/lib/guestfs)")
> 
> 
> Is there a way around this?  Or is the answer, "Don't do that in a
> container"?

Assuming you have the right RPMs installed within the container it
ought to work just fine. If you want it to be fast, make sure you
configure the container to also allow /dev/kvm device access. I
run an entire openstack deployment inside a container which is far
more complex than just libguestfs :-)


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux