This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pi5_proxmox [2024/04/26 19:56] – admin | pi5_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:// | + | * NVMe setup: [[https:// |
| * Proxmox install: https:// | * Proxmox install: https:// | ||
| + | * Additional information on how to create a VM (section "VM erstellen" | ||
| - | ===== NVMe ===== | + | First of all, install Raspberry Pi OS as you would normally using Pi Imager or alike |
| - | Edit ''/ | + | ===== NVMe setup ===== |
| + | |||
| + | Edit ''/ | ||
| <code bash / | <code bash / | ||
| # Enable NVME | # Enable NVME | ||
| dtparam=nvme | dtparam=nvme | ||
| + | </ | ||
| + | |||
| + | This will enable the NVMe and it will be list after reboot ('' | ||
| + | |||
| + | <code bash> | ||
| + | $ lsblk | ||
| + | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | ||
| + | mmcblk0 | ||
| + | ├─mmcblk0p1 179:1 0 | ||
| + | └─mmcblk0p2 179:2 0 59G 0 part / | ||
| + | nvme0n1 | ||
| + | ├─nvme0n1p1 259:1 0 | ||
| + | └─nvme0n1p2 259:2 0 | ||
| </ | </ | ||
| ==== 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 '' | ||
| < | < | ||
| Line 23: | Line 43: | ||
| </ | </ | ||
| - | ==== Change boot order ==== | ||
| - | Run '' | + | ==== Clone SD-card to NVMe ==== |
| + | |||
| + | First, wipe all partitions before cloning the SD card: | ||
| < | < | ||
| - | BOOT_ORDER=0xf416 | + | umount / |
| - | PCIE_PROBE=1 | + | wipefs --all --force / |
| + | wipefs --all --force / | ||
| + | dd if=/ | ||
| </ | </ | ||
| + | Finally clone the OS | ||
| - | '' | + | < |
| + | rpi-clone nvme0n1 | ||
| + | </ | ||
| + | |||
| + | ==== Change boot order to boot from NVMe ==== | ||
| + | |||
| + | Run '' | ||
| - | Wipe all partitions before cloning the SD card: | ||
| < | < | ||
| - | umount / | + | BOOT_ORDER=0xf416 |
| - | wipefs --all --force / | + | PCIE_PROBE=1 |
| - | wipefs --all --force / | + | |
| - | dd if=/ | + | |
| </ | </ | ||
| - | ===== Add Proxmox repo ===== | + | After another '' |
| + | |||
| + | <code bash> | ||
| + | $ lsblk | ||
| + | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS | ||
| + | mmcblk0 | ||
| + | ├─mmcblk0p1 179:1 0 | ||
| + | └─mmcblk0p2 179:2 0 59G 0 part | ||
| + | nvme0n1 | ||
| + | ├─nvme0n1p1 259:1 0 | ||
| + | └─nvme0n1p2 259:2 0 | ||
| + | </ | ||
| + | |||
| + | ===== Install Proxmox 8.1 ===== | ||
| + | |||
| + | ==== Add Proxmox repo ==== | ||
| < | < | ||
| Line 53: | Line 95: | ||
| - | ===== Install | + | ==== Install |
| < | < | ||
| Line 59: | Line 101: | ||
| apt install ifupdown2 | apt install ifupdown2 | ||
| apt install proxmox-ve postfix open-iscsi | apt install proxmox-ve postfix open-iscsi | ||
| + | </ | ||
| + | |||
| + | :!: Watch out :!: | ||
| + | |||
| + | During install you may have to decide wheather or not to change the '' | ||
| + | Simply keep the current installed version of the file. | ||
| + | |||
| + | < | ||
| + | Configuration file '/ | ||
| + | | ||
| + | | ||
| + | What would you like to do about it ? Your options are: | ||
| + | Y or I : install the package maintainer' | ||
| + | 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/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Configure SSH ==== | ||
| + | |||
| + | Allow the '' | ||
| + | |||
| + | < | ||
| + | PermitRootLogin yes | ||
| + | </ | ||
| + | |||
| + | Set a password for the root user: | ||
| + | |||
| + | < | ||
| + | passwd | ||
| + | </ | ||
| + | |||
| + | |||
| + | Restart ssh | ||
| + | |||
| + | < | ||
| + | systemctl restart sshd | ||
| </ | </ | ||
| Line 101: | Line 183: | ||
| systemctl restart networking.service | systemctl restart networking.service | ||
| </ | </ | ||
| - | |||
| Proxmox is now available under https:// | Proxmox is now available under https:// | ||
| + | |||
| + | ===== Login ===== | ||
| + | |||
| + | Proxmox uses system accounts. So you have to set the '' | ||
| + | when logged in as '' | ||
| + | |||
| + | ===== Required VM settings, otherwise it won't boot ===== | ||
| + | |||
| + | When you get " | ||
| + | that you need to change the settings as described below. | ||
| + | |||
| + | |||
| + | Select the VM to be configured. Click on " | ||
| + | |||
| + | * CD/DVD Drive: select a ISO file (arm64 images required) | ||
| + | * BIOS: OVMF (UEFI) | ||
| + | * Machine: Default (virt) | ||
| + | * Add -> EFI Disk, select " | ||
| + | |||
| + | |||
| + | Hardware settings | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Add EFI Disk | ||
| + | |||
| + | {{: | ||