Howto proxmox raspberrypi5: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
Line 37: Line 37:
= install packages =
= install packages =
install this packages:
install this packages:
  apt install ifupdown2 bridge-utils -y
  apt install ifupdown2 bridge-utils rsyslog -y
install firmware:
install firmware:
  apt install pve-edk2-firmware -y
  apt install pve-edk2-firmware -y
install proxmox packages:
install proxmox packages:
  apt install proxmox-ve postfix open-iscsi chrony mmc-utils usbutils pve-edk2-firmware-aarch64 rsyslog -y
  apt install proxmox-ve postfix open-iscsi chrony mmc-utils usbutils pve-edk2-firmware-aarch64 -y
reboot system:
reboot system:
  reboot
  reboot

Revision as of 23:32, 29 April 2024

configure repo

install gpg key:

curl -o /usr/share/keyrings/pveport.gpg https://mirrors.apqa.cn/proxmox/debian/pveport.gpg 

install proxmox repo:

echo "deb [deb=arm64 signed-by=/usr/share/keyrings/pveport.gpg] https://mirrors.apqa.cn/proxmox/debian/pve bookworm port" | tee /etc/apt/sources.list.d/pvport.list

configure rpi

update to latest:

apt update && apt dist-upgrade -y

add hostname to /etc/host:

cat >> /etc/hosts << EOF
127.0.0.1 localhost
127.0.1.1 raspberrypi
192.168.77.125 raspberrypi
EOF

edit network configuration:

cat >> /etc/network/interfaces << EOF
# loopback
auto lo
iface lo inet loopback
# eth0
iface eth0 inet static
# vmbr0 bridge
auto vmbr0
iface vmbr0 inet static
        address 192.168.77.125
        netmask 255.255.255.0
        gateway 192.168.77.254
        bridge-ports eth0
        bridge-stp off
        bridge-fd 0
EOF

configure nameservers:

cat >> /etc/resolv.conf << EOF
nameserver 8.8.8.8
nameserver 8.8.8.4
EOF

install packages

install this packages:

apt install ifupdown2 bridge-utils rsyslog -y

install firmware:

apt install pve-edk2-firmware -y

install proxmox packages:

apt install proxmox-ve postfix open-iscsi chrony mmc-utils usbutils pve-edk2-firmware-aarch64 -y

reboot system:

reboot

access web gui

https://192.168.77.125:8006

create vm

create vm using cli:

qm create 100 --name testing --ostype l26 --cpu max --cores 1 --memory 512 --scsihw virtio-scsi-pci --net0 virtio,bridge=vmbr0 --bios ovmf --efidisk0 local:0,efitype=4m,pre-enrolled-keys=0 --serial0 socket 

download armbian64 image:

cd /var/lib/vz/images
wget https://dl.armbian.com/uefi-arm64/archive/Armbian_24.2.1_Uefi-arm64_bookworm_current_6.6.16.img.xz

uncompress armbian64 image:

xz -d Armbian_24.2.1_Uefi-arm64_bookworm_current_6.6.16.img.xz

convert raw image to qcow2:

qemu-img convert -f raw -O qcow2 Armbian_24.2.1_Uefi-arm64_bookworm_current_6.6.16.img Armbian_24.2.1_Uefi-arm64_bookworm_current_6.6.16.qcow2 -p

add armbian64 image to vm:

qm importdisk 100 ./Armbian_24.2.1_Uefi-arm64_bookworm_current_6.6.16.qcow2 local

for download lxc container images: