
From Docker Host to Proxmox - the Homelab Move in One Afternoon
From Docker Host to Proxmox - the Homelab Move in One Afternoon
Introduction
My home server is a small Intel NUC: 11th generation i5, 64 GB RAM, one 1 TB NVMe and an additional 1 TB SATA SSD. Until October, it ran plain Debian 12 with Docker - and on it, everything that had accumulated over the years: reverse proxy, DNS filter, Paperless, Syncthing, wallbox control, text-to-speech and speech recognition for Home Assistant, and a good dozen other services.
It worked. But it was a machine where everything lived directly. No snapshots before updates, no clean image backups, no way to quickly set up a second machine alongside it. If I ever wanted to move Home Assistant from the Raspberry Pi to the NUC or set up a test VM, that required tinkering at the host level.
So: Proxmox VE as the foundation, Docker in a VM. The problem - Proxmox replaces Debian on the same disk. There’s no parallel operation. It’s a Big Bang: shut everything down, back it up, wipe the disk, rebuild, bring everything back up.
This post describes how I prepared for it, how the evening went, and what still needed to be done afterward.
Main Part
The Most Important Decision: One VM, Not Many Containers
My first plan was to put each service in its own LXC container. I scrapped that idea. Proxmox itself recommends running Docker in a VM, and my setup heavily depends on all containers living on one Docker host:
- Traefik finds services via Docker labels
- all web services hang in the shared
proxy_netnetwork - the Homepage dashboard talks to services via their container names
So: one Debian VM for all Docker stacks. Plus a few principles that saved me a lot of headaches that evening:
| Topic | Decision |
|---|---|
| IP Address | The VM takes the old server’s IP, the Proxmox host gets a new one |
| Software | Debian 12 and exactly the same Docker and Compose version as before |
| Storage | NVMe for Proxmox and the VM (ZFS), SATA SSD stays untouched |
| Rollback | Full archive additionally encrypted on an external USB drive |
The IP trick is the actual lever: DNS entries, port forwards, MQTT, voice services for Home Assistant, Traefik routes - everything points to the old address. If the VM gets exactly that address, none of it needs to be touched.
And the 1:1 principle with versions means: no new variables on moving day. No Debian 13, no new Docker. Updates come later, once everything is running.
Preparation: Clean Up, Close Gaps, Pin Everything
Most of the work wasn’t on moving day, but in the days before. Claude Code helped me as an inventory tool: an audit run over the entire server that listed every dependency on the old IP, every direct port, and every cron line.
Clean up. Old experiments archived and deleted, a benchmark project, a Kali environment, a dozen .bak files with secrets. What doesn’t move doesn’t need to be checked that evening.
Close backup gaps. The backup script had been running with restic for a while, but looking closely, some data was missing: SQLite databases from two custom apps, the Mosquitto database, configurations of WireGuard, Syncthing and AdGuard, the Traefik certificates. In the end there were 23 backup groups instead of 12 before - and I test-restored and checked all SQLite dumps.
Pin images. Locked all image tags to the currently running versions. A :latest that suddenly pulls a new major version on moving day would be the last thing I needed. The eight self-built images I backed up via docker save.
Emergency set. All credentials needed if the server is gone - backup passwords, API tokens, logins and 2FA recovery codes - in the password manager in a separate folder. And then the most important test: from the laptop, only with this data, access everything. It worked.
The Evening, Part 1: Cold Snapshot
I started with what you need most later: the way back.
- Last restic run by hand, all 23 groups with fresh snapshot
- Crontabs backed up separately
- All 22 Compose projects stopped - so no database is mid-write
- A full archive with
tarof everything that matters: home directory,/etc,/root,/usr/local/bin,/srv, Docker volumes, Tailscale status, crontabs
tar -C / --exclude=home/<user>/.npm --exclude=home/<user>/.cache --exclude=home/<user>/.nvm \
-cpf - home/<user> root etc usr/local/bin srv var/lib/tailscale \
var/lib/docker/volumes var/spool/cron | pigz > final.tar.gz
Out came 3.1 GB with nearly 148,000 entries. Before anything was deleted, I verified the archive (pigz -t, tar -tzf, spot checks of critical files), noted a SHA256 checksum and encrypted it with gpg to the USB drive. Then checked once more: gpg-agent terminated, decrypted with the passphrase from the password manager, checksum matched. Identical. Only then did the USB drive go away.
A copy also sat on the SATA SSD, which was deliberately left untouched during installation. Plus the restic backup in the cloud. Three ways back.
The Evening, Part 2: Install Proxmox
A detail I almost missed: the NUC has Intel AMT (hardware-level remote management), and AMT uses the same MAC address as the host. If I hadn’t changed the DHCP reservation in the router before the first startup, AMT would have grabbed the old server IP - exactly the one the VM should get.
After that, the installation was unremarkable:
- AMT activated in MEBx (warning: US keyboard layout)
- Proxmox installer: ZFS only on the NVMe, SATA SSD set to “do not use”
- Enterprise repository off, No-Subscription repository on,
apt full-upgrade
After a few minutes the web interface was there, the ZFS pool online, and the SATA SSD unchanged.
The Evening, Part 3: The Docker VM
I created the VM via qm create on the command line: q35, CPU type host,
6 cores, 32 GB RAM without ballooning, 300 GB disk on ZFS with discard and iothread,
QEMU Guest Agent, autostart.
In it a minimal Debian 12, then deliberately only what was there before:
- Docker and Compose in exactly the old version, pinned with
apt-mark hold - restic as official binary from GitHub (Debian 12 would have only an ancient version)
- a few tools like
sqlite3,pigz,rsync,tmux
I took the hostname of the VM from the old server. That has a tangible reason: restic groups snapshots by hostname. With a new name, each backup group would have started from scratch.
Restore data. The SATA SSD mounted read-only at the host, archive copied to the VM, checksum verified, unpacked - and then not just everything back to /, but selectively via rsync -aHAX --numeric-ids:
- the home directory
- the Docker volumes (with Docker stopped)
- the eight self-built images via
docker load
I deliberately didn’t take the rest of /etc over. The old server had remnants of experiments I didn’t want to carry along.
Tailscale with old identity. Tailscale is my only remote access. Instead of registering the device fresh, I copied the old status from /var/lib/tailscale back. The VM was afterward the same device in the tailnet with the same address - no reconfiguring on phone and laptop.
The Evening, Part 4: Start Services in Order
Not everything at once, but in a fixed order, each with testing:
- Traefik and AdGuard - certificates were not re-requested but taken from backup
- Paperless - 102 documents, preview and full-text search work
- Everything Home Assistant needs - WireGuard tunnel, MQTT, text-to-speech, speech recognition, wallbox, Alexa integration. I had prepared a list of Home Assistant entities beforehand and checked them off point by point that evening
- Everything else - all web services with valid certificate (one stack needed a second attempt due to a Docker Hub timeout)
- Remote access from phone over mobile - Proxmox interface and all services reachable
- Backup - manual run, all 23 groups, cron configured
The most important test at the end: restart VM. Do all 26 containers come back up on their own? Yes. That completed the move - from stopping the containers to here was about three hours, during which home network had to get by without my DNS filter.
The Day After: What Still Came Up
“It runs” is not the same as “it’s done”. The next day I caught up on several things - and found a few that slipped through that evening.
My notes’ offsite backup was broken. rclone from the Debian 12 repository (version 1.60) could still read from OneDrive but not upload to it anymore. My test that evening was a read test - it showed nothing. A current rclone solved it. Lesson: functional tests always with the real operation, so here an upload.
The nightly backup run broke. restic: command not found. The root cron only knows /usr/bin:/bin, but restic lives in /usr/local/bin. From the command line with sudo everything worked because sudo brings a different PATH. Now the script sets its own PATH and is tested with an empty environment as cron has it.
Small configs were missing. The selective /etc restore was right, but an exclude list and a logrotate rule got lost. A comparison of /etc against the archive found them.
New Docker settings only apply to new containers. I set logging via journald and fixed DNS servers for containers in daemon.json - then found existing containers don’t see any of it. For that there’s now a small script that recreates all stacks once.
Plus the part that’s fun: clean up. Three services that nobody really needed are completely gone. Direct ports past Traefik are closed, the VM network configuration is static instead of DHCP, and Proxmox configuration itself now also lands in the restic backup. The NVMe reports via SMART monitoring if something’s wrong.
Two weeks later came the last piece: the SATA SSD as the target for a daily image backup of the VM via vzdump. Exactly what I was missing before.
Pitfalls to Take Along
A few things not in every tutorial:
- Proxmox 9 names network cards fixed
nic0etc. - In the noVNC console of the VM, no pasting - switch to SSH as soon as possible
- AMT is only reachable from the LAN, not via Tailscale and not even from the host itself
- If the
docker compose upis missing the file for a bind mount, Docker creates an empty directory at that location - restic
forgetgroups by path - if a path changes, a new group is created and the old one is never automatically cleaned up - Never write rollback commands as a copyable block before the actual commands in the instructions. Happened to me twice - once marked, copied too much, executed too much
Conclusion
The actual move took about three hours. The preparation a few days, the follow-up another. I think that ratio is right: the more clarified beforehand, the more boring the evening becomes - and boring is the best compliment for something like this.
What helped the most:
- The IP takeover. Not a single device in the house needed reconfiguring.
- The 1:1 principle. Same versions, same hostname, same Tailscale identity. If something doesn’t work, it’s because of the move, not because of an update.
- The way back before anything is deleted. Archive verified, encrypted, double-checked on a second disk. I didn’t need it - but without it I wouldn’t have started the installer.
And what I underestimated: that errors show up only after the evening. The first nightly cron run, the first real upload. A move is only done when all automatic jobs have run once by themselves.
Today the NUC runs Proxmox and a Docker VM with 22 projects, the daily VM image sits on the second SSD, and the door is open for more VMs. Home Assistant is next on the plan - but that’s another story.