This has been written after my troubleshooting, so the only source I can mention are this one and this one. The debian template has been downloaded from this website
- Proxmox on Raspberry Pi 5
- Raspberry Pi 5
- An SD card
- A computer with internet connection
- An ethernet cable for the pi
Flash the original Raspberry Pi OS 64BIT Lite version on an SD card. Make sure to bind also the Wi-Fi network during the installation otherwise you may face network issues during the installation. Set the hostname and write it down somewhere. When the SD is ready plug it into the SD card reader, plug the ethernet cable, turn it on and connect to it. Connecting to it via HDMI and keyboard is fine; but if you can't, remember not to use the ethernet IP address but rather the Wi-Fi one.
sudo -s
apt update
apt upgrade -y
curl https://mirrors.apqa.cn/proxmox/debian/pveport.gpg -o /etc/apt/trusted.gpg.d/pveport.gpg
if this results in an error, remove thehttps
and try withhttp
echo "deb https://mirrors.apqa.cn/proxmox/debian/pve bookworm port" | tee -a /etc/apt/sources.list
here as wellapt update
apt dist-upgrade -y
nano /etc/network/interfaces
- inside comment everything and write:
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.100/24
gateway 192.168.0.1
bridge-ports eth0
bridge-stp off
bridge-fd 0
In the address write an ip for proxmox (choose one that is unused on your local network) and the netmask in the CIDR notation. In the gateway put the router ip
nano /etc/hosts
- delete everything inside and write:
127.0.0.1 localhost
192.168.1.100 raspberrypi
Change the second ip address with the one you've set in the /etc/network/interfaces
file and raspberrypi
with the hostname you've written down during the installation (or use hostname
to find it)
reboot now
sudo -s
apt install pve-qemu-kvm proxmox-ve -y
if you face any issue, try installingpve-qemu-kvm
first and thenproxmox-ve
reboot now
sudo -s
curl https://raw.githubusercontent.com/pimox/pimox7/master/RPiOS64-IA-Install.sh > installer.sh
chmod +x installer.sh
./installer.sh
- Now there will be asked some questions:
Enter new hostname e.g. RPi4-01-PVE :
enter the hostname (or a new one) you have written down during the installation, in my case:raspberrypi
Enter new static IP and NETMASK e.g. 192.168.0.100/24 :
enter the ip and the netmask set in the file/etc/network/interfaces
, in my case:192.168.1.100/24
Is 192.168.1.1 the correct gateway ? y / n :
check if the gateway shown matches the gateway set in the file/etc/network/interfaces
YOU ARE OKAY WITH THESE CHANGES ? YOUR DECLARATIONS ARE CORRECT ? CONTINUE ? y / n :
check if everything is fine, then replyy
- after this, set the root password and wait until it reboots
- after having logged in run
sudo -s
apt upgrade -y
reboot now
- now open the ip address specified in the
/etc/network/interfaces
file followed by the port 8006 in your browser on your computer. In my case:https://192.168.1.100:8006
- Proxmox has successfully been installed and is redy to use
- ssh into the pi. now use the root address, so in my case
ssh root@192.168.1.100
- install git using
apt install git
- clone this repo wherever you like using
git clone https://github.com/DanieleMassa/proxmoxOnRPI5
cd proxmoxOnRPI5
mv OS_PROXMOX_DEBIAN12.tar.xz /var/lib/vz/template/cache/
- Click on
Create CT
in the top right corner
- In the
Hostname
textbox write the container name, in my casedebian
- Set a password and confirm it, then click
Next
- In the
Template
select theOS_PROXMOX_DEBIAN12.tar.xz
file you've downloaded early, then clickNext
- Select the disk size and click
Next
- Select the number of cores and click
Next
- Choose how much RAM and SWAP your container should have and click
Next
- Leave the network and the DNS as it is and click
Next
. Then clickFinish
to create the container
- Click on
local (hostname)
in the left tab, then select ISO Images
- Look for an arm64 ISO image and copy the download link
- Then click on
Download from URL
, paste the link and click onQuery URL
, thenDownload
. I'll be using debian
- Now click on
Create VM
in the top right corner and enter a hostname. Then clickNext
- On the OS tab click on
Do not use any media
, then clickNext
- Leave the System tab as default and choose the disk size in the Disks tab, then click
Next
- Choose the number of core and click
Next
- Choose the RAM amount and click
Next
- Leave the Network tab as default and click on
Finish
to create the VM
- Once created, open the Hardware configuration and edit the
BIOS
, setting it toOVMF (UEFI)
- Now delete the existing
CD/DVD Drive
and create a new one, setting theBus
toSCSI
and leaving theDevice
as default. In theStorage
section selectlocal
and in theISO Image
section select the ISO you've downloaded previously
- Now create an
EFI Disk
setting theEFI Storage
tolocal
, leave the rest as default
- Now go to options and edit the
Boot Order
, placing the ISO on top of the list, then clickOK
- Now run the VM and install the system, after that go back on the
Boot Order
menu and place back the VM drive on top, after this you can use the vm
If you want to turn off all LEDs on the pi, follow these steps:
- Open the shell and type
nano /boot/firmware/config.txt
- Go to the end of the file, under the
[all]
section and add the following lines:
dtparam=pwr_led_trigger=default-on
dtparam=pwr_led_activelow=off
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off
dtparam=eth_led0=4
dtparam=eth_led1=4
- Save and reboot
It may happen that you fill a container with data, then you empty it, and you may notice that on the home Summary page of the node the disk usage hasn't been updated. Here's the solution:
- Open the shell
- run
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/fstrim.sh)"
(source)
- Once proxmox is installed, you should add a subscription to receive updates, so click on the warning and then on
Add
- Now select
No-Subscription
and click onAdd
- Open the shell and run
apt update && apt upgrade -y
It might happen that the subscription alert after logging in doesn't disappear after clicking on OK
. Here's the solution:
- Open the shell
- Type
passwd
- Enter the current proxmox password (which is the root password)
- Try logging back in