If this is possible, the reste will be easy to achieve (shell console to setup my zpool, then follow installer for FreeBSD base installation)
I have read several community topics proposing a solution based on “Bring Your Own Image - byoi”, using a RAW or QCOW2.
I have tried this, but wan never able to boot past the FreeBSD bootloader.
Looking at the disk structure (from Debian rescue), it show that the RAW image was burned on 1 of the two disks. Imagining I could boot this OS (which I have not been able to), I do not see how I can the change the disk structure to a ZFS Pool with a MIRROR
NB : I do not have past experience with RAW and QCOW2 images. I understand that they are pre-installed images. Possibly, I am missing some knowledge on how to prepare them before sending them through “Bring Your Own Image - byoi” process.
Do you have a KVM on your server? I don't remember if KS-LE have them. If you do have one, you can try using an iPXE boot script (https://help.ovhcloud.com/csm/en-dedicated-servers-ipxe-scripts?id=kb_article_view&sysparm_article=KB0058505)
netboot.xyz provides an installer for FreeBSD: https://github.com/netbootxyz/netboot.xyz/blob/master/roles/netbootxyz/templates/menu/freebsd.ipxe.j2
You can load up their installer menu with the following script:
#!ipxe chain --autofree https://boot.netboot.xyz
If you don't have a KVM, it's probably a bit trickier. FreeBSD provides QCOW2/RAW images that you could use with BYOI but I don't think they use ZFS and BYOI, by design, only installs to the first disk of the server.
(Sorry for the delay. There was a bug on OVH Community and my account. I was unable to reply.)
Thanks for the hint on netboot.xyz. I tried that, but FreeBSD is currently not available. To be more explicit, the “BSD Installer” menu is deactivated, and seems to have been for some time now. I brought this up on the Netboot.xyz Discord.
First of all : I was using SoL to access my server. That was a poor choice, because it made me think FreeBSD was not booting (boot process hung at beginning). In fact, I think VT change is not compatible with SoL.
==> Now I use KVM (though navigator). That does the trick.
NB : KVM Java webstart is NOT compatible with Macs with Apple Silicon (M1, ...., M4). It seems OVH Support has no clue on this, and just tells me to try Windows or Linux. (Not a solution obviously)
I finally got the installation working through another approche :
Boot on OVH's rescue image (Linux)
Take advantage that now OpenZFS has been ported to Linux
Erase both disks
Format each disk with GPT partition table
On both disks : Add a EFI Partition and set it up correctly for FreeBSD
On both disks : Add a ZFS partition taking up the rest of the disk
Create a Zpool, using the two ZFS Partitions In my case a Mirror one.
Create ZFS volumes, ready for FreeBSD install.
Install manually FreeBSD on the partition
Do basic configuration (sshd_enable, zfs_enable, bootload.conf, etc...)
Reboot
Then I just had to finish installing my server.
Here is a source I used (I didn't exactly follow to the letter, but the main steps are there) : https://community.hetzner.com/tutorials/freebsd-openzfs-via-linux-rescue
Thanks for the feedback! I don't know much about BSDs in general and I didn't realize they provided tarballs with all the required files. Installing the OS from the rescue like that is really cool, it's basically what we do: https://blog.ovhcloud.com/how-do-we-deploy-cloud-ready-images-on-bare-metal-servers/ (the post is a bit old but the process hasn't changed a lot).
> I brought this up on the Netboot.xyz Discord.
Not sure what they replied but I created https://github.com/netbootxyz/netboot.xyz/issues/1610.
> First of all : I was using SoL to access my server
As a side note in case that helps, you can get the SOL console device name from the rescue's /proc/cmdline, you'll know whether it's ttyS0 or ttyS1 depending on your hardware.