Skip to content

Instantly share code, notes, and snippets.

@gtx28
Last active June 13, 2024 19:26
Show Gist options
  • Save gtx28/059ac9a0c85e722225c6d5150d659dec to your computer and use it in GitHub Desktop.
Save gtx28/059ac9a0c85e722225c6d5150d659dec to your computer and use it in GitHub Desktop.
Pimox7 to PVE8 upgrade
***Pi-Mox setup on raspberry pi 4b (cm4 you will need add the appropriate steps for your hw setup)
***None of this is "Prod" ready so use at your own risk, your VM's/Containers are your own responsibility. You should already have adequate backups etc.
***Raspberry PI OS setup
Install raspbian x64 lite on raspberry pi
pull the latest copy of 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`
***Pimox7 Install
login as root
`sudo -s`
install some tools to make life easier
`apt install -y neofetch tmux`
run updates
`apt update && apt upgrade -y`
open tmux session (this is not mandatory if you know you have a good network connection to the target)
`tmux new -s pimoxinstall`
gather files for pimox7 install
`curl https://raw.githubusercontent.com/pimox/pimox7/master/RPiOS64-IA-Install.sh > RPiOS64-IA-Install.sh`
change file rights to add execute
`chmod +x RPiOS64-IA-Install.sh`
start the install
`./RPiOS64-IA-Install.sh`
Follow the prompts to complete the install
enter your hostname(I used the same hostname I set originally)
enter your ip/mask(I used the same ip/mask originally configured)
select y if the GW is correct
read thru changes and select "y" if correct
enter your new root pw(i used the same pw set earlier)
ctrl-B d to disconnect your tmux session if needed
to reconnect to your tmux session
`tmux a -t pimoxinstall`
dont be alarmed the system will reboot once complete
ssh back into the system and switch to the root user
***After install:
**Install dark theme**:
`bash <(curl -s https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh ) install`
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 webconsole with root user
***Setup your sources file for upgrade to debian 12 bookworm
ssh into system
login as root user
`sudo su -`
check again that your packages are all up to date
`apt update && apt dist-upgrade`
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`
update and upgrade system to bookworm
`apt update && apt dist-upgrade -y`
upgrade will stop @ meta packages for PVE
`reboot now`
log back into system
login as root user
rerun upgrade
`apt update && apt upgrade -y`
during install I used the package maintainers file ver every time YMMV
`reboot now`
login again as root
***Setup for proxmox8-arm64
keep in mind PVE8 has diff requirements than PVE7 you may need to make changes manually in order to make the upgrade work as you have no access to the pve7to8 command. For instance some of my roles on PVE 7.2 are not supported in PVE8. Remove things like those and recreate after upgrade etc.
Add Key for proxmox-arm8 mirror
`curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg`
modify pimox.list source file to comment out pimox7 and add Proxmox8-ARM
`nano /etc/apt/sources.list.d/pimox.list`
comment out
`#deb https://raw.githubusercontent.com/pimox/pimox7/master/ dev/`
add the following lines
`#Proxmox ARM PVE8 repo`
`deb https://global.mirrors.apqa.cn/proxmox/debian/pve bookworm port`
***Update and Install
`apt update && apt dist-upgrade -y`
for postfix I selected local only, and confirmed my hostname
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 etc.
this part of the process took me the longest so be patient, mine was 1.5hrs or more :D
`reboot now`
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`
login to the web interface
setup your normal config as per your own spec (add users groups roles storage etc)
--------
after raspbian install
,g$$$$$$$$$$$$$$$P. -----------------
,g$$P" """Y$$.". OS: Debian GNU/Linux 11 (bullseye) aarch64
,$$P' `$$$. Host: Raspberry Pi 4 Model B Rev 1.4
',$$P ,ggs. `$$b: Kernel: 6.1.21-v8+
`d$$' ,$P"' . $$$ Uptime: 32 mins
$$P d$' , $$P Packages: 599 (dpkg)
$$: $$. - ,d$$' Shell: bash 5.1.4
$$; Y$b._ _,d$P' CPU: BCM2835 (4) @ 1.800GHz
Y$$. `.`"Y$$$$P"' Memory: 142MiB / 7812MiB
`$$b "-.__
`Y$$
`Y$$.
`$$b.
`Y$$b.
`"Y$b._
`"""
after pimox7 install
`hMMMMMMd/ /dMMMMMMh` -----------------
`sMMMMMMMd: :mMMMMMMMs` OS: Proxmox VE 7.2-7 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: 4 mins
./ooooooo+- +NMMMMMMMMN+ -+ooooooo/. Packages: 860 (dpkg)
.+ooooooo+-`oNMMMMNo`-+ooooooo+. Shell: bash 5.1.4
-+ooooooo/.`sMMs`./ooooooo+- CPU: BCM2835 (4) @ 1.800GHz
:oooooooo/`..`/oooooooo: Memory: 904MiB / 7812MiB
:oooooooo/`..`/oooooooo:
-+ooooooo/.`sMMs`./ooooooo+-
.+ooooooo+-`oNMMMMNo`-+ooooooo+.
./ooooooo+- +NMMMMMMMMN+ -+ooooooo/.
`/oooooooo:`:mMMMMMMMMMMMMm:`:oooooooo/`
`:oooooooo/`-hMMMMMMMyyMMMMMMMh-`/oooooooo:`
`-/+oo+/:`.yMMMMMMMh- -hMMMMMMMy.`:/+oo+/-`
`sMMMMMMMm: :dMMMMMMMs`
`hMMMMMMd/ /dMMMMMMh`
`://:` `://:`
after pve8-arm install
`hMMMMMMd/ /dMMMMMMh` -----------------
`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: 52 mins
./ooooooo+- +NMMMMMMMMN+ -+ooooooo/. Packages: 1032 (dpkg)
.+ooooooo+-`oNMMMMNo`-+ooooooo+. Shell: bash 5.2.15
-+ooooooo/.`sMMs`./ooooooo+- CPU: BCM2835 (4) @ 1.800GHz
:oooooooo/`..`/oooooooo: Memory: 944MiB / 7812MiB
:oooooooo/`..`/oooooooo:
-+ooooooo/.`sMMs`./ooooooo+-
.+ooooooo+-`oNMMMMNo`-+ooooooo+.
./ooooooo+- +NMMMMMMMMN+ -+ooooooo/.
`/oooooooo:`:mMMMMMMMMMMMMm:`:oooooooo/`
`:oooooooo/`-hMMMMMMMyyMMMMMMMh-`/oooooooo:`
`-/+oo+/:`.yMMMMMMMh- -hMMMMMMMy.`:/+oo+/-`
`sMMMMMMMm: :dMMMMMMMs`
`hMMMMMMd/ /dMMMMMMh`
`://:` `://:`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment