Sign inStart free trial
Help center › Hypervisors

Back up and restore Proxmox VE virtual machines and containers

VMs and LXC containers from the Proxmox node, with vzdump snapshots, managed from the node or any computer of your company.

LanguageEnglishRomana

The Beyond Cloud agent runs on the Proxmox node and backs up its virtual machines (QEMU) and containers (LXC) with vzdump, Proxmox's own backup tool. Nothing has to be installed inside the guests, and they keep running during the backup.

Supported: Proxmox VE 7, 8 and 9.

How it works

  1. vzdump takes a snapshot of each guest. With the QEMU guest agent running inside a VM, its file systems are frozen for a moment, so the backup is consistent (see below). Containers are always consistent.
  2. The archive is streamed, encrypted, straight to Beyond Cloud Vault. Nothing is written to the node's disks during a backup. Only the blocks that changed since the last backup are uploaded.

1. Install the agent on the node

Install the Linux agent on each Proxmox node, as a server. The command is in your account, under Install on your computers → Linux. Paste it in the node's Shell: in the Proxmox web interface, click the node (for example pve) in the tree on the left, then Shell. You are root there already.

In a cluster, every node backs up its own guests, so install the agent on every node.

2. Turn on the QEMU guest agent in your VMs

Without the guest agent, the backup of a running VM is crash-consistent: the same as if the power had been cut at that moment. Most systems recover from that, but databases and mail servers may need a repair when restored. With the guest agent, the VM's file systems are frozen for a moment during the snapshot, and the backup is consistent.

The app shows this per VM: on the Hypervisors page, the Consistency column says consistent, or turn on the QEMU guest agent. Containers (LXC) and VMs that are switched off are always consistent.

Two steps are needed, one in Proxmox and one inside the VM:

In Proxmox: select the VM → Options → QEMU Guest Agent → Edit → tick Use QEMU Guest Agent → OK.

Inside the VM, install and start the agent:

Guest system Command
Debian, Ubuntu apt install qemu-guest-agent then systemctl enable --now qemu-guest-agent
Rocky, AlmaLinux, RHEL, Fedora dnf install qemu-guest-agent then systemctl enable --now qemu-guest-agent
Alpine apk add qemu-guest-agent then rc-update add qemu-guest-agent and rc-service qemu-guest-agent start
Windows Install the VirtIO guest tools (virtio-win-guest-tools.exe from the virtio-win ISO). They include the guest agent.

Then shut the VM down and start it again from Proxmox (Shutdown, then Start). A restart from inside the VM is not enough: the channel the agent talks through is only added when Proxmox starts the VM.

To check: the VM's Summary in Proxmox shows its IP addresses when the agent works, and the app shows consistent on the Hypervisors page.

3. Create the backup

You can do this on the node itself, or from any other computer of your company (see section 5).

  1. Open Beyond Cloud Backup → Backup → Proxmox VE virtual machines.
  2. Keep All virtual machines checked, which includes VMs and containers created later, or choose the ones you want.
  3. Choose the schedule and retention, then click Create backup.

A virtual machine can be in only one backup. Two backups of the same machine would run the same work twice, at the same time, and store it twice. If you try to add one, the app tells you which backup already covers it: change that one instead (Edit).

If you'd rather start backups yourself, choose No schedule: run it manually only and use Run now.

4. Restore

Go to Restore → Proxmox VE virtual machines, choose the guest and the day and time in the calendar, then pick one of three options:

  • As a new virtual machine: restored under the next free ID, on the storage you choose (for example local-lvm), named like the original with -restored at the end, with new MAC addresses. Tick Start it to start it when the restore ends; otherwise it stays stopped, and you start it in the Proxmox web interface.
  • In place, with overwrite: the current guest is stopped and replaced (same ID). Everything written in it since the restore point is lost, so the app asks you to confirm.
  • Only the backup file: a standard vzdump archive (.vma or .tar), which you can restore on any Proxmox server with qmrestore or pct restore.

