I've just googled for a howto and haven't had much luck finding anything:
macOS
ZFS installed
VirtualBox installed
create a VM that uses a ZFS file.
I'm using mkfile to create a 20g file,
- Code: Select all
mkfile -n 21g /Users/shared/VirtualMachines
then the zpool command pointing to the newly created file.
- Code: Select all
sudo zpool create -f -o ashift=13 -O checksum=edonr -O casesensitivity=insensitive -O atime=off -O normalization=formD VirtualMachines /Users/Shared/VirtualMachines
This all worked as expected and ZFS mounted the pool on the desktop, which is where I start to question what I'm doing.
I thought the zvol should never get mounted as I want it to be available for VirtualBox VMs and not be exposed to macOS.
I then found using VirtualBox's command line tools to create a vmdk wrapper around the zvol.
- Code: Select all
VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/VirtualMachines -rawdisk /Volumes/VirtualMachines
which worked, but when I create a new VM and navigate to /Users/Shared/VirtualMachines, I get an error...
I know this is just as much to do with VirtualBox as it is with ZFS, but was wondering if anyone could point to a URL that has done this on macOS?
ta.