User Tools

Site Tools


pi5_proxmox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pi5_proxmox [2024/04/26 19:51] adminpi5_proxmox [2024/05/05 10:44] (current) – [Change boot order to boot from NVMe] admin
Line 1: Line 1:
 ====== Proxmox on Raspberry Pi5 ====== ====== Proxmox on Raspberry Pi5 ======
  
 +This is a little summary on how to setup an run VMs using Proxmox on a NVMe
 ===== Resources ===== ===== Resources =====
  
-  * NVMe setup: [[https://www.jeffgeerling.com/blog/2023/nvme-ssd-boot-raspberry-pi-5|Jeff Geerlin Blog]] and [[https://www.heise.de/tests/Kurztest-Raspberry-Pi-5-mit-M-2-SSD-betreiben-9581242.html|Heise]]+  * NVMe setup: [[https://www.jeffgeerling.com/blog/2023/nvme-ssd-boot-raspberry-pi-5|Jeff Geerling Blog]] and [[https://www.heise.de/tests/Kurztest-Raspberry-Pi-5-mit-M-2-SSD-betreiben-9581242.html|Heise]]
   * Proxmox install: https://github.com/jiangcuo/Proxmox-Port/wiki/Install-Proxmox-VE-on-Debian-bookworm#install-proxmox-ve-on-debian-bookworm   * Proxmox install: https://github.com/jiangcuo/Proxmox-Port/wiki/Install-Proxmox-VE-on-Debian-bookworm#install-proxmox-ve-on-debian-bookworm
 +  * Additional information on how to create a VM (section "VM erstellen"): https://www.bachmann-lan.de/proxmox-8-auf-dem-raspberry-pi-4-installieren/
  
-===== NVMe =====+First of all, install Raspberry Pi OS as you would normally using Pi Imager or alike 
 + 
 +===== NVMe setup ===== 
 + 
 +Edit ''/boot/config.txt'' and add the following lines. 
 + 
 +<code bash /boot/config.txt> 
 +# Enable NVME 
 +dtparam=nvme 
 +</code> 
 + 
 +This will enable the NVMe and it will be list after reboot (''sudo reboot''
 + 
 +<code bash> 
 + $ lsblk  
 +NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS 
 +mmcblk0     179:   0  59.5G  0 disk  
 +├─mmcblk0p1 179:1    0   512M  0 part /boot/firmware 
 +└─mmcblk0p2 179:2    0    59G  0 part / 
 +nvme0n1     259:   0 931.5G  0 disk  
 +├─nvme0n1p1 259:1    0   512M  0 part  
 +└─nvme0n1p2 259:2    0   931G  0 part  
 +</code>
  
 ==== Install rpi-clone ==== ==== Install rpi-clone ====
 +
 +Now, that we have the NVMe up and running it is time to copy the OS from the SD-card to the NVMe
 +using ''rpi-clone''.
  
 <code> <code>
Line 16: Line 43:
 </code> </code>
  
-==== Change boot order ==== 
  
-Run ''rpi-eeprom-config -e'', change ''BOOT_ORDER'' and add ''PCIE_PROBE=1''+==== Clone SD-card to NVMe ==== 
 + 
 +First, wipe all partitions before cloning the SD card:
  
 <code> <code>
-BOOT_ORDER=0xf416 +umount /dev/nvme0n1p? 
-PCIE_PROBE=1+wipefs --all --force /dev/nvme0n1p1  
 +wipefs --all --force /dev/nvme0n1 
 +dd if=/dev/zero of=/dev/nvme0n1 bs=1024 count=1
 </code> </code>
  
 +Finally clone the OS
  
-''lsblk'' will show the available device.+<code> 
 +rpi-clone nvme0n1 
 +</code> 
 + 
 +==== Change boot order to boot from NVMe ==== 
 + 
 +Run ''rpi-eeprom-config -e'', change ''BOOT_ORDER'' and add ''PCIE_PROBE=1'' or use ''raspi-config'' (Select Advanced Option -> Boot Order -> NVMe/USB Boot Boot from NVMe before trying USB and then SD Card)
  
-Wipe all partitions before cloning the SD card: 
  
 <code> <code>
-umount /dev/nvme0n1p? +BOOT_ORDER=0xf416 
-wipefs --all --force /dev/nvme0n1p1  +PCIE_PROBE=1
-wipefs --all --force /dev/nvme0n1 +
-dd if=/dev/zero of=/dev/nvme0n1 bs=1024 count=1+
 </code> </code>
  
  
-===== Add Proxmox repo =====+After another ''reboot'', ''lsblk'' will look like this: 
 + 
 +<code bash> 
 +$ lsblk  
 +NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS 
 +mmcblk0     179:   0  59.5G  0 disk  
 +├─mmcblk0p1 179:1    0   512M  0 part  
 +└─mmcblk0p2 179:2    0    59G  0 part  
 +nvme0n1     259:   0 931.5G  0 disk  
 +├─nvme0n1p1 259:1    0   512M  0 part /boot/firmware 
 +└─nvme0n1p2 259:2    0   931G  0 part / 
 +</code> 
 + 
 +===== Install Proxmox 8.1 ===== 
 + 
 +==== Add Proxmox repo ====
  
 <code> <code>
Line 46: Line 95:
  
  
-===== Install Proxmox 8.1 =====+==== Install packages ====
  
 <code> <code>
Line 52: Line 101:
 apt install ifupdown2 apt install ifupdown2
 apt install proxmox-ve postfix open-iscsi apt install proxmox-ve postfix open-iscsi
 +</code>
 +
 +:!: Watch out :!:
 +
 +During install you may have to decide wheather or not to change the ''pveport.list'' file.
 +Simply keep the current installed version of the file.
 +
 +<code>
 +Configuration file '/etc/apt/sources.list.d/pveport.list'
 + ==> File on system created by you or by a script.
 + ==> File also in package provided by package maintainer.
 +   What would you like to do about it ?  Your options are:
 +    Y or I  : install the package maintainer's version
 +    N or O  : keep your currently-installed version
 +      D     : show the differences between the versions
 +      Z     : start a shell to examine the situation
 + The default action is to keep your current version.
 +*** pveport.list (Y/I/N/O/D/Z) [default=N] ? N # <---- Answer with N here!
 +</code>
 +
 +
 +==== Configure SSH ====
 +
 +Allow the ''root'' user to login via SSH by adding the following line in ''/etc/ssh/sshd_config'':
 +
 +<code>
 +PermitRootLogin yes
 +</code>
 +
 +Set a password for the root user:
 +
 +<code>
 +passwd
 +</code>
 +
 +
 +Restart ssh
 +
 +<code>
 +systemctl restart sshd
 </code> </code>
  
Line 65: Line 154:
   * Create ''vmbr0'' bridge interface   * Create ''vmbr0'' bridge interface
  
-<code config /etc/network/interfaces>+<code bash /etc/network/interfaces>
 # interfaces(5) file used by ifup(8) and ifdown(8) # interfaces(5) file used by ifup(8) and ifdown(8)
 # Include files from /etc/network/interfaces.d: # Include files from /etc/network/interfaces.d:
Line 94: Line 183:
 systemctl restart networking.service systemctl restart networking.service
 </code> </code>
- 
  
 Proxmox is now available under https://192.168.178.26:8006 Proxmox is now available under https://192.168.178.26:8006
 +
 +===== Login =====
 +
 +Proxmox uses system accounts. So you have to set the ''root'' users password using ''passwd''
 +when logged in as ''root'' (''sudo -i'')
 +
 +===== Required VM settings, otherwise it won't boot =====
 +
 +When you get "display output is not active" in console it might indicate 
 +that you need to change the settings as described below.
 +
 +
 +Select the VM to be configured. Click on "Hardware"
 +
 +  * CD/DVD Drive: select a ISO file (arm64 images required)
 +  * BIOS: OVMF (UEFI)
 +  * Machine: Default (virt)
 +  * Add -> EFI Disk, select "local"
 +
 +
 +Hardware settings
 +
 +{{:hardware.png?600|}}
 +
 +Add EFI Disk
 +
 +{{:uefi.png?600|}}
pi5_proxmox.1714161107.txt.gz · Last modified: 2024/04/26 19:51 by admin