In this guide you'll turn one physical computer into a small virtualization server with Proxmox VE, then create your first virtual machine and your first container on it. Each service gets its own isolated box that you can snapshot, back up and restore in minutes.
Why bother? When everything runs straight on one OS, a bad update or a broken disk can take down your NAS, media server, VPN and home automation together. I run Proxmox VE 8 on a mini PC with six VMs and a dozen LXC containers: TrueNAS, Home Assistant, Pi-hole, OmniRoute, Ollama and this blog, all with automated snapshots and backups.
What you need
- A 64-bit PC or mini PC you can wipe, with a CPU that supports virtualization (Intel VT-x or AMD-V). Most CPUs from the last ten years do.
- At least 8 GB of RAM. More is better, because every VM takes its share.
- An SSD for Proxmox itself, and ideally two extra drives for VM storage.
- A USB stick of 2 GB or more for the installer.
- A wired network connection and a free IP address on your LAN.
- Another computer with a web browser, and basic comfort with the Linux command line.
A few terms first
- Hypervisor: software that runs virtual machines. Proxmox is a type-1 hypervisor, meaning it runs directly on the hardware rather than as an app inside Windows or macOS.
- VM (virtual machine): a complete simulated computer with its own kernel. It can run any OS, including Windows. Proxmox uses KVM for these.
- LXC container: a lighter isolated Linux environment that shares the host's kernel. It starts in seconds and uses less RAM, but can only run Linux.
- ZFS: a filesystem and volume manager that checks every block for corruption and supports cheap snapshots. A pool is a set of disks ZFS manages together; a dataset is a folder-like slice of a pool.
- Mirror: two disks holding identical copies (like RAID 1). Either disk can die without data loss.
- Bridge: a virtual network switch inside Proxmox. VMs plug into the bridge, and the bridge plugs into your physical network card, so VMs appear on your LAN like real machines.
- VirtIO: virtual hardware designed for VMs. It's faster than pretending to be a real network card or disk controller.
What Proxmox gives you
| Platform | Proxmox VE 8 (Debian-based hypervisor) |
| Purpose | Type-1 virtualization for VMs and containers |
| License | Free (enterprise repo optional) |
| Hypervisor | KVM (VMs) + LXC (containers) |
| Web UI | https://YOUR_SERVER_IP:8006 |
| Repository | proxmox.com |
| Feature | Details |
|---|---|
| VM Support | Full KVM virtualization (any OS) |
| Container Support | LXC containers (Linux, lightweight) |
| Web Interface | Browser-based management |
| Snapshots | Point-in-time VM snapshots, instant rollback |
| Backups | Built-in backup to local/remote storage |
| HA (Cluster) | High availability across multiple nodes |
| Live Migration | Move running VMs between physical hosts |
| Storage | ZFS, Ceph, NFS, iSCSI, local |
This guide follows Proxmox VE 8, which is based on Debian 12 "bookworm". Proxmox VE 9 is based on Debian 13 and stores its package sources in a different file format, so the repository step (Step 2) looks different there. The rest of the guide carries over.
Why not run everything directly on the hardware?
| Scenario | Bare Metal | Proxmox |
|---|---|---|
| App update breaks service | Manual rollback | Snapshot rollback in 30 seconds |
| Hard drive failure | Everything down | VM restored from backup |
| Need to test software | Risk production | Spin up isolated VM |
| Resource waste | Dedicated server per app | Share hardware efficiently |
| Migration to new hardware | Full reinstall | Export/import VM |
- Hypervisor
- KVM (Kernel-based Virtual Machine)
- Containers
- LXC (Linux Containers)
- Storage
- ZFS on mirrors (recommended)
- Networking
- Linux bridge (vmbr0) or OVS
- Backup
- vzdump (built-in, Proxmox Backup Server optional)
Step 0: Check the hardware
Sizing
| Component | Minimum | Recommended |
|---|---|---|
| CPU | 4 cores (Intel VT-x/AMD-V) | 8+ cores with AES-NI |
| RAM | 8 GB | 32–64 GB |
| Boot Drive | 128 GB SSD | 256 GB NVMe |
| Storage | 1 TB HDD | 4+ TB (ZFS mirrors) |
| Network | 1 GbE | 2.5/10 GbE |
| NIC | Intel I210/I225 | Intel X710 (for SR-IOV) |
ZFS likes RAM. If you plan to use it, budget some memory for it on top of what your VMs need.
BIOS settings
Before installing, enter the BIOS/UEFI setup (usually Del, F2 or F12 at power-on) and set:
| Setting | Value |
|---|---|
| Intel VT-x (AMD: SVM) | Enabled |
| Intel VT-d (AMD: IOMMU) | Enabled (for GPU passthrough) |
| AES-NI | Enabled |
| Secure Boot | Either. Proxmox VE 8.1 and newer support it |
| Wake-on-LAN | Enabled (optional) |
The exact names differ between motherboard makers. Some boards set VT-d to "Auto", which isn't always the same as Enabled, so pick Enabled explicitly.
Step 1: Install Proxmox
Make the USB installer
- Download the Proxmox VE ISO from proxmox.com/en/downloads.
- Find your USB stick's device name with
lsblk(on Linux). It will be something like/dev/sdb. Double-check: the next command erases whatever device you name. - Write the ISO to it:
dd if=proxmox-ve_8.2-1.iso of=/dev/sdX bs=1M status=progress - Boot the server from the USB stick.
On Windows or macOS, a tool like balenaEtcher does the same job as dd.
Run the installer
- Select Install Proxmox VE (Graphical).
- Accept the EULA.
- Select the target disk (your SSD/NVMe). Everything on it is erased.
- Set country, timezone and keyboard.
- Set the root password and an email for alerts.
- Set a hostname (e.g.
proxmox.home.arpa). It must be a full name with a dot in it. - Set a static management IP, gateway and DNS server, for example
192.168.40.20/24with gateway192.168.40.1. Pick an address your router won't hand out to something else. - Click Install and remove the USB stick when it reboots.
First login
From another computer, open https://YOUR_SERVER_IP:8006. Your browser will warn about the certificate. That's expected, because Proxmox uses a self-signed one. Accept it and log in as root with your password, realm Linux PAM.
You'll see a "No valid subscription" popup. Proxmox is free to use without one; the popup is a reminder that paid support exists.
Step 2: Switch to the free update repository
Out of the box, Proxmox points at the enterprise repository, which needs a paid subscription. Without one, apt update fails with an authorization error. Swap it for the free no-subscription repository:
# SSH into Proxmox
ssh root@YOUR_SERVER_IP
# Disable enterprise repo
sed -i 's/^deb/# deb/' /etc/apt/sources.list.d/pve-enterprise.list
# Add no-subscription repo
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
# Update
apt update && apt upgrade -y
You can do the same thing in the web interface: select your node, then Updates → Repositories. That panel also shows any other enterprise entry (such as the Ceph one) that you should disable if apt update still reports errors.
Check it: apt update should finish without 401 Unauthorized errors.
Step 3: Set up storage
Create a ZFS mirror
This step wipes the two disks you name. Check which is which first:
# Check available disks
lsblk
# Create ZFS pool (mirror = RAID 1)
zpool create -o ashift=12 \
tank mirror /dev/sda /dev/sdb
# Create datasets
zfs create tank/vm-disks
zfs create tank/container-rootfs
zfs create tank/backups
zfs create tank/images
# Verify
zpool status
zfs list
ashift=12 tells ZFS the disks use 4 KB sectors, which is right for nearly all modern drives. /dev/sda names can change between reboots; for a pool you'll keep for years, use the stable names from ls -l /dev/disk/by-id/ instead.
zpool status should show state: ONLINE with both disks under mirror-0.
You can also create the pool in the web interface under your node → Disks → ZFS.
Tell Proxmox about the storage
Proxmox only uses storage you register with it. Each storage has an ID, a short name that commands and menus refer to.
A ZFS storage in Proxmox can only hold VM disks and container filesystems. ISO images and backups need a Directory storage, so we register the datasets separately.
Datacenter → Storage → Add → ZFS (for VM and container disks)
| Field | Value |
|---|---|
| ID | tank |
| ZFS Pool | tank/vm-disks |
| Content | Disk image, Container |
Datacenter → Storage → Add → Directory (for backups)
| Field | Value |
|---|---|
| ID | backups |
| Directory | /tank/backups |
| Content | VZDump backup file |
Datacenter → Storage → Add → Directory (for installer ISOs)
| Field | Value |
|---|---|
| ID | images |
| Directory | /tank/images |
| Content | ISO image, Container template |
Check it: all three appear under your node in the left-hand tree with a green status.
NFS backup target (optional)
If you have a NAS, you can send backups there so they survive the Proxmox box dying. On the NAS (here 192.168.40.10), share a folder with the Proxmox host (192.168.40.20):
# On your NAS/NFS server
# Export /backup to Proxmox IP
echo "/backup 192.168.40.20(rw,sync,no_subtree_check)" >> /etc/exports
exportfs -ra
Then in Proxmox, Datacenter → Storage → Add → NFS:
| Field | Value |
|---|---|
| ID | nfs-backup |
| Server | 192.168.40.10 |
| Export | /backup |
| Content | VZDump backup file |
Step 4: Networking
The default Linux bridge
The installer creates a bridge called vmbr0 attached to your network card (eno1 here; yours may be named differently, check with ip link). It lives in /etc/network/interfaces:
# /etc/network/interfaces
auto vmbr0
iface vmbr0 inet static
address 192.168.40.20/24
gateway 192.168.40.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-ports is the physical card the bridge uses. bridge-stp off and bridge-fd 0 turn off Spanning Tree and its startup delay, which a single home bridge doesn't need.
VLAN-aware bridge
If your network uses VLANs (see my homelab networking post), make the bridge VLAN-aware. Then each VM can sit on a different VLAN through one cable. The switch port for this server must be a trunk carrying those VLANs.
# For VLAN-segmented VMs
auto vmbr0
iface vmbr0 inet static
address 192.168.40.20/24
gateway 192.168.40.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 1 10 20 30 40
You can also tick VLAN aware on the bridge under your node → System → Network. Apply changes with ifreload -a or the Apply Configuration button. Do this from a console if you can: a typo here cuts off your SSH session.
Putting a VM on a VLAN
In a VM's network device settings:
VM Network Config:
Model: VirtIO (paravirtualized)
Bridge: vmbr0
VLAN Tag: 40 (Servers)
Rate Limit: 1000 (Mbps, optional)
Step 5: Create your first VM
First upload an installer ISO: select the images storage → ISO Images → Upload. I'm using TrueNAS as the example.
In the web interface
Click Create VM (top right). The wizard has a tab per topic:
- General: Name
truenas. - OS: pick the TrueNAS ISO from the
imagesstorage. - System: Machine
q35, BIOSOVMF (UEFI), add an EFI disk ontank, SCSI ControllerVirtIO SCSI. - Disks: 32 GB on
tank, tick Discard and SSD emulation. - CPU: 4 cores, Type
host. - Memory: 8192 MB (8 GB).
- Network: Bridge
vmbr0, VLAN Tag40, ModelVirtIO. - Confirm, then start the VM and open its Console to run the installer.
Or from the command line
# Create VM with qm
qm create 100 \
--name truenas \
--memory 8192 \
--cores 4 \
--cpu host \
--scsihw virtio-scsi-pci \
--scsi0 tank:32 \
--efidisk0 tank:1,efitype=4m \
--ide2 images:iso/truenas.iso,media=cdrom \
--net0 virtio,bridge=vmbr0,tag=40 \
--ostype l26 \
--bios ovmf \
--machine q35
qm start 100
100 is the VM ID; every VM and container needs a unique number. --scsi0 tank:32 means "create a new 32 GB disk on the storage with ID tank". The original version of this command used a dataset path, which qm doesn't accept. --efidisk0 stores the UEFI settings, which OVMF VMs need to remember things like boot order. Replace truenas.iso with the exact filename you uploaded.
Check it: qm list shows VM 100 as running.
Step 6: LXC containers
Containers share the host kernel, so they start faster and use less memory than VMs. They're a good fit for Linux services like Pi-hole.
Download a template
A template is a ready-made minimal OS image that containers are built from:
pveam update
pveam available --section system
pveam download local debian-12-standard_12.7-1_amd64.tar.zst
Template versions change. Use the exact name pveam available prints. In the web interface, the same thing is under the local storage → CT Templates → Templates.
Create a container in the web interface
Click Create CT:
| Field | Value |
|---|---|
| Hostname | pihole |
| Template | debian-12-standard |
| Password | (set) |
| Disk | 8 GB |
| CPU | 2 cores |
| Memory | 512 MB swap, 1024 MB RAM |
| Network | Bridge = vmbr0, VLAN = 30 |
Leave Unprivileged container ticked. An unprivileged container maps its root user to an unprivileged user on the host, so a breakout from the container doesn't hand over root on Proxmox.
Or from the command line
pct create 200 \
local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst \
--hostname pihole \
--password your_password \
--rootfs local-lvm:8 \
--cores 2 \
--memory 1024 \
--swap 512 \
--net0 name=eth0,bridge=vmbr0,tag=30,hwaddr=auto
--rootfs local-lvm:8 puts an 8 GB disk on the local-lvm storage. That storage exists if you installed Proxmox on ext4/LVM; with a ZFS boot disk it's called local-zfs instead. You can also use tank:8 from Step 3. With no IP set, the container gets one from DHCP; add ip=dhcp or ip=192.168.30.53/24,gw=192.168.30.1 to --net0 to be explicit.
Manage containers
pct start 200 # Start
pct stop 200 # Stop
pct reboot 200 # Reboot
pct enter 200 # Shell access
pct exec 200 -- bash # Execute command
Check it: pct enter 200, then ping -c 3 1.1.1.1 from inside the container.
Step 7: Snapshots and backups
A snapshot freezes a VM's disk state at a moment in time on the same storage. It's for quick undo, not a backup. A backup is a full copy stored elsewhere.
Snapshots
# Take snapshot
qm snapshot 100 pre-update
# List snapshots
qm listsnapshot 100
# Restore snapshot
qm rollback 100 pre-update
Containers use the same commands with pct instead of qm. Snapshots need storage that supports them (ZFS and LVM-thin do).
Automated backups
Datacenter → Backup → Add
| Field | Value |
|---|---|
| Storage | backups |
| Schedule | Daily at 3:00 AM |
| Selection | All VMs |
| Mode | Snapshot |
| Compression | ZSTD |
| Retention | Keep last 7 |
"Storage" is the storage ID from Step 3, not a path. Snapshot mode backs up running VMs without stopping them. ZSTD is the fastest of the compression options. Retention is on the job's Retention tab.
Manual backup
# Backup specific VM
vzdump 100 --storage backups --compress zstd
# Backup all VMs
vzdump --all --storage backups --compress zstd
Check it: the backup file appears under the backups storage → Backups. Try restoring one to a new VM ID once, before you need it for real.
Step 8: GPU passthrough (optional)
Passthrough hands a physical device, like a graphics card, directly to one VM. That's useful for Ollama, Plex transcoding or a gaming VM. The IOMMU is the CPU feature that makes this safe; it keeps the device from touching memory outside its VM.
Turn on the IOMMU
With AMD CPUs it's on by default. On Intel CPUs with kernel 6.8 or newer (Proxmox VE 8.2 and later ship 6.8), it's on by default too. On older Intel kernels, add intel_iommu=on iommu=pt to the kernel command line. Where that goes depends on the bootloader:
- GRUB (most installs): edit
/etc/default/grub, add the options inside the quotes ofGRUB_CMDLINE_LINUX_DEFAULT, then runupdate-grub. - systemd-boot (UEFI installs with ZFS on the boot disk): add them to the single line in
/etc/kernel/cmdline, then runproxmox-boot-tool refresh.
The original version of this post appended the options as a new line at the end of /etc/default/grub. GRUB ignores that, so IOMMU never got enabled.
Reboot, then check:
dmesg | grep -e DMAR -e IOMMU
# Verify IOMMU groups
find /sys/kernel/iommu_groups/ -type l | sort
You want a line like DMAR: IOMMU enabled (Intel) and a list of groups.
Bind the GPU to vfio-pci
vfio-pci is a placeholder driver that claims the GPU so the host doesn't use it. Find your GPU's vendor and device IDs with lspci -nn (the numbers in square brackets, like 10de:2684), then:
# Load the vfio modules at boot
printf "vfio\nvfio_iommu_type1\nvfio_pci\n" > /etc/modules-load.d/vfio.conf
# Bind GPU to vfio-pci
echo "options vfio-pci ids=10de:2684,10de:22ba" >> /etc/modprobe.d/vfio.conf
update-initramfs -u -k all
reboot
The two IDs are the GPU and its HDMI audio device; yours will differ. The original command used echo "vfio-pci" > /etc/modules, which overwrites that file and drops any modules already listed there.
After the reboot, lspci -nnk should show Kernel driver in use: vfio-pci for the GPU.
Assign the GPU to a VM
qm set 100 --hostpci0 0000:01:00,pcie=1,x-vga=1
0000:01:00 is the GPU's PCI address from lspci. Leaving off the function number (.0) passes all functions, including the audio device. pcie=1 requires the q35 machine type.
Troubleshooting
apt update fails with 401 Unauthorized. An enterprise repository is still enabled. Check node → Updates → Repositories and disable every entry marked enterprise.
The web UI doesn't load. Use https:// and port 8006. Then check from the server console with ip a that the IP is what you expect, and systemctl status pveproxy.
"KVM virtualisation configured, but not available". VT-x/AMD-V is off in the BIOS. Turn it on, or disable KVM for that VM as a last resort (very slow).
"storage 'local-lvm' does not exist". You installed on ZFS. Use local-zfs or your own storage ID.
A VM on a VLAN gets no network. The bridge isn't VLAN-aware, or the switch port to Proxmox isn't a trunk carrying that VLAN.
I lost access after editing /etc/network/interfaces. Log in at the physical console, fix the file, run ifreload -a.
GPU passthrough: the VM won't start or the host freezes. The GPU shares an IOMMU group with other devices, or the host driver grabbed it first. Check the groups, and blacklist the host driver (nouveau, amdgpu or i915) in /etc/modprobe.d/blacklist.conf.
What I'd tell anyone building one
-
Start with LXC containers, not VMs. Containers share the host kernel and use a fraction of the resources. Use VMs when you need a different OS, a different kernel, or stronger isolation. Plenty of homelab services (Pi-hole, databases, small web apps) run happily in containers.
-
ZFS mirrors, not RAID 5. Rebuilding a RAID 5 array on large drives takes a long time and reads every disk, and a second failure during the rebuild loses everything. A ZFS mirror resilver only copies the data actually in use from one disk, and ZFS checksums catch silent corruption.
-
Snapshot before every change. One
qm snapshotbefore an update takes seconds and saves you from a broken VM. -
Use the
hostCPU type. It passes all your CPU's features (AVX, AES-NI and so on) to the VM. Older Proxmox versions defaulted tokvm64, which hides many of them; newer ones default tox86-64-v2-AESin the web interface. The catch withhost: live migration only works between hosts with the same CPU. -
VirtIO everything. VirtIO network cards and VirtIO SCSI controllers are much faster than emulated hardware. Windows VMs need the VirtIO driver ISO during install.
-
Separate boot and data drives. Put Proxmox on a small NVMe boot drive and VM disks on separate storage (ZFS pool, NFS or Ceph). If the boot drive fails, reinstall Proxmox and re-import the pool.
-
Test a restore. A backup you've never restored is a guess.
Next steps
- Install Proxmox Backup Server for deduplicated, incremental backups.
- Set up your network VLANs so each VM lands on the right segment.
- Add a second node later and look at clustering and live migration.
Get it
- Proxmox VE: proxmox.com
- Proxmox Wiki: pve.proxmox.com/wiki
- Proxmox Forums: forum.proxmox.com
- Backup Server: proxmox.com/en/proxmox-backup-server
Last updated: 2026-09-01. Tested on Proxmox VE 8.2 with ZFS mirrors, LXC containers, and KVM VMs.