All virtual machines at once: choose All virtual machines at the top of the list, then a day and time in the calendar. Each virtual machine is restored as it was at that time (its newest restore point up to then); machines without a restore point by then are left out, and the page shows which. Restore them as new virtual machines (each named like the original with (restored) at the end) or in place, with overwrite. They are restored one after another, each with its own line and Stop on the Overview; stopping one also cancels the ones still waiting.

Good to know:

  • Containers need free space on the node while they are restored. The archive is first downloaded to the node (/var/lib/vz/dump, or /var/tmp), restored from there and then deleted. Make sure there is about as much free space as the container's backup. VMs are restored directly, without a temporary copy.
  • You can stop a restore with Stop. A restore as a new virtual machine that is stopped halfway is removed again, so no half-restored guest is left behind. Nothing in Beyond Cloud Vault is changed.
  • While a guest is being backed up or restored, Proxmox locks it. Other actions on that guest (for example Start in the web interface) wait until it is unlocked.
  • Before you delete a guest in Proxmox (pct destroy / qmdestroy or Remove in the web interface), check on the Restore page that it has a recent restore point. Its backups stay in Beyond Cloud Vault after it is deleted, and you can restore it as a new virtual machine.

5. From another computer of your company

The node does the work, but you don't have to go to the node: on any computer of your company where Beyond Cloud Backup is installed, the Proxmox node appears too. This works when restoring between computers is turned on for your company (ask us if you don't see it).

  • Hypervisors: the node, its virtual machines and containers, their consistency and their last backup.
  • Backup: the node's backups under Proxmox VE · on pve, with Run now, Stop, Edit and Remove. You can also create a new Proxmox backup there.
  • Restore: the node's restore points, restored on the node with the same three options.
  • Overview and Job History: the node's backups show up here too, marked on pve, with their progress while they run: the scheduled ones and the ones started with Run now, from any computer of your company. Restores show up only on the computer that started them (and on the node), so colleagues don't see each other's restores.

Testing it in a lab

If your Proxmox node is itself a virtual machine (for example under Hyper-V or VMware, to try things out), its VMs need nested virtualization. Without it, they don't start with KVM virtualisation on. Either turn nested virtualization on for the Proxmox VM (Hyper-V: Set-VMProcessor -VMName <name> -ExposeVirtualizationExtensions $true, with the VM off), or, for a quick test only, turn KVM hardware virtualization off in the guest's Options (it is much slower). Containers don't need either.

A test VM that runs a live system straight from an ISO (Alpine, for example) keeps nothing after it is switched off: the guest agent you install there is gone after the Shutdown and Start that Proxmox needs. Install the system to the VM's disk first, set the CD/DVD drive to Do not use any media, start it from the disk, and only then install the guest agent. On Alpine the agent is in the community repository: turn it on in /etc/apk/repositories, then run apk update.

