Skip to content

gestfish tool

Editing file in an image

This is useful when you need to change password for example in an image

root@box1 # guestfish --rw -a ./rhel-guest-image-7.1-20150224.0.x86_64.qcow2
><fs> run
><fs> list-filesystems
><fs> mount /dev/sda1 /
><fs> vi /etc/shadow

NOTE: after you perform the following steps you use "quit" to exit..
DO NOT EXIT NOW, proceed with the following steps