Hi,
I am setting up a very simple FreeBSD hypervisor in my homelab mainly for learning purpose as I am new to FreeBSD, Bhyve and ZFS.
- The host is pretty small: 12Gb of RAM and 500Gb of disk
- I opted for a very simple setup for now: ZFS with one disk and one zpool (zroot).
- I use vm-bhyve
- Simplicity is the goal for now, over performance
- I do care a bit about security
As I would prefer keeping the hypervisor/host very simple, so I plan to setup a first Freebsd guest running the NFS server and Syncthing (to share with mobile clients).
My question is:
What would be the best way to access the underlying storage from the guest VM?
After some research my initial idea is I should:
- Create an encrypted zvol on the host
- Attach it to the guest vm as explained here https://github.com/churchers/vm-bhyve/wiki/Virtual-Disks#custom-zvol-disk
- Format it to UFS from the guest
My first idea is to use UFS from the guest VM because I do not immediately see the benefits of doing ZFS on a zvol... apart from:
- the benefits of using
- it forces me to do the backups from the hypervisor/host (but I already need to backup the VMs from the host)
Are there any flaws in my reasoning and design?
If yes please tell me how you would do it.
Many thanks
I am setting up a very simple FreeBSD hypervisor in my homelab mainly for learning purpose as I am new to FreeBSD, Bhyve and ZFS.
- The host is pretty small: 12Gb of RAM and 500Gb of disk
- I opted for a very simple setup for now: ZFS with one disk and one zpool (zroot).
- I use vm-bhyve
- Simplicity is the goal for now, over performance
- I do care a bit about security
As I would prefer keeping the hypervisor/host very simple, so I plan to setup a first Freebsd guest running the NFS server and Syncthing (to share with mobile clients).
My question is:
What would be the best way to access the underlying storage from the guest VM?
After some research my initial idea is I should:
- Create an encrypted zvol on the host
- Attach it to the guest vm as explained here https://github.com/churchers/vm-bhyve/wiki/Virtual-Disks#custom-zvol-disk
- Format it to UFS from the guest
gpart add -t freebsd-ufs -l data vtbd0My first idea is to use UFS from the guest VM because I do not immediately see the benefits of doing ZFS on a zvol... apart from:
- the benefits of using
zfs share- it forces me to do the backups from the hypervisor/host (but I already need to backup the VMs from the host)
Are there any flaws in my reasoning and design?
If yes please tell me how you would do it.
Many thanks