Such a live system may also not react to Shutdown in Proxmox. The shutdown task then waits and keeps the VM locked (can't lock file), and Reset waits behind it. In the node's Shell, end the waiting tasks and stop the VM: pkill -f "qmshutdown:<ID>", qm unlock <ID>, qm stop <ID> (with the VM's ID, for example 102). Inside the VM, use poweroff instead.

After installing a test system to disk, check that it has a network (ping 1.1.1.1) before installing the guest agent: if packages fail with temporary error (try again later), the network didn't start, so configure it again and make it start at boot (Alpine: setup-interfaces -a -r and rc-update add networking boot).

Moving virtual machines from VMware or Hyper-V to Proxmox VE

A VMware or Hyper-V virtual machine backed up by Beyond Cloud can be brought up on a Proxmox VE node from its backup: nothing is read from the old hypervisor, you can pick any restore point, and you can try it as often as you like before the real move.

You need Beyond Cloud Backup 0.8.99 or newer on the Proxmox node and on the hypervisor host (or on the computer that backs up vSphere), at least one finished backup of the virtual machine, and free space on the Proxmox storage for its disks (the full size of the disks, not just what is used).

  1. In the console, open the customer and turn on Computers can restore each other's backups: the Proxmox node reads the backups of the hypervisor host (or of the server that backs up vSphere).
  2. In Beyond Cloud Backup on the Proxmox node , or in the app on another computer of the company (under Restore choose the Proxmox node, on pve), go to Restore → Move to Proxmox VE. The machine is made on that node; in a cluster, install Beyond Cloud Backup on each node you want to move machines to and pick the node in the list (or move the finished machine with Proxmox's own Migrate). The storages offered are the ones that node can use for disk images, shared ones included. Ceph RBD isn't supported for the move yet: use another storage and Move disk afterwards.
  3. Wait for the list of virtual machines. The node reads every restore point of the hypervisor hosts from the Vault, so the first time this takes a minute or two; the list is then kept for ten minutes.
  4. Choose the virtual machine and its restore point, and give it a name on Proxmox (the source's name is proposed). To move several machines together, tick their boxes (or Select all): the calendar then shows the backup times, each machine is taken as it was at the chosen time (one without a backup yet at that time is skipped), and each gets its own name; they are made at the same time on the node.
  5. Choose the storage for its disks: a directory storage (local), LVM-thin or ZFS. Disks are written in the storage's own format (raw files on a directory, volumes on LVM-thin and ZFS).
  6. System in it: this decides which virtual hardware the machine gets, because the system inside must have the drivers for it: - Detect from each backup (the usual choice): the guest type recorded in the backup (VMware's guest OS, Hyper-V's Secure Boot template) says whether it is Linux or Windows. - Linux (VirtIO devices): a VirtIO-SCSI disk and a VirtIO network adapter, the fastest ones; every Linux has the drivers built in. - Windows (SATA + e1000): a SATA disk and an Intel e1000 adapter, slower but Windows boots with them without extra drivers (VirtIO would stop it with INACCESSIBLE_BOOT_DEVICE). Install the VirtIO drivers afterwards and switch. Pick one by hand when the backup can't tell (a VMware machine with no guest OS set) or to override the detection.
  7. Tick Start it if the machine should boot as soon as it is written; leave New MAC addresses unticked for a move (the original stays off) and tick it for a copy next to a running original. Click Move to Proxmox VE. The job runs on the node and shows in Jobs like a restore; a running move can be stopped, and a failed or stopped move deletes the half-made machine.

In a cluster the machine is made on the node that runs Beyond Cloud Backup, with an ID from the cluster. To put it on another node, install Beyond Cloud Backup there too and choose that node under Restore (on pve2), or move it afterwards with Proxmox's own migration. The moved machine is not added to HA; add it yourself if it should be.

A Hyper-V machine with checkpoints (its disk is a chain of files) is moved as it was at the restore point: the chain is flattened on the node while the disk is written. The moved machine has no checkpoints.

A new virtual machine is created with the source's processors, memory, firmware (BIOS or UEFI, with a TPM when the source had one) and network adapters, and its disks are written from the backup. It gets the next free ID, on the node's first bridge, and keeps its MAC addresses, so its network settings, DHCP reservations and licences tied to them keep working: turn the original off before starting the moved machine. For a copy that runs next to the original, tick New MAC addresses. A UEFI machine gets a fresh firmware without the old boot entries, so the move also makes sure the system's boot loader is on the standard path (EFI/BOOT/BOOTX64.EFI) of the EFI System Partition, where the firmware finds it on its own.

  • Linux guests get VirtIO SCSI disks and a VirtIO network adapter. The network interface name changes (for example ens192 → ens18): check its configuration if it isn't on DHCP.
  • Windows guests get SATA disks and an e1000 adapter, which Windows drives out of the box. Install the VirtIO drivers (virtio-win) in it afterwards and switch the devices to VirtIO. If Windows stops at start with INACCESSIBLE_BOOT_DEVICE, change the disk from SATA to IDE in Proxmox and start it again.
  • Hyper-V disks (VHDX) are converted on the node, which needs temporary room for the disk files (in /var/lib/vz/dump or /var/tmp).
  • Don't run the moved machine and the original at the same time on the same network: same name, same MAC and IP addresses, and the Beyond Cloud agent in both would back up as the same computer. Turn the original off before the move, and when the moved machine stays, uninstall Beyond Cloud Backup from the old copy (or remove the old computer from the console).
  • Install the QEMU guest agent in the moved machine for clean shutdowns and consistent backups, and add it to a Proxmox backup in Beyond Cloud.