aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJulien Dessaux2022-09-01 23:27:44 +0200
committerJulien Dessaux2022-09-01 23:34:28 +0200
commit4e32330612b28c284bdb695f412ad9f8c809fa87 (patch)
tree91b137972a16cd8c52a38d5ed5058da8b568dce5 /content
parentUpdated freebsd remote install documentation (diff)
downloadwww-4e32330612b28c284bdb695f412ad9f8c809fa87.tar.gz
www-4e32330612b28c284bdb695f412ad9f8c809fa87.tar.bz2
www-4e32330612b28c284bdb695f412ad9f8c809fa87.zip
Added a second option for freebsd remote installation
Diffstat (limited to 'content')
-rw-r--r--content/docs/freebsd/remote_install.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/content/docs/freebsd/remote_install.md b/content/docs/freebsd/remote_install.md
index 7412e9d..d3b47bc 100644
--- a/content/docs/freebsd/remote_install.md
+++ b/content/docs/freebsd/remote_install.md
@@ -9,7 +9,7 @@ tags:
This article explains a simple method to install FreeBSD when all you have is a linux and a remote console.
-## How to
+## Option 1: from an official pre-built vm image
First login as root on the linux you want to reinstall as Freebsd. Identify the disk device you want to install on, update the url below to the latest release you want and run :
```sh
@@ -28,3 +28,21 @@ When all is done, force a reboot of your machine and connect to the remote conso
- don't forget to configure ipv6 too
- configure your `resolv.conf`
- install python3 for your first ansible run
+
+## Option 2: from a custom vm image
+
+This method is necessary if you need control over the partitioning, like root on zfs.
+
+Execute a standard installation from a virtual machine on your workstation or another server, I use [qemu]({{< ref "qemu-bis.md" >}}) for that. With you have your image ready, boot the linux server you want to convert to freebsd and run something like:
+```sh
+ssh myth.adyxax.org "dd if=freebsd.raw" | dd of=/dev/sda
+```
+The goal of this command is to connect a server hosting your image and `dd` it to the hard drive the server you want to convert. Don't forget to `sync` your disks!
+
+Upon rebooting, you should have your freebsd running. Resize your drive with something like:
+```sh
+gpart show
+gpart recover da0
+gpart resize -i 3 da0
+zpool online -e zroot da0p3
+```