Solved vm init fails -- unable to locate mountpoint for ZFS dataset zroot/vm

looks like zroot/vm is not a dataset or not mounted
Code:
  56         VM_ZFS_DATASET="${vm_dir#*:}"
  57
  58         # update vm_dir
  59         # this makes sure it exists, confirms it's mounted & gets correct path in one go
  60         vm_dir=$(mount | grep "^${VM_ZFS_DATASET} " |cut -d' ' -f3)
  61         [ -z "${vm_dir}" ] && util::err "unable to locate mountpoint for ZFS dataset ${VM_ZFS_DATASET}"
 
People who don't have zroot dataset pointing to /zroot (like me) may need to set a mountpoint too, like this: # zfs create -o mountpoint=/vm zroot/vm or # zfs set mountpoint=/vm zroot/vm.
 
Back
Top