Skip to content

Instantly share code, notes, and snippets.

@cwolferh
Created April 20, 2013 00:16
Show Gist options
  • Select an option

  • Save cwolferh/5424108 to your computer and use it in GitHub Desktop.

Select an option

Save cwolferh/5424108 to your computer and use it in GitHub Desktop.
# on fedora 18, install libguestfs from source instead of yum.
# otherwise, guestconv calls to the libguestfs would fail like so:
#
# Exception AttributeError: "'GuestFS' object has no attribute '_o'" in <bound method GuestFS.__del__ of <guestfs.GuestFS object at 0x2595250>> ignored
# Traceback (most recent call last):
# File "examples/example.py", line 27, in <module>
# g = guestconv.Converter('rhev', ['conf/guestconv.db']);
# File "../guestconv/guestconv/converter.py", line 89, in __init__
# self._h = guestfs.GuestFS(python_return_dict=True)
if [ "$USER" != "root" ]; then
echo "you'd best run this as root."
exit 1
fi
yum -y install python-lxml yum-utils
yum-builddep libguestfs
cd /root/
git clone https://github.com/libguestfs/libguestfs
cd libguestfs
./autogen.sh
make
make install
# Now you're ready to clone https://github.com/mdbooth/guestconv and
# hack away.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment