Cloning an existing Proxmox VM, moving from Debian 12 to Debian 13, dealing with a broken PHP configuration, and turning the upgraded clone into my new production backup server.
Another Project for the Home Lab
In my previous article, I wrote about the rather unexpected failure of one of my Dell PowerEdge R720 servers, and the process of getting Proxmox running again by transplanting its drives into another R720. That turned into a considerably larger project than I had anticipated, particularly since I had just finished remodeling a bathroom and was looking for something a little less involved to work on.
I’d been thinking about upgrading one of my OpenMediaVault 7 installations to OMV8. I use several OMV systems for storage and backups, and while OMV7 was working perfectly well, I was curious how the upgrade would go.
I didn’t want to risk one of my working OMV installations just to see whether an upgrade would work. Since it was running as a Proxmox VM, I figured I’d simply clone it, try the upgrade on the clone, and see what happened. If things went badly, I’d still have the original VM to fall back on.
I selected one of my smaller OMV installations, which primarily handles photo backups from my Google Pixel 8. As things turned out, the upgrade went well enough that I decided to make the upgraded clone my new production server rather than eventually repeating the procedure on the original VM.
The Existing Photo Backup Server
The original server was a virtual machine running on one of my Dell PowerEdge R720 systems under Proxmox VE 9.x. Its primary function was straightforward: provide an SMB share where I could back up photos from my Pixel 8.
I use the PhotoSync application on my Pixel 8 to transfer files to this server. I’ve been very pleased with PhotoSync, which has made backing up the photos on my phone a simple process. The server essentially serves as my own personal “cloud” backup, allowing me to keep copies of my photos on storage that I control. Tailscale lets me access it even when my phone isn’t connected to my home network, which is especially nice when we’re on vacation. I start the transfers manually, which made this particular system a good candidate for an upgrade experiment.
The original VM configuration was:
| Component | Configuration |
|---|---|
| Proxmox host | proxmox-2 |
| VM ID | 203 |
| VM name | OMV7PixelPhotoBackup |
| Linux hostname | omv7-pixelbk |
| Operating system | Debian 12 Bookworm |
| OpenMediaVault | 7.7.2-1 |
| Memory | 4GB |
| CPU | 2 virtual cores, host CPU type |
| Operating system disk | 16GB |
| Data disk | 200GB |
| Disk controller | VirtIO SCSI Single |
| Proxmox storage | HGST_20TB |
| LAN IP address | 192.168.0.206 |

The 200GB data disk was configured using LVM, with an EXT4 filesystem on a logical volume named Photo-Backup-Pool. I was using the openmediavault-lvm2 plugin to manage it, and I was hoping everything would carry over properly to OMV8.
I wanted to make sure the LVM volume would still be recognized, the existing SMB shares and permissions would remain intact, and PhotoSync would continue working without having to reconfigure everything. I really didn’t want to spend a bunch of time rebuilding something that was already working perfectly well.
Checking the Original Installation
Before doing anything, I collected some basic information about the existing installation. I wanted to document the versions involved, the storage layout, and whether the VM was using any network-mounted filesystems that might complicate the cloning process.
From the OMV7 console, I ran:
cat /etc/os-release
dpkg-query -W 'openmediavault*'
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS
findmnt -t nfs,nfs4,cifs
The operating system was Debian 12 Bookworm, and the installed OMV packages included:
openmediavault 7.7.2-1
openmediavault-keyring 1.0.2-2
openmediavault-lvm2 7.0.1-1
The storage layout was as expected. The 16GB system disk contained an approximately 15GB EXT4 root partition and a 975MB swap partition. The second disk was a 200GB LVM physical volume containing the Photo-Backup-Pool logical volume.
The filesystem was mounted under the usual OMV directory structure:
/srv/dev-disk-by-uuid-b03e9611-1c34-4d4b-8119-8b867328aee0
The findmnt command showed no active NFS or CIFS client mounts, which is what I expected. This was useful because I didn’t want the cloned machine accidentally accessing a network-mounted filesystem belonging to another production system.
I initially managed to mess up the package query, and since I’d redirected errors to /dev/null, the command returned nothing. Correcting the syntax produced the expected results. Another reminder that suppressing errors can hide simple mistakes. And I am good at typos.
Choosing Where to Put the Clone
With the original configuration documented, I checked the available storage in Proxmox. The VM was on my HGST_20TB LVM-thin pool, which was already about 89% utilized. I didn’t particularly want to add another 216GB of virtual disks to that pool, especially since my HGST_4TB pool had more than 3TB free.
The original VM had two virtual disks, a 16GB operating system disk and a 200GB data disk. I decided to make a full clone on the HGST_4TB pool rather than a linked clone. I wanted the new VM to have its own independent disks, with no dependency on the original. That way, I could experiment with the upgrade without worrying about affecting the working OMV7 installation.
The new VM would be:
| Component | New configuration |
|---|---|
| VM ID | 213 |
| VM name | OMV8PixelPhotoBackup |
| Proxmox storage | HGST_4TB |
| System disk | 16GB |
| Data disk | 200GB |
| Linux hostname | omv8-pixelbk |
| LAN IP address | 192.168.0.213 |
The hostname and IP address changes would come later. Initially, the clone would have the same guest operating system configuration as VM 203, including its original hostname, static IP address, and Tailscale identity.
Creating the Full Clone
I shut down the original VM and created VM 213 as a full clone on the HGST_4TB storage pool. Proxmox copied both virtual disks, including the 200GB data disk. The cloning process completed without any errors.
Once it finished, I checked the new VM’s configuration from the Proxmox host:
qm config 213
The relevant entries were:
cores: 2
cpu: host
memory: 4096
name: OMV8PixelPhotoBackup
scsi0: HGST_4TB:vm-213-disk-0,iothread=1,size=16G
scsi1: HGST_4TB:vm-213-disk-1,iothread=1,size=200G
scsihw: virtio-scsi-single
Both virtual disks were now associated with VM 213 on the new storage pool. The clone also had a different virtual network adapter MAC address, which Proxmox had generated for it.
I had no intention of booting the cloned VM onto my network in that state, though.


Keeping the Clone Off the Network
Cloning an operating system also clones its identity, at least as far as the guest is concerned.
The new VM inherited the original hostname, omv7-pixelbk, along with its static LAN IP of 192.168.0.206. It also inherited Tailscale’s local state file, which contains information used to identify the machine to the Tailscale network.
If I had simply started both VMs with their network adapters connected, I could have ended up with duplicate IP addresses and two machines attempting to use the same Tailscale identity.
I also needed to consider scheduled jobs. OpenMediaVault supports rsync jobs and other automated maintenance operations. I didn’t want a clone waking up and attempting to run a backup or synchronization against a production destination simply because it had inherited the original configuration. I was 99% certain this instance didn’t use rsync jobs, but I wanted to have the process in place for future upgrades that did.
Before the first boot, I opened VM 213’s network adapter settings in Proxmox and checked the Disconnect option. Proxmox represented this in the VM configuration as:
net0: virtio=BC:24:11:8F:41:94,bridge=vmbr0,firewall=1,link_down=1
The link_down=1 setting is the important part. It disconnects the virtual network link while leaving the adapter configured in the VM.
With that safeguard in place, I could boot VM 213 without worrying about it interfering with the original server. VM 203 could continue operating normally while I worked on the clone.

First Boot: The Storage Was There, but the Network Wasn’t
The cloned VM started without any problems. Once logged into the console, I checked that both disks were present and mounted correctly:
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS
The results showed the 16GB system disk, along with the 200GB LVM volume. The root filesystem, swap partition, and Photo-Backup-Pool were all mounted as expected. So far, so good.
There was one failed systemd service, systemd-networkd-wait-online.service, but that was expected since I’d deliberately disconnected the VM’s network adapter in Proxmox. Running the following commands confirmed that the machine had no active IPv4 network connection:
ip -br -4 addr
ip -4 route
Only the loopback address was present, and there was no IPv4 routing table.
I did manage to confuse myself briefly by running these commands on the original VM 203 instead of the new VM 213. (All numbers matter.) Since both still had the hostname omv7-pixelbk, it wasn’t immediately obvious which console I was using. Once I realized my mistake and ran them on the correct VM, the results made considerably more sense.
The clone itself was isolated, exactly as intended.

Disabling Services Before Reconnecting the Network
Even with the network disconnected, I wanted to address the inherited scheduled services before assigning a new IP address.
Tailscale was installed and configured to start automatically. It also had a copied machine identity from VM 203. I disabled it, along with cron:
systemctl disable --now tailscaled
systemctl disable --now cron
I also inspected the systemd timers:
systemctl list-timers --all --no-pager
Most of the entries were ordinary Debian and OMV maintenance tasks, including package maintenance, filesystem trimming, and scheduled cleanup operations. There was also an Anacron timer (new to me), which can launch periodic jobs independently of the cron daemon.
For the duration of the upgrade, I disabled that as well:
systemctl disable --now anacron.timer
I then checked OMV’s own scheduled job configuration:
omv-confdbadm read --prettify conf.service.rsync.job
omv-confdbadm read --prettify conf.system.cron.job
Both returned:
[]
I left cron, Anacron, and Tailscale disabled until the clone was ready to become production.
Giving the Clone Its Own Network Identity
The next step was to assign a different LAN address.
Rather than manually modifying network configuration files, I used OMV’s console utility:
omv-firstaid
From there, I selected the option to configure the network interface and assigned the following values:
Interface: ens18
IPv4 method: Static
IP address: 192.168.0.213
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS server: 192.168.0.1
The configuration change completed successfully, and I verified the stored settings with:
omv-confdbadm read conf.system.network.interface
The new address, 192.168.0.213, appeared in OMV’s configuration database.
I also wanted the hostname to identify the new system properly. The original had been omv7-pixelbk, so I decided to keep the same naming convention and use omv8-pixelbk. That makes it easy to identify what the VM does and which major release it’s running.
I updated the OMV configuration database, and then applied the configuration:
omv-confdbadm update conf.system.network.dns '{"hostname":"omv8-pixelbk","domainname":"workgroup"}'
omv-salt deploy run hostname hosts
OMV uses its own configuration database and Salt to manage system settings, so I preferred making the changes through OMV rather than editing Linux configuration files directly. Otherwise, OMV could overwrite those changes the next time it regenerated its configuration.
The hostname change worked, although my command prompt still showed omv7-pixelbk. That was easily fixed by starting a new shell:
exec bash
The prompt now identified the machine as omv8-pixelbk.

Bringing VM 213 Onto the Network
With the new IP address and hostname configured, I reconnected VM 213’s network adapter in Proxmox and checked connectivity:
ip -br -4 addr show ens18
ip -4 route
ping -c 3 192.168.0.1
The interface came up with 192.168.0.213/24, the default gateway was correctly set to 192.168.0.1, and all three pings succeeded with no packet loss.
I now had both OMV7 VMs running on the network with their own IP addresses and hostnames. Tailscale and scheduled jobs were still disabled on the clone, so everything was ready for the upgrade.
One More Safety Net: A Proxmox Snapshot
Although the original VM was still available, I took a Proxmox snapshot of VM 213 named pre-omv8-upgrade. This would give me a quick way to roll back if the upgrade failed, without having to start over with another clone.
I also checked the available disk space and made sure there weren’t any incomplete package installations:
df -h /
dpkg --audit
The system partition had plenty of room for the upgrade:
Filesystem Size Used Avail Use%
/dev/sda1 15G 3.5G 11G 25%
The package audit returned no errors, so everything looked ready for the upgrade.

Updating OMV7 Before the Major Upgrade
Before upgrading to OMV8, I brought the existing OMV7 installation up to date:
omv-upgrade
The command updated the Debian and OMV packages, including the openmediavault-lvm2 plugin, and regenerated the necessary configuration files and initramfs. Everything completed without errors, leaving me at OMV version 7.7.24-7.
Moving From Debian 12 and OMV7 to Debian 13 and OMV8
With OMV7 fully updated, I started the major-version upgrade:
omv-release-upgrade
This is OMV’s built-in release-upgrade utility, which handles the transition to the next major release, including the underlying Debian operating system. In this case, that meant moving from Debian 12 Bookworm to Debian 13 Trixie, along with OMV7 to OMV8.
The upgrade processed quite a few packages and eventually completed without any apparent problems. I then rebooted the VM, although I jumped the gun a little. I’d intended to perform a few more checks first but hadn’t read the last couple of lines of my notes. Fortunately, the reboot didn’t cause any problems.
Once the machine was back up, I checked the operating system, OMV version, and hostname:
cat /etc/os-release
dpkg-query -W openmediavault
hostname
Everything looked good:
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
VERSION_ID="13"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.8
A quick check with ip -br -4 addr show ens18 also confirmed the network interface was up with its assigned address of 192.168.0.213/24.
So Debian 13 was running, OMV8 was installed, and the network configuration had survived the upgrade. Not bad.

