proc:bare_metal_server_provisioning
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| proc:bare_metal_server_provisioning [2026/07/21 14:54] – phil | proc:bare_metal_server_provisioning [2026/07/23 15:10] (current) – [18. (EXTRA) hugepage & swap configuration] phil | ||
|---|---|---|---|
| Line 181: | Line 181: | ||
| # Hostname | # Hostname | ||
| $ echo " | $ echo " | ||
| - | $ cat > /etc/hosts << | + | $ sed -i " |
| - | 127.0.0.1 localhost | + | |
| - | 127.0.1.1 | + | |
| - | ::1 | + | |
| - | ff02:: | + | |
| - | ff02:: | + | |
| - | EOF | + | |
| - | |||
| # Locales / timezone | # Locales / timezone | ||
| $ apt update && apt install -y locales | $ apt update && apt install -y locales | ||
| Line 345: | 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 > / | $ cat > / | ||
| - | DROPBEAR_OPTIONS=" | + | DROPBEAR_OPTIONS=" |
| EOF | EOF | ||
| Line 395: | Line 388: | ||
| <code bash> | <code bash> | ||
| # Wait dropbear to be up | # Wait dropbear to be up | ||
| - | nc -zv xx.xx.xx.xx | + | nc -zv xx.xx.xx.xx |
| # remote unlocking oneliner: | # remote unlocking oneliner: | ||
| - | pass show luks/ | + | pass show luks/ |
| </ | </ | ||
| 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 / | ||
| + | sudo swapon / | ||
| + | echo "/ | ||
| + | </ | ||
| + | |||
| + | If you want to configure hugepage for a qemu hypervisor: | ||
| + | |||
| + | <code bash> | ||
| + | sudo tee / | ||
| + | vm.nr_hugepages = 13312 # EXAMPLE FOR 26GB/32GB | ||
| + | EOF | ||
| + | </ | ||
| + | |||
| + | LVM Thin initialization to store VM storage | ||
| + | |||
| + | <code bash> | ||
| + | sudo lvcreate --type thin-pool -L 250G -n thin vg0 | ||
| + | </ | ||
proc/bare_metal_server_provisioning.1784645682.txt.gz · Last modified: by phil
