Skip to content

Instantly share code, notes, and snippets.

@obvionaoe
Forked from gtx28/pve8arm-fresh.txt
Created April 27, 2024 15:18
Show Gist options
  • Save obvionaoe/8ba75eea17cdbde409abbe2cfd7911ba to your computer and use it in GitHub Desktop.
Save obvionaoe/8ba75eea17cdbde409abbe2cfd7911ba 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`
`://:` `://:`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment