Skip to content

Instantly share code, notes, and snippets.

@gtx28
Last active April 30, 2024 18:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • 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 you will need to add the appropriate steps for your hw setup)
***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 11 bullseye 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 "2023-05-03-raspios-bullseye-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 -`
open tmux session (this is not mandatory if you know you have a good network connection to the target)
`tmux new -s pimoxinstall`
install some tools to make life easier
`apt install -y neofetch tmux`
run updates
`apt update && apt upgrade -y`
***Setup your sources file for upgrade to debian 12 bookworm7
check again that your packages are all up to date
`apt update`
make a backup of your sources file
`cp /etc/apt/sources.list /etc/apt/sources.list.bck`
update your sources files to bookworm
`sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list`
`sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list.d/raspi.list`
`sed -i -e 's/non-free/non-free-firmware/g' /etc/apt/sources.list`
update and upgrade system to bookworm
`apt update && apt dist-upgrade -y`
I selected to allow the tool to restart services without asking me
I also selected "Y" for each request to use the package maintainers file ver YMMV
this part of the process took me the longest so be patient
`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`
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
verify everything is current no other updates needed
`apt update`
**Install dark theme**:
`bash <(curl -s https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh ) install`
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
login to web interface
setup your normal config as per your own spec (add bridge0 users groups roles storage etc)
------
After PVE install
`sMMMMMMMd: :mMMMMMMMs` OS: Proxmox VE 8.0.3-1 aarch64
`-/+oo+/:`.yMMMMMMMh- -hMMMMMMMy.`:/+oo+/-` Host: Raspberry Pi 4 Model B Rev 1.4
`:oooooooo/`-hMMMMMMMyyMMMMMMMh-`/oooooooo:` Kernel: 6.1.21-v8+
`/oooooooo:`:mMMMMMMMMMMMMm:`:oooooooo/` Uptime: 2 mins
./ooooooo+- +NMMMMMMMMN+ -+ooooooo/. Packages: 1140 (dpkg)
.+ooooooo+-`oNMMMMNo`-+ooooooo+. Shell: bash 5.2.15
-+ooooooo/.`sMMs`./ooooooo+- Terminal: /dev/pts/1
:oooooooo/`..`/oooooooo: CPU: BCM2835 (4) @ 1.800GHz
:oooooooo/`..`/oooooooo: Memory: 1004MiB / 7812MiB
-+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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment