A guide for installing, configuring, and migrating to Proxmox This is the first part of my homelab “rebuild” project, Homelab Infrastructure Rebuild Overview

Migration

In order to migrate my homelab, I needed to back everything up. In order to do that, I had to actually figure out where everything was, as I didn’t really set anything up in a clean or consistent manner. I used this set of commands:

sudo docker ps --format '{{.Names}}\t{{.Image}}\t{{.Ports}}' > inventory.txt

sudo docker volume ls >> inventory.txt

sudo find / -name 'docker-compose.y*ml' -o -name 'compose.y*ml' 2>/dev/null >> inventory.txt

This creates a text file that logs an inventory of all pertinent docker information. The first command grabs a list of all running docker containers with their name, image, and published ports and adds it to the inventory file. The second adds all docker volumes to the inventory file. The third finds every compose file on the system and outputs the location of each compose file to the inventory file. Since I was exclusively using docker to host anything, this was all I needed. If you have other services, make sure to document those, including cronjobs.

After that, you’ll need stop every service. You can use this command for docker:

docker stop $(docker ps -q)

The last thing to do is to backup your volumes and compose files to another storage solution, I used my NAS but a USB or any removable storage media works as well. Keep the inventory file as well.

It is also best practice to create a whole system iamge for backup, just in case. I recommend Clonezilla. See the guide on Ventoy and Clonezilla for more.

Preparing for a Proxmox Install

Proxmox is a bare-metal hypervisor that will allow you to efficiently deploy multiple virtual machines on a single system. I replaced my singular Ubuntu instance with it. This opened up the opportunity to deploy different machines for different purposes in tandem with OPNsense for a firewall and segmentation, all on one machine.

To install Proxmox, you’ll need the following things:

  • Check that your motherboard’s BIOS settings are correctly. You want to make sure IOMMU is enabled on your device. Different hardware sometimes has different names for this technology. Intel chipsets use VT-d, AMD chipsets use AMD-Vi, and ARM uses SMMU. It may be best to look up best settings for your specific hardware for Proxmox.
  • An 8GB minimum USB drive.
  • A reserved IP address for your Proxmox instance. You’ll need to explore how to set this up for your home router.
  • Create a bootable USB. For this I used balenaEtcher. I would advise against deploying Proxmox with Ventoy however, as I personally had errors with it, and the internet also seems to as well. Save yourself the headache, and don’t use Ventoy to install it.
  1. Install balenaEtcher on a personal device.
  2. Download the latest Proxmox Virtual Environment installer ISO. Make sure to grab the right one, if on ARM get the ARM ISO, otherwise get the standard ISO.
  3. Plug your chosen USB drive into your device.
  4. Open balenaEtcher
  5. Click Flash from file and select your Proxmox installer ISO
  6. Click Select target, tick the checkbox on <your-USB-drive>, click Select
  7. Click Flash

Now you have a bootable USB drive to install Proxmox.

Proxmox Installation and Basic Configuration

Before you do this, ensure that you have everything you need off your machine. This will overwrite everything on a drive.

  1. Power off your future Proxmox machine.
  2. Plug your bootable USB in to the machine.
  3. Power your machine on.
    1. The following steps differ across hardware so you’ll need to pay attention to your boot screen You should see a set of keys to press, press the one regarding your BIOS or UEFI.
    2. Boot your machine using your USB drive. Look up the how to do this for your specific hardware.
    3. Once you enter the Proxmox install screen, continue.
  4. Select Install Proxmox VE (Graphical) with the arrow keys, and press Enter
  5. Click I agree
  6. Select your Proxmox install disk in Target Harddisk
  7. Click Next
  8. Type <your-country-of-residence> into Country
  9. Select your time zone in Time zone
  10. Select the layout of your keyboard in Keyboard Layout
  11. Click Next
  12. Type <your-secure-password> into Password and Confirm
  13. Type <your-email> into Email
  14. Click Next
  15. Select your active network interface in Management Interface
  16. Type <your-hostname> into Hostname (FQDN). Pick something logical, like pve.internal.
    1. My future guides will discuss setting up internal DNS. If you have a domain scheme, you can apply it here, but it doesn’t really matter since I’ll be using Unbound DNS overrides for that.
  17. Type <your-reserved-ip>/24 into IP Address (CIDR)
  18. Type <your-gateway> into Gateway
    1. Unless you have a custom setup, usually this is the first address of your subnet. So if you have a 10.0.0.X address, put 10.0.0.1
  19. Type <your-dns-server> into DNS Server
    1. Similarly to the previous, unless you have a custom setup, your gateway’s IP should work here.
  20. Click Next
  21. Click Install
  22. Click Reboot

To configure Proxmox, you’ll need to use a seperate device to access its management GUI. Proxmox automatically subscribes to its enterprise repository for updates, which requires a paid subscription. We want to make sure Proxmox is up to date and using the free repository. Here is how to do it:

  1. Navigate to <your-reserved-ip>:8006 in a web browser
  2. Type root into User name:
  3. Type <your-secure-password> into Password:
  4. Click Login
    1. From here you should see a “No valid subscription” alert. This is because we are using free Proxmox, ignore it and click OK
  5. Navigate to <your-node> | Updates | Repositories
    1. <your-node> should be your hostname or the first part of it. If you used pve.internal it should be pve
  6. Looking at the Components column, find and select the repository containing enterprise
  7. Click Disable
    1. Repeat steps 6-7, looking for the repository containing pve-enterprise in the Components column
  8. Click Add
    1. You’ll get another alert, click OK
  9. Select No-Subscription in Repository:
  10. Click Add
  11. Navigate to <your-node> | Updates
  12. Click Refresh
  13. Click the X icon when the task is done
  14. Click >_ Upgrade
  15. Enter Y in the shell popup
  16. Restart your server when the updates are complete. Click Reboot | Yes

Now we have a fully up-to-date instance of Proxmox with an update repository. To update your Proxmox, which you should do regularly, repeat steps 12-16.

Closing Notes

I intentionally did not include VM deployment. This is because we want to deploy VMs behind our OPNsense firewall, which will also be a VM. See OPNsense Firewall Deployment, Configuration, and Segmentation with Proxmox for the deployment of an OPNsense firewall in your Proxmox environment.