Skip to content

Instantly share code, notes, and snippets.

@gtx28
Last active January 14, 2025 13:32
Show Gist options
  • Save gtx28/7a6ba9a80751cac4136c3743bb701dd8 to your computer and use it in GitHub Desktop.
Save gtx28/7a6ba9a80751cac4136c3743bb701dd8 to your computer and use it in GitHub Desktop.
PVE8-ARM fresh install
***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`
`://:` `://:`
@knight-research
Copy link

Amazing thank you.
Maybe you can enable "issues"? Anybody has a problem with display of the memory usage (summary tab) of a lxc? It never shows any data. Happens with new and resored containers. A time ago i tried on a different server an upgrade from pimox7 to 8 there it works.

@gtx28
Copy link
Author

gtx28 commented Sep 23, 2023

@knight-research - I looked around and dont see any way to enable issues for a "gist" Could be wrong but it sounds like your issue isnt so much with the upgrade/install process as it is with the product functioning.

You might want to post your question here:
https://github.com/jiangcuo/Proxmox-Arm64

or here:
https://github.com/pimox/pimox7

@gtx28
Copy link
Author

gtx28 commented Feb 8, 2024

@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.

@obvionaoe
Copy link

obvionaoe commented Apr 27, 2024

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

@gtx28
Copy link
Author

gtx28 commented Jan 9, 2025

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