56 lines
2.0 KiB
Markdown
56 lines
2.0 KiB
Markdown
|
||
## 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-bootonly.iso
|
||
# wget https://download.freebsd.org/releases/ISO-IMAGES/14.2/CHECKSUM.SHA256-FreeBSD-14.2-RELEASE-amd64
|
||
# sha256sum FreeBSD-14.2-RELEASE-amd64-bootonly.iso
|
||
d063e48b81b99005c8097e60377c23fb07e4116c5f0c0b41a5dc368fc4df6bf9 FreeBSD-14.2-RELEASE-amd64-bootonly.iso
|
||
# cat CHECKSUM.SHA256-FreeBSD-14.2-RELEASE-amd64 | grep FreeBSD-14.2-RELEASE-amd64-bootonly.iso
|
||
SHA256 (FreeBSD-14.2-RELEASE-amd64-bootonly.iso) = d063e48b81b99005c8097e60377c23fb07e4116c5f0c0b41a5dc368fc4df6bf9
|
||
```
|
||
|
||
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
|
||
```
|
||
|
||
Setup NAT
|
||
|
||
```
|
||
ip tuntap add tap0 mode tap
|
||
ip addr add 192.168.100.1/24 dev tap0
|
||
sysctl net.ipv4.ip_forward=1
|
||
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
|
||
```
|
||
|
||
|
||
|
||
Original:
|
||
|
||
https://loicpefferkorn.net/2015/10/freebsd-10.2-release-on-a-dedibox-xc-server-online.net-with-root-on-zfs/ |