Then I tried opening the OMV web interface.
502 Bad Gateway: The Web Interface Didn’t Survive
Instead of the OMV login page, I was greeted with a 502 Bad Gateway error. Great.
Since nginx typically returns this error when it can’t communicate with its backend, I started by checking the web server and PHP services:
systemctl is-active nginx php8.4-fpm
Both were active, so I checked the available PHP sockets and nginx configuration:
ls -l /run/php/
grep 'fastcgi_pass' /etc/nginx/sites-enabled/openmediavault-webgui
The problem became obvious. The PHP 8.4 service was running, but nginx was still configured to use the old PHP 8.2 socket:
fastcgi_pass unix:/run/php/php8.2-fpm-openmediavault-webgui.sock;
Since Debian 13 uses PHP 8.4, that socket no longer existed. The operating system upgrade had worked, but OMV’s nginx configuration hadn’t been updated properly.

Fixing the PHP Configuration
Rather than manually editing nginx’s configuration, I used OMV’s Salt utility to regenerate the PHP and nginx settings:
omv-salt deploy run phpfpm nginx
The command completed successfully. I verified the changes with:
ls -l /run/php/
grep 'fastcgi_pass' /etc/nginx/sites-enabled/openmediavault-webgui
The correct PHP 8.4 socket was now present, and nginx was pointing to it:
fastcgi_pass unix:/run/php/php8.4-fpm-openmediavault-webgui.sock;
I refreshed the browser, and the OMV web interface was working again. No manual configuration changes or additional package installations were needed.

Checking the Storage and SMB Shares
With the PHP configuration corrected, I checked that the 200GB LVM volume was still mounted and the existing SMB shares were accessible.
From the Linux console, I ran:
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINTS
The output showed the original storage layout:
sda 16G
├─sda1 15G ext4 /
├─sda2 1K
└─sda5 975M swap [SWAP]
sdb 200G LVM2_member
└─Photo--Backup--Pool-Photo--Backup--Pool
200G ext4
/srv/dev-disk-by-uuid-b03e9611-...
Both the system disk and the LVM volume were mounted properly, with no changes needed.
Next, I opened Windows Explorer and browsed to the new server: \\OMV8-PIXELBK\Photo-Backup-Pool
The share was accessible, and the Google Pixel 8 folder contained all my existing photos and directories. Everything had carried over from OMV7 without having to recreate the storage or SMB configuration.

I also checked for failed systemd services:
systemctl --failed --no-pager
The command returned 0 loaded units listed, confirming there were no failed services reported after the upgrade.
An Odd Debian 13 Console Warning
One annoyance after the upgrade was a recurring warning on the console:
systemd-ssh-generator:
Failed to query local AF_VSOCK CID:
Cannot assign requested address
This was coming from Debian 13’s systemd SSH socket generator. AF_VSOCK is used for communication between virtual machines and their hosts, and apparently the generator was looking for functionality that wasn’t available in my Proxmox VM.
Despite the warnings, everything appeared to be working normally. Networking, SMB, and the OMV web interface were all functioning, and systemd reported no failed services. I decided to leave the warnings alone rather than make unnecessary changes. I can always revisit them later if they become a problem.

Reconfiguring Tailscale for the New Server
Next was Tailscale, which PhotoSync uses to reach my server when I’m away from home. Since VM 213 was cloned from VM 203, it had also inherited the original machine’s Tailscale identity. I needed to give the new server its own identity so the two wouldn’t conflict.
With Tailscale still stopped, I moved the original state file aside, restarted the service, and initiated a new login:
mv /var/lib/tailscale/tailscaled.state /root/tailscaled.state.old-clone
systemctl enable --now tailscaled
tailscale up --hostname=omv8-pixelbk
Tailscale provided an authentication URL, which I opened in my browser to authorize the new machine. Once connected, I retrieved its new IP address:
tailscale ip -4
Tailscale also displayed a warning about other devices advertising subnet routes while --accept-routes was disabled. Since PhotoSync connects directly to this server, those routes weren’t needed, so I left the setting alone.

