Hello everyone
Over the course of the last week I tried to install Veeam Endpoint Backup (or rather Veeam Agent for Windows) on a Windows Server 2016 bhyve VM. I let vm-bhyve auto-create a disk for the VM. After installing Windows and installing Veeam Agent for Windows, the SQL Service and the Veeam Endpoint Service would not start.
I went back and forth with the Veeam support to solve this problem, until we finally found out the SQL service was not starting because the sector size of the disk file was set to the ZFS default (which is 128k on FreeBSD). The MS SQL LocalDB service needs either 512B or 4K sectors to be able to start successfully.
The solution is either a) to set the recordsize of the dataset to 4k before creating the VM or b) to create a zvol with a specific block size like so:
and then configure the VM settings like so:
...
disk0_name="/dev/zvol/vmpool/vm/veeam/disk0"
disk0_type="ahci-hd"
disk0_dev="custom"
...
Maybe this helps someone out there trying to get Veeam Agent for Windows on a bhyve VM running.
Have a nice weekend
Philipp
Over the course of the last week I tried to install Veeam Endpoint Backup (or rather Veeam Agent for Windows) on a Windows Server 2016 bhyve VM. I let vm-bhyve auto-create a disk for the VM. After installing Windows and installing Veeam Agent for Windows, the SQL Service and the Veeam Endpoint Service would not start.
I went back and forth with the Veeam support to solve this problem, until we finally found out the SQL service was not starting because the sector size of the disk file was set to the ZFS default (which is 128k on FreeBSD). The MS SQL LocalDB service needs either 512B or 4K sectors to be able to start successfully.
The solution is either a) to set the recordsize of the dataset to 4k before creating the VM or b) to create a zvol with a specific block size like so:
zfs create -V 36G [B]-b 4k[/B] -o volmode=dev vmpool/vm/veeam/disk0
and then configure the VM settings like so:
...
disk0_name="/dev/zvol/vmpool/vm/veeam/disk0"
disk0_type="ahci-hd"
disk0_dev="custom"
...
Maybe this helps someone out there trying to get Veeam Agent for Windows on a bhyve VM running.
Have a nice weekend
Philipp