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.
- Install balenaEtcher on a personal device.
- 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.
- Plug your chosen USB drive into your device.
- Open balenaEtcher
- Click Flash from file and select your Proxmox installer ISO
- Click Select target, tick the checkbox on
<your-USB-drive>, click Select - 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.
- Power off your future Proxmox machine.
- Plug your bootable USB in to the machine.
- Power your machine on.
- 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.
- Boot your machine using your USB drive. Look up the how to do this for your specific hardware.
- Once you enter the Proxmox install screen, continue.
- Select Install Proxmox VE (Graphical) with the arrow keys, and press Enter
- Click I agree
- Select your Proxmox install disk in Target Harddisk
- Click Next
- Type
<your-country-of-residence>into Country - Select your time zone in Time zone
- Select the layout of your keyboard in Keyboard Layout
- Click Next
- Type
<your-secure-password>into Password and Confirm - Type
<your-email>into Email - Click Next
- Select your active network interface in Management Interface
- Type
<your-hostname>into Hostname (FQDN). Pick something logical, likepve.internal.- 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.
- Type
<your-reserved-ip>/24into IP Address (CIDR) - Type
<your-gateway>into Gateway- 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
- Type
<your-dns-server>into DNS Server- Similarly to the previous, unless you have a custom setup, your gateway’s IP should work here.
- Click Next
- Click Install
- 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:
- Navigate to
<your-reserved-ip>:8006in a web browser - Type
rootinto User name: - Type
<your-secure-password>into Password: - Click Login
- From here you should see a “No valid subscription” alert. This is because we are using free Proxmox, ignore it and click OK
- Navigate to
<your-node>| Updates | Repositories<your-node>should be your hostname or the first part of it. If you usedpve.internalit should bepve
- Looking at the Components column, find and select the repository containing
enterprise - Click Disable
- Repeat steps 6-7, looking for the repository containing
pve-enterprisein the Components column
- Repeat steps 6-7, looking for the repository containing
- Click Add
- You’ll get another alert, click OK
- Select No-Subscription in Repository:
- Click Add
- Navigate to
<your-node>| Updates - Click Refresh
- Click the X icon when the task is done
- Click >_ Upgrade
- Enter
Yin the shell popup - 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.