guestfish in 3 simple steps
libguestfs is a very handy library for manipulating image files. guestfis is a utility that uses libguestfs that allows you to mount an image file and make changes inside the image. One of the coolest features of libguestfs is that it does not require root prevelages to run or access an image file. The below example shows how to use guest fish to mount an make a change to a machine image.
1) install guestfish
# yum install guestfish2) connect to the image
guestfish –rw -a ~/Downloads/rhel-server-x86_64-kvm-6.4_20130130.0-4.qcow23) edit image
><fs> run><fs> list-filesystems
><fs> mount /dev/vda1 /
><fs> vi /etc/fstab make any changes you need to ><fs> umount /
><fs> exit
Additional info:
Download machine images:
http://openstack.redhat.com/Image_resources
Documentation
Leave a Reply