
## Online.net account

On your Online.net account via [console.online.net](https://console.online.net/), go to:

- **“Server”** dropdown menu, then **“Servers list”**.
- Click on **“Manage”** on the right.
- **“Rescue”** button.
- As operating system select **“Ubuntu 20.04 amd64”**.
- Then start the operation, you server will boot on the Ubuntu live CD.

## Dedibox server

- Log in the rescue live system through ssh with the provided ip/credentials.
- The provided Ubuntu version is outdated (Ubuntu Saucy), so the apt repositories have to be modified before Qemu could be installed:

```
$ sudo -s
# apt update
# apt install qemu-kvm
```

Fetch a FreeBSD Installer ISO image:

```shell
# cd /tmp
# wget https://download.freebsd.org/releases/ISO-IMAGES/14.2/FreeBSD-14.2-RELEASE-amd64-disc1.iso
# wget https://download.freebsd.org/releases/ISO-IMAGES/14.2/CHECKSUM.SHA256-FreeBSD-14.2-RELEASE-amd64
# sha256sum FreeBSD-14.2-RELEASE-amd64-disc1.iso
# cat CHECKSUM.SHA256-FreeBSD-14.2-RELEASE-amd64 | grep FreeBSD-14.2-RELEASE-amd64-disc1.iso
```

For the post-install network configuration step _(`/etc/rc.conf`)_, try to figure out now what is your NIC model ([Handbook: Locating the correct driver](https://www.freebsd.org/doc/handbook/config-network-setup.html))

```
# lspci -v | grep Ethernet
00:14.0 Ethernet controller: Intel Corporation Ethernet Connection I354 2.5 GbE Backplane (rev 03)
	Subsystem: Intel Corporation Ethernet Connection I354 2.5 GbE Backplane
```

Start the FreeBSD installer through Qemu, attached to the physical server disk, with the curses UI:

```
# qemu-system-x86_64 -hda /dev/sda -cdrom FreeBSD-14.2-RELEASE-amd64-disc1.iso -net none -curses -boot d
```

Then
- On the **partitioning** dialog, choose **Auto (ZFS) Guided Root-on-ZFS**
- Follow installer up to the end, and when asked for **Manual Configuration**, choose **yes** to open a shell before exiting the installer.
- Configure the network, modify the files accordingly to your network setup/nic driver:

```
# /etc/rc.conf
ifconfig_igb0="DHCP" 
```

## See also

* https://loicpefferkorn.net/2015/10/freebsd-10.2-release-on-a-dedibox-xc-server-online.net-with-root-on-zfs/
* https://wiki.qemu.org/Documentation/Networking