Proxmox VE on Raspberry Pi 4 with Pimox

Few days ago I wrote about ESXi on RPi,  as an another popular virtualization platform, Proxmox VE(or PVE) can also be installed on a Raspberry Pi 4 with Pimox, and the installation process is quite simpler than ESXi’s.

Content below shows how to install Proxmox VE on a Raspberry Pi 4 (8GB).

Preparation

  • A RPi 4
    • Although it’s not recommended by the repo author, it is possible to run on a RPi 3B+. If you want to try it, please check this issue.
  • A microSD card with arm64 Raspbian installed
    • The arm64 Raspbian can be downloaded here, the latest version should be fine.
    • PVE itself does not require much of the space, a 16GB card will be enough. If you want to run multiple VMs you should get bigger card, but considering the max speed of a SD card, adding other USB drives would be more suitable.
    • I originally tried to install on Debian Bullseye as the repository suggests, but as always (why do bad things happen to good people) —— it didn’t work somehow(I’m tired of saying this): the pve-* packages can’t be configured properly.
  • Power supply, type-c cable, keyboard, monitor, micro HDMI cable, Ethernet cable

Reference

Steps

Make sure you flashed arm64 Raspbian to the SD card, plug the card into RPi, then boot it up.

Follow instructions must be performed locally(as in monitor and keyboard) not remotely(like SSH), since the installation will stop/start network interfaces.

Network configuration

Static IP address

On Debian Bullseye, network interfaces configuration can be handled by editing /etc/network/interfaces and ifup/ifdown. Although Raspbian is based on Debian, its networking can’t be handled by that out-of-the-box, we have to edit /etc/dhcpcd.conf instead.

Find the interface sector in /etc/dhcpcd.conf, uncomment the lines and change it according to your condition.

Save the config file, execute

systemctl restart dhcpcd.service

Hostname and hosts file

Edit /etc/hostname if you want to customize Pi’s name.

Then make sure you have the corrent IP – Hostname bond record in /etc/hosts: the record’s IP is your previously configured static IP and the Hostname is the RPi’s.

Then you can try to ping your Pi’s hostname to check the connection.

Installing PVE

  1. Update & upgrade repo
    apt update && apt upgrade -y
  2. Switch to root user
    sudo -s
  3. Get the auto-install script
    curl https://raw.githubusercontent.com/TuxfeatMac/pimox7/master/RPiOS64autoinstall.sh > RPiOS64autoinstall.sh
  4. Change hostname and stuff
    • Open the script with your editor, change HOSTNAME, RPI_IP, GATEWAY and NETMASK on your condition
  5. Run the script
    chmod +x RPiOS64autoinstall.sh
    ./RPiOS64autoinstall.sh

    The script will ask you to set a new root user’s password, which will be PVE’s root password, set it then do nothing but wait for a automatic reboot.

    After the reboot, PVE is successfully installed on RPi, you can open up browser and start using Proxmox VE on Raspberry Pi.

Screenshot

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据