The Real Test: Sending Photos From My Phone
With Tailscale configured, I opened PhotoSync on my Pixel and updated the existing SMB destination to use the new Tailscale IP address. The share (Photo-Backup-Pool) and destination folder (Google Pixel 8) remained unchanged.
I initiated a transfer, and everything worked. PhotoSync connected through Tailscale and successfully copied files to the OMV8 server. The existing SMB share, permissions, and LVM storage were all working as before. Nice. At this point, I was satisfied that VM 213 could replace the original OMV7 server.

Deciding to Keep the Clone as Production
I’d originally planned to use VM 213 just to test the upgrade, then repeat the process on VM 203 if everything worked. But with OMV8 running properly, I couldn’t see any reason to do it all over again. The clone already had its own disks, network configuration, and Tailscale identity, so I decided to keep it as my new production server.
I shut down VM 203, leaving it available as a fallback. Since PhotoSync was the only application using the old server, and I hadn’t transferred any new files since cloning it, there was nothing to synchronize between the two VMs. The changeover was pretty straightforward.
Replacing the Snapshot With PBS Protection
I already use Proxmox Backup Server for my regular VM backups, so I updated the scheduled backup job to include VM 213 instead of VM 203. I also ran a manual backup of the new OMV8 server, including both its 16GB system disk and 200GB data disk.
The backup completed successfully, so I removed the pre-omv8-upgrade snapshot. With VM 213 now protected by PBS and the original VM 203 still available as a fallback, I had no reason to keep the snapshot around.

Restoring Scheduled Maintenance
I’d disabled cron and Anacron earlier to prevent the clone from running any scheduled jobs. With VM 213 now in production, I re-enabled them:
systemctl enable --now cron
systemctl enable --now anacron.timer
I then verified that both services, along with Tailscale, were enabled and running:
systemctl is-enabled cron anacron.timer tailscaled
systemctl is-active cron anacron.timer tailscaled
All three reported enabled and active, completing the last bit of cleanup on the new OMV8 server.
The Final Configuration
After completing the migration, the two virtual machines looked like this:
| Component | Original VM | New production VM |
|---|---|---|
| VM ID | 203 | 213 |
| VM name | OMV7PixelPhotoBackup | OMV8PixelPhotoBackup |
| Hostname | omv7-pixelbk | omv8-pixelbk |
| Operating system | Debian 12 | Debian 13 |
| OpenMediaVault | 7.7.2-1 originally | 8.7.1-1 |
| LAN address | 192.168.0.206 | 192.168.0.213 |
| Proxmox storage | HGST_20TB | HGST_4TB |
| System disk | 16GB | 16GB |
| Data disk | 200GB | 200GB |
| Tailscale identity | Original | New |
| PhotoSync destination | Former destination | Working |
| PBS backup schedule | Removed | Included |
| Current state | Powered off | Running |
I’ll keep VM 203 powered off for a while in case something unexpected turns up with the new installation. Once OMV8 has been running reliably and has accumulated a few more PBS backups, I’ll remove the original VM and reclaim the storage space.
Was the Upgrade Worth It?
For this installation, absolutely. I now have an OMV8 server running on Debian 13, with the original 200GB LVM volume and SMB shares intact. PhotoSync is once again transferring files from my Pixel 8 through Tailscale, and the new VM is included in my regular PBS backups.
This is one reason I like running these smaller servers as VMs. Rather than risk upgrading a working server, I could clone it, isolate it from the network, and try the upgrade while keeping the original available. Once everything was working, I simply kept the clone as my new production server.
There are a couple of things I’ll keep in mind when upgrading my other OMV installations. A full VM clone also copies network settings, scheduled jobs, and application identities such as Tailscale’s. Those need to be addressed before connecting the clone to the network. And just because an operating system upgrade completes successfully doesn’t mean every service is configured correctly. In my case, nginx was still pointing to PHP 8.2 instead of 8.4, although that turned out to be an easy fix using OMV’s Salt utility.
I have other OMV installations with considerably more storage and more complicated backup arrangements. Those will require a little more planning, particularly when it comes to network mounts and scheduled synchronization jobs. But this smaller server was a good place to start, and I’m pleased with how it turned out.
Considering my previous home lab project involved a failed Dell R720, a disappearing RAID controller, filesystem repairs, and moving eight drives into another server, this was a welcome change. No hardware failures, no reinstalls, and no lost data. Just a VM clone, an operating system upgrade, and one misconfigured PHP service.
I’ll take that for a change.
Leave a Reply