One Line Dedicated Server Install With Zero Inconvenience To The Provider!
Dedicated server Providers often don't support fully automagic custom Linux or BSD installs. These Providers sometimes require an upload of a BSD or any custom install ISO, even a Linux ISO, to be done in advance by the Providers' Support Team. Other Providers require advance appointments for time limited access to virtual consoles. Moreover, even for dedicated server Providers who are enthusiastic about custom ISOs, the install systems provided for dedicated servers often are older Java based applications which are not always the easiest for clueless Low Enders to use.
So I've been looking around for an easy install method which would not inconvenience my Providers. I've tried several variations of installing from a virtual machine set up on the server. Setting up the virtual machines is fun! But it's time consuming and difficult.
I've also tried several variations of scripts intended to automate installs. These scripts are great, and they sometimes even work well.
For a while I've been thinking about a simpler approach which I first saw last year. The idea is simple. From the Provider's rescue system, or from any easy autoinstall, just write an image directly to one of the dedicated server's hard drives, and then reboot.
For FreeBSD, Martin Matuška has this idea well described on a blog page and on Github.
I think I spent a lot of time since last year on more complicated install methods because Matuška's idea seemed impossibly simple, fast, and easy. Just download and verify Matuška's image, then it's only a one line dd
command to write the image to a disk, and reboot.
I finally tried Matuška's idea today. His image seems to work! At least the server booted, and I could log in. That's more than I can say for a lot of other installs I have tried.
Right now the installed system is RAM based, like Alpine Linux. As expected, like Alpine, memory based FreeBSD seems very fast!
I haven't yet tried Matuška's recommended zfsinstall
tool. I haven't yet tried making my own image.
Although Matuška used FreeBSD, I suppose his install method might work with any Linux or with another BSD. No need to ask the Provider to upload an ISO! No need to make an appointment for a console!
I hope everyone gets the servers they want!
Comments
Interesting. Using this approach you could clone a vanilla OS and dd it in the rescue system, giving you any OS you'd like (if BSD ain't your thang). I'll have to give this a whirl.
Yes, exactly!
I hope everyone gets the servers they want!
Here is an article discussing building of a custom mfsbsd and also the steps to install FreeBSD to a hard drive after having booted the RAM based mfsbsd: Remote Installation of the FreeBSD Operating System Without a Remote Console.
I hope everyone gets the servers they want!
Martin Matuška has a nice paper (pdf) describing mfsbsd at https://people.freebsd.org/~mm/mfsbsd/mfsbsd.pdf .
I hope everyone gets the servers they want!
Seems like the link that I previously posted might be wrong.
Please try https://docs.freebsd.org/en/articles/remote-install/
I hope everyone gets the servers they want!