Not sure if this possible, but I have a KVM guest running Solaris 10 with the OS on ZFS and I am trying to use libguestfs/guestfish/guestmount to get to the VM. I am running Red Hat EL 5.4 with EPEL rpms as required. The VM is on a LV and it boots fine, but I can't seem to get the syntax correct to get libguestfs to deal with it. Guestmount seemed like the best option because it supports FUSE modules. I have fuse installed and zfs-fuse and I can create ZFS filesystems on the physical host machine. Just really not sure how to make libguestfs deal with it. I have tried mounting the pool and the underlying virtual disk device with no success. # guestmount -o modules=zfs -a /dev/kvmVG00/sol10u6 -m newpool/ROOT/s10up-08 --ro /mnt libguestfs: error: mount_options: mount_options_stub: newpool/ROOT/s10up-08: expecting a device name # guestmount -o modules=zfs -a /dev/kvmVG00/sol10u6 -m /dev/dsk/c0d0s0 --ro /mnt libguestfs: error: mount_options: mount_options_stub: /dev/dsk/c0d0s0: No such file or directory # guestmount -o modules=zfs -a /dev/kvmVG00/sol10u6 -m /dev/dsk/c0t0d0s0 --ro /mnt libguestfs: error: mount_options: mount_options_stub: /dev/dsk/c0t0d0s0: No such file or directory # rpm -qa | grep fuse zfs-fuse-0.6.0-6.el5 fuse-2.7.4-8.el5 fuse-libs-2.7.4-8.el5 # rpm -qa | grep guest libguestfs-1.0.85-1.el5.9 guestfish-1.0.85-1.el5.9 perl-libguestfs-1.0.85-1.el5.9 libguestfs-tools-1.0.85-1.el5.9 libguestfs-mount-1.0.85-1.el5.9 libguestfs-devel-1.0.85-1.el5.9 Any help MUCH appreciated. John L
Richard W.M. Jones
2010-Apr-20 16:50 UTC
[Libguestfs] libguestfs mounting solaris 10 ZFS guest
On Tue, Apr 20, 2010 at 10:23:07AM -0400, John Larson wrote:> Not sure if this possible, but I have a KVM guest running Solaris 10 > with the OS on ZFS and I am trying to use > libguestfs/guestfish/guestmount to get to the VM. I am running Red Hat > EL 5.4 with EPEL rpms as required.It has to be said that you are well out on your own on this. We have never tried to access ZFS partitions. In fact, I wasn't even aware that Fedora had support for this, but I notice now it does have support (via a FUSE module). Anyway, we do support FUSE modules to access filesystems. eg. That is exactly how our current NTFS support works (via ntfs-3g). You'd need to rebuild libguestfs, particularly the appliance, adding the ZFS module (zfs-fuse) to appliance/packagelist.in. I don't know if it would just work after that -- mostly likely it would just work. But you might also have to make some small changes to the daemon. If you want to post a small ZFS test filesystem / VM, I'll see if I can get it to work. You'll probably want to look at the architecture diagram, since from the rest of your email it seemed you were a bit confused about how libguestfs works: libguestfs.org/guestfs.3.html#architecture And don't bother starting off with guestmount. Use guestfish to try to get a first pass working. Rich. -- Richard Jones, Virtualization Group, Red Hat people.redhat.com/~rjones Read my programming blog: rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora