Last active
January 14, 2025 13:32
-
-
Save gtx28/7a6ba9a80751cac4136c3743bb701dd8 to your computer and use it in GitHub Desktop.
PVE8-ARM fresh install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
***Pi-Mox8 setup on raspberry pi 4b & cm4 | |
***Raspberry PI OS setup | |
***Install raspbian x64 lite on raspberry pi | |
pull the latest copy of Raspberry Pi Imager, from here https://www.raspberrypi.com/software/ and Raspberry PI OS x64 lite based on debian 12 bookworm from here: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit | |
open imager, click choose os, scroll to the bottom and select custom. open the image "2024-11-19-raspios-bookworm-arm64-lite.img.xz" | |
select storage and choose your usb device | |
click gear icon and add hostname, enable ssh, set username and pw etc. | |
write to usb/sd card then install in raspberry pi and boot system | |
once the system is up ssh into your new system | |
set root pw | |
`sudo passwd root` | |
login as root | |
`sudo su -` | |
install some tools to make life easier | |
`apt install -y neofetch tmux chrony ifupdown2` | |
open tmux session (this is not mandatory if you know you have a good network connection to the target) | |
`tmux new -s pimoxinstall` | |
run updates | |
`apt update && apt upgrade -y` | |
reboot now | |
login again as root | |
***Setup for proxmox8-arm64 | |
Add Key for proxmox-arm8 mirror | |
`curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg` | |
create pveport.list file and populate with mirror info | |
`echo "deb https://global.mirrors.apqa.cn/proxmox/debian/pve bookworm port">/etc/apt/sources.list.d/pveport.list` | |
`apt update && apt full-upgrade` | |
add your ip and hostname to the /etc/hosts file | |
`nano /etc/hosts` | |
comment out the 127.0.1.1 address if thats in your hosts file | |
***Install PVE packages | |
`apt install -y proxmox-ve postfix open-iscsi` | |
for postfix config I selected "Local only" > then confirmed the same hostname entered earlier | |
reboot now | |
login again as root after reboot | |
verify everything is current no other updates needed | |
`apt update` | |
Disable popup about subscription: | |
open ssh session to your system | |
`sed -Ezi.bak "s/(Ext.Msg.show\\(\\{\\s+title: gettext\\('No valid sub)/void\\(\\{ \\/\\/\\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service` | |
increase swap space: | |
`nano /etc/dphys-swapfile` | |
increase the swap file space to 1gb or 1024 - "CONF\_SWAPSIZE=1024" - save the file then reboot the system | |
Fix memory stats for containers: | |
please modify cmdline.txt like | |
`nano /boot/firmware/cmdline.txt` | |
put the following parameters to the end of the line | |
`cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1` | |
login to web interface | |
open shell or ssh into system | |
make sure your timezone is set | |
timedatectl | |
make sure chrony is setup correctly | |
chronyc sources | |
config for chrony found @ /etc/chrony/chrony.conf | |
setup your normal config as per your own spec (add bridge0 users groups roles storage etc) | |
------ | |
After PVE install | |
.://:` `://:. | |
`hMMMMMMd/ /dMMMMMMh` ----------------- | |
`sMMMMMMMd: :mMMMMMMMs` OS: Proxmox VE 8.3.2+port aarch64 | |
`-/+oo+/:`.yMMMMMMMh- -hMMMMMMMy.`:/+oo+/-` Host: Raspberry Pi Compute Module 4 Rev 1.1 | |
`:oooooooo/`-hMMMMMMMyyMMMMMMMh-`/oooooooo:` Kernel: 6.6.62+rpt-rpi-v8 | |
`/oooooooo:`:mMMMMMMMMMMMMm:`:oooooooo/` Uptime: 4 mins | |
./ooooooo+- +NMMMMMMMMN+ -+ooooooo/. Packages: 1141 (dpkg) | |
.+ooooooo+-`oNMMMMNo`-+ooooooo+. Shell: bash 5.2.15 | |
-+ooooooo/.`sMMs`./ooooooo+- Terminal: /dev/pts/1 | |
:oooooooo/`..`/oooooooo: CPU: (4) @ 1.500GHz | |
:oooooooo/`..`/oooooooo: Memory: 1123MiB / 7809MiB | |
-+ooooooo/.`sMMs`./ooooooo+- | |
.+ooooooo+-`oNMMMMNo`-+ooooooo+. | |
./ooooooo+- +NMMMMMMMMN+ -+ooooooo/. | |
`/oooooooo:`:mMMMMMMMMMMMMm:`:oooooooo/` | |
`:oooooooo/`-hMMMMMMMyyMMMMMMMh-`/oooooooo:` | |
`-/+oo+/:`.yMMMMMMMh- -hMMMMMMMy.`:/+oo+/-` | |
`sMMMMMMMm: :dMMMMMMMs` | |
`hMMMMMMd/ /dMMMMMMh` | |
`://:` `://:` |
Edit: Nevermind, the issue is related to something else which I have yet to discover
Hey, this is missing an important step, which is the installation of ifupdown, otherwise the interface where Proxmox is listening doesn't come up when you reboot
Updated this and made sure it works with the latest raspbian lite on Pi 4b and CM4. Should install PVE 8.3.2 as of Jan 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@knight-research, I found this fix on the github.com/jiangcuo page buried in the issues section:
please modify cmdline.txt like
nano /boot/cmdline.txt
put the following parameters to the end of the line
cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1
Run this then reboot your proxmox node, and it will show the memory for the containers properly.