Bhyve compiling NanoBSD

Son of Beastie

I want to build FreeBSD NanoBSD images in a Bhyve VM.
Can anyone speak to the speed hit I will take when compiling under a FreeBSD-CURRENT VM using FreeBSD 11.1 Bhyve host.

What is disk throughput like in a VM? Much speed loss from host disk thoughput?

I currently use a separate box for FreeBSD -CURRENT and want to eliminate that method.

Most bhyve tutorials use an img file to bootup the VM. Can I do this like a jail where the host can work on raw files inside the Jail.
I really don't want to work inside an image file but prefer a typical install file structure just like a Jail.

Member

This isn't quite a fair comparison: the block device in bhyve is backed by a caching filesystem, so there is a lot more opportunity for readahead. Imagine an nvme device with multiple GB of intelligent read/write cache

Try diskinfo on a zvol on the nvme device on the host: that will most likely be faster than bhyve.