Raspberry Pi 4 8GB¶
I use my Raspberry Pi 4 8GB as another Proxmox server.
TL;DR¶
(
sudo su root && \
passwd && \
echo "<ip address> <hostname>" | tee -a /etc/hosts && \
hostname --ip-address && \
echo 'deb [arch=arm64] https://mirrors.apqa.cn/proxmox/debian/pve bookworm port'>/etc/apt/sources.list.d/pveport.list && \
curl -L https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg && \
apt update && \
apt full-upgrade && \
apt install ifupdown2 && \
apt install proxmox-ve postfix open-iscsi && \
sed -i 's/^#?\s*PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
}
Config¶
Raspberry Pi 4 boot from usb¶
Sometimes, the USB adapter is slow and disconnections. The device quirks may need to be set.
Get vendorId
and deviceId
[1.301989] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[1.332965] usb 2-1: New USB device found, idVendor=152d, idProduct=1561, bcdDevice= 1.00
[1.332999] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[1.333026] usb 2-1: Product: ASM105x
[1.333048] usb 2-1: Manufacturer: ASMT
[1.333071] usb 2-1: SerialNumber: 123456789B79F
Verify the vendorId
and deviceId
Combine the vendorId
and deviceId
to get make up the quirks
.
Add the quirks to /boot/firmware/cmdline.txt
/boot/firmware/config.txt
Check
Proxmox¶
Setup LVM first
Setup Raspberry Pi OS.¶
Download image
Write image to SD card
Create Username & Password¶
/boot/firmware/userconf.txt
Enable SSH¶
Kernel Page Size¶
You should use the Kernel with 4K pagesize
CT Notes¶
Is the container summary memory usage and swap usage always shows 0
?
/boot/firmware/cmdline.txt
Unmount SD card, plug into the Raspberry Pi and boot
Proxmox Installation¶
Tip
Alternatively, the ISO may be downloaded and installed as a removable media.
Log into the Raspberry Pi using SSH.
Add an /etc/hosts
entry for your IP address.
Please make sure that your machine's hostname is resolvable via /etc/hosts
, i.e. you need an entry in /etc/hosts
which assigns an address to its hostname.
Make sure that you have configured one of the following addresses in /etc/hosts
for your hostname:
1 IPv4
or 1 IPv6
or 1 IPv4
and 1 IPv6
Note
This also means removing the address 127.0.1.1
that might be present as default.
For instance, if your IP address is 192.168.15.77
, and your hostname prox4m1
, then your /etc/hosts
file could look like:
/etc/hosts
Install Proxmox VE¶
Add the Proxmox VE repository¶
/etc/apt/sources.list.d/pveport.list
Add the Proxmox VE repository key
Configure packages which require user input on installation according to your needs (e.g. Samba asking about WINS/DHCP support). If you have a mail server in your network, you should configure postfix as a satellite system, your existing mail server will then be the relay host which will route the emails sent by the Proxmox server to their final recipient.
If you don't know what to enter here, choose local only and leave the system name as is.
Reenable SSH¶
/etc/ssh/sshd_config
Finally, you can connect to the admin web interface (https://youripaddress:8006
).
Network¶
Missing vmbr0
¶
Warning
This should be done before reboot, else you won't be able to connect to the network!
Create vmbr0
network interface in GUI
/etc/network/interfaces
Where eth0
is the current existing network interface
Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Version' value from '' to '10.0' Error¶
Proxmox VE Helper-Scripts¶
Swap¶
See Raspberry Pi 5 16GB.
Argon Fan Hat¶
Config¶
- Without the
ARGON FAN HAT
script the FAN will run constantly at 50%FAN SPEED
- Upon installation of the script,
DEFAULT SETTINGS
of theARGON FAN HAT
are as follows:
CPU TEMP | FAN SPEED / POWER |
---|---|
55ยฐC | 10 % |
60ยฐC | 55 % |
65ยฐC | 100 % |
Power Buttons¶
ARGON FAN HAT | ACTION | FUNCTION |
---|---|---|
OFF (FROM SOFT SHUTDOWN) | Short Press | Turn ON |
ON | Short Press | Nothing |
ON | Long Press (> 3 Secs) | Initiate Soft Shutdown (NO POWER CUT) |
ON | Double Tap | Reboot |