[Libguestfs] libguestfs mounting solaris 10 ZFS guest

Richard W.M. Jones rjones at redhat.com
Tue Apr 20 20:38:49 UTC 2010


FWIW I added zfs-fuse to the package list and rebuilt libguestfs.  I
was then able to run virt-rescue and create pools, copy files on to
them and so on:

  ><rescue> zpool create test /dev/vda1
  ><rescue> cp -r bin test/
  ><rescue> ls -l test/
  total 4
  dr-xr-xr-x 2 root root 92 Apr 20 21:24 bin
  ><rescue> cp -r lib* usr test/
  ><rescue> ls -l test/
  total 14
  dr-xr-xr-x 2 root root  92 Apr 20 21:24 bin
  dr-xr-xr-x 6 root root   6 Apr 20 21:25 lib
  dr-xr-xr-x 7 root root 187 Apr 20 21:25 lib64
  drwxr-xr-x 9 root root   9 Apr 20 21:25 usr
  ><rescue> zpool status
    pool: test
   state: ONLINE
   scrub: none requested
  config:
  
  	NAME        STATE     READ WRITE CKSUM
  	test        ONLINE       0     0     0
  	  vda1      ONLINE       0     0     0
  
  errors: No known data errors
  ><rescue> zpool list 
  NAME   SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
  test  2.98G  67.9M  2.92G     2%  ONLINE  -
  ><rescue> sync
  ><rescue> exit

These are just first steps.  It looks like to do anything useful with
ZFS we would have to bind 'zpool', at least the basic commands.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list