New module: libguestfs bindings

View: New views
2 Messages — Rating Filter:   Alert me  

New module: libguestfs bindings

by Richard W.M. Jones-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This might be of interest to members of this list.  I wrote a FUSE
module to provide access to libguestfs (http://libguestfs.org/).

When the module is more complete it should allow you to open up and
look inside the filesystem of a virtual machine, or any disk image
that you have.

At the moment it works for basic directory navigation, and I'm hoping
to complete the implementation of file read/write today.

Early patches posted here:

  https://www.redhat.com/archives/libguestfs/

More about libguestfs here:

  http://libguestfs.org/

Rich.

# guestmount -a F12Alphax64.img -m /dev/vg_f12alphax64/lv_root --ro --trace \
    -- -f /mnt/tmp

# cd /mnt/tmp/
# ls
bin   dev  home  lib64       media  opt   root  selinux  sys  usr
boot  etc  lib   lost+found  mnt    proc  sbin  srv      tmp  var
# ll
total 116
dr-xr-xr-x   2 root root  4096 2009-09-17 14:20 bin
drwxr-xr-x   2 root root  4096 2009-09-17 10:04 boot
drwxr-xr-x   2 root root  4096 2009-09-17 10:04 dev
drwxr-xr-x 110 root root 12288 2009-10-04 23:37 etc
drwxr-xr-x   3 root root  4096 2009-09-17 13:55 home
dr-xr-xr-x   9 root root  4096 2009-10-04 23:30 lib
dr-xr-xr-x   9 root root 12288 2009-10-04 23:30 lib64
drwx------   2 root root 16384 2009-09-17 10:04 lost+found
drwxr-xr-x   2 root root  4096 2009-08-25 19:06 media
drwxr-xr-x   2 root root  4096 2009-08-25 19:06 mnt
drwxr-xr-x   2 root root  4096 2009-08-25 19:06 opt
drwxr-xr-x   2 root root  4096 2009-09-17 10:04 proc
dr-xr-x---   4 root root  4096 2009-09-17 14:09 root
dr-xr-xr-x   2 root root 12288 2009-10-04 23:29 sbin
drwxr-xr-x   2 root root  4096 2009-09-17 10:08 selinux
drwxr-xr-x   2 root root  4096 2009-08-25 19:06 srv
drwxr-xr-x   2 root root  4096 2009-09-17 10:04 sys
drwxrwxrwt  10 root root  4096 2009-10-04 23:37 tmp
drwxr-xr-x  14 root root  4096 2009-09-17 10:17 usr
drwxr-xr-x  20 root root  4096 2009-09-17 11:07 var


--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel

Re: New module: libguestfs bindings

by Richard W.M. Jones-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I pushed an early, read-only version of the libguestfs FUSE code here.
It's my first and only FUSE filesystem.  It seems to work well with
both command line tools and graphical programs like Nautilus.  If
anyone has any comments on the code, that would be helpful:

http://git.et.redhat.com/?p=libguestfs.git;a=tree;f=fuse;hb=HEAD

Rich.


--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
fuse-devel mailing list
fuse-devel@...
https://lists.sourceforge.net/lists/listinfo/fuse-devel