bhyve with Linux guest, how to safely handle updates?

Sergey Manucharian sm at ara-ler.com
Wed Jan 27 02:13:52 UTC 2016


Excerpts from dweimer's message from Tue 26-Jan-16 19:07:
> 
> Is there anything that normally needs to be done after a Linux kernel 
> update to refresh the grub2-bhyve setup?

The kernel update should not have any effect since grub-bhyve uses the
virtual disk mapping file, which should point to your linux drive.

I'm using the following command:

$ sudo grub-bhyve -m /path/to/device.map -r hd0,msdos1 -M 1024M debian

where "device.map" contains the following:

(hd0) /dev/zvol/zroot/linuxdisk1
(cd0) /stuff/vm/bhyve/debian/debian-testing-amd64-2015-11-30.iso

"hd0" can be a real disk device, e.g. /dev/sda, or an image file (in
my case it's a ZFS volume).

How do you use that VM in VBox? If it's a .vdi file, bhyve will not be
able to recognize it. You should use a raw HDD image file. To make it
compatible with VBox you can create a .vmdk file pointing to that raw
image.

--
Sergey



More information about the freebsd-virtualization mailing list