Neat! What I am hoping to eventually do is the same thing I am doing on
my Red Hat KVM guests with my Solaris 10 ZFS KVM guests. Mount it via
libguestfs and set up the interfaces, DNS and host name so it will boot
up and be usable from a virt-clone of a template.
Looks like it will be possible. Just need to mount the ZFS root
filesystem. I am working on compiling libguestfs but I'm stuck at the
moment with febootstrap giving checksum errors on all the Fedora
mirrors. probably something minor...I hope :P
Thanks so much for helping out. This is really cool stuff.
Richard W.M. Jones wrote:
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.