bhyve Two hurdles met running a Linux image exported from VBox .dmg in jailed Bhyve

A (thin) jailed Bhyve runs a number of Linux VMs. The storage for each VM is allocated in ZFS Volumes. I ran into the following issues while getting this latest one running:

vm-bhyve: there was a persistent failure to start the VM reported as fatal; loader returned error 1. After too much time I determined that changing the name of the VM allowed it to "get further" - until after an error, it, too, was failing persistently. Eventually I discovered that the host system had orphaned entries in /dev/vmm/. Running bhyvectl --destroy on the host cleared those and restored sanity.

The ZFS Volume was created with default values. On this occasion that resulted in a volblocksize of 16k. Bhyve wouldn't start using that volume. Previously created Volumes had volblocksize of 8k. After researching it seemed the best option might be 4k, so the Volume was re-created using 4k and that resulted in a running VM. And there was much rejoicing.
 
Back
Top