Skip to content

Instantly share code, notes, and snippets.

@vasi
Created May 8, 2013 19:51
Show Gist options
  • Save vasi/5543124 to your computer and use it in GitHub Desktop.
Save vasi/5543124 to your computer and use it in GitHub Desktop.
libguestfs appliance weirdness
vasi@inchon:~/Downloads$ LIBGUESTFS_PATH=$PWD/rwmj-appliance guestfish -a ubuntu-10.04.4-alternate-amd64.iso
Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.
Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell
><fs> run
100% ⟦▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓⟧ --:--
><fs> list-filesystems
/dev/vda: iso9660
><fs> mount-vfs defaults iso9660 /dev/sda /
><fs> ll /
total 201
dr-xr-xr-x 10 root root 2048 Feb 14 2012 .
drwxr-xr-x 24 500 501 4096 May 8 20:50 ..
dr-xr-xr-x 2 root root 2048 Feb 14 2012 .disk
-r--r--r-- 1 root root 230 Feb 14 2012 README.diskdefines
-r-xr-xr-x 1 root root 1115 Apr 24 2010 cdromupgrade
dr-xr-xr-x 3 root root 2048 Feb 14 2012 dists
dr-xr-xr-x 3 root root 2048 Feb 14 2012 doc
dr-xr-xr-x 3 root root 2048 Feb 14 2012 install
dr-xr-xr-x 2 root root 16384 Feb 14 2012 isolinux
-r--r--r-- 1 root root 166608 Feb 14 2012 md5sum.txt
dr-xr-xr-x 2 root root 2048 Feb 14 2012 pics
dr-xr-xr-x 3 root root 2048 Feb 14 2012 pool
dr-xr-xr-x 2 root root 2048 Feb 14 2012 preseed
lr-xr-xr-x 1 root root 1 Feb 14 2012 ubuntu -> .
><fs> ls /
libguestfs: error: ls: dispatch_incoming_message: unknown procedure number 6, set LIBGUESTFS_PATH to point to the matching libguestfs appliance directory
><fs> quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment