User Tools

Site Tools


proc:bare_metal_server_provisioning

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
proc:bare_metal_server_provisioning [2026/07/22 07:23] – [9. Base configuration (in chroot)] philproc:bare_metal_server_provisioning [2026/07/23 15:10] (current) – [18. (EXTRA) hugepage & swap configuration] phil
Line 338: Line 338:
 $ apt install -y dropbear-initramfs busybox $ apt install -y dropbear-initramfs busybox
    
-# Config dropbear : port 2222 and force cryptroot-unlock command+# Config dropbear : port 4222 and force cryptroot-unlock command
 $ cat > /etc/dropbear/initramfs/dropbear.conf <<'EOF' $ cat > /etc/dropbear/initramfs/dropbear.conf <<'EOF'
-DROPBEAR_OPTIONS="-p 2222 -s -j -k -I 60 -c cryptroot-unlock"+DROPBEAR_OPTIONS="-p 4222 -s -j -k -I 60 -c cryptroot-unlock"
 EOF EOF
    
Line 388: Line 388:
 <code bash> <code bash>
 # Wait dropbear to be up # Wait dropbear to be up
-nc -zv xx.xx.xx.xx 2222+nc -zv xx.xx.xx.xx 4222
    
 # remote unlocking oneliner: # remote unlocking oneliner:
-pass show luks/schwartz | tr -d '\n' | ssh -p 2222 root@xx.xx.xx.xx cryptroot-unlock+pass show luks/schwartz | tr -d '\n' | ssh -p 4222 root@xx.xx.xx.xx cryptroot-unlock
 </code> </code>
    
 After few seconds, normal SSD become available. After few seconds, normal SSD become available.
 +
 +==== 18. (EXTRA) hugepage & swap & LVM thin configuration ====
 +
 +<code bash>
 +sudo lvcreate -L 4G -n swap vg0
 +sudo mkswap /dev/vg0/swap
 +sudo swapon /dev/vg0/swap
 +echo "/dev/vg0/swap none swap sw 0 0" | sudo tee -a /etc/fstab
 +</code>
 +
 +If you want to configure hugepage for a qemu hypervisor:
 +
 +<code bash>
 +sudo tee /etc/sysctl.d/10-hugepages.conf > /dev/null <<'EOF'
 +vm.nr_hugepages = 13312 # EXAMPLE FOR 26GB/32GB
 +EOF
 +</code>
 +
 +LVM Thin initialization to store VM storage
 +
 +<code bash>
 +sudo lvcreate --type thin-pool -L 250G -n thin vg0
 +</code>
proc/bare_metal_server_provisioning.1784705033.txt.gz · Last modified: by phil