Solved RISC-V / qemu / ZFS

Hello!

I have installed an instance of RISC-V FreeBSD on emulators/qemu. Everything seems to work, but I would like to use ZFS dataset as a system disks. Do not find anything from manual about that.
Is it possible? Advice appreciated...

My startup line looks like this at the moment:

Code:
qemu-system-riscv64 -machine virt -smp 3 -m 2048 -nographic \
    -bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf \
    -kernel /usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin \
    -drive file=/home/ott/riscv/riscv64.system,format=raw,id=hd0,if=virtio \
    -netdev tap,ifname=tap0,script=no,id=net0 -device virtio-net-device,netdev=net0

There is a file with ZFS where the system is installed. I would like to use a separate dataset instead.
 
but I would like to use ZFS dataset as a system disks
You mean use ZFS on host to provide disks to guest, i.e. zvols? If so you could use raw disks, e.g. zfs create -s -V 10G rpool/vmdisk00 and use /dev/zvol/rpool/vmdisk00 disk.
But I'm not sure if that's your question.
 
Back
Top