Dedicated Root Server
1. Intro
As we install more apps on our VPS, we need to add more resources to it (vCPU, RAM, Storage, etc), and its price starts to grow. If the price starts to approach 40-50 EUR, then it is better to get a Dedicated Root Server and to migrate all the apps there, because it provides more resources and better performance for a similar price.
A Dedicated Root Server is a real physical server that we manage ourselves, as opposed to a VPS, which is a virtual server. On a real server we can create virtual machines and containers, if needed.
2. Installation
First time that we access a dedicated root server, after purchasing it, we access it in a rescue mode, which is a temporary system running on our machine, so that we can install it or fix something.
We can use installimage to install Debian on it. This video shows how to do it.
The server has two disk drives: /dev/nvme0n1
and /dev/nvme1n1
. By
default the software RAID is enabled, with the option SWRAID 1
and
SWRAIDLEVEL 1
. With this configuration the disks work as a mirror of
each-other. This is a robust configuration, because if one of the
disks fails, the server will still continue to run. When the broken
disk is replaced, it will be mirrored automatically.
However we are going to disable the RAID by setting SWRAID 0
. As a
result, the operating system will be installed only on the first disk,
and the second one will be free. We will use it later as a storage for
the Incus containers.
This choice allows us to have more available disk space, but it also makes our system more vulnerable to disk failures. If one of the disks fails, the whole system is corrupted and everything needs to be reinstalled from scratch. For this reason, we will make sure to have proper backups of everything, so that we can restore easily in case of a disaster. We will also use scripts for installing different apps, so that the installation is repeatable and reinstallation does not take a long time.
I prefer to disable IPv6, by setting the option IPV4_ONLY yes
. It is
also possible to set the HOSTNAME
in the configuration file. After
these modifications, the configuration settings should look like this
(without the comment lines):
DRIVE1 /dev/nvme0n1
#DRIVE2 /dev/nvme1n1
SWRAID 0
HOSTNAME server1
IPV4_ONLY yes
USE_KERNEL_MODE_SETTING yes
PART /boot/efi esp 256M
PART swap swap 32G
PART /boot ext3 1024M
PART / ext4 all
IMAGE /root/.oldroot/nfs/install/../images/Debian-1201-bookworm-amd64-base.tar.gz
Once we save and close the configuration file (by pressing ESC),
installimage
will start the installation. After reboot, we can
access the server with the same password that we accessed the rescue
system.
On the new system we can find the files /installimage.conf
and
/installimage.debug
.