Sign inStart free trial
Help center › Hypervisors

Back up and restore VMware vSphere virtual machines

Agentless backup through vCenter Server or ESXi, with quiesced snapshots.

LanguageEnglishRomana

Beyond Cloud backs up VMware virtual machines agentless: nothing is installed inside them. The Beyond Cloud agent runs on any Windows or Linux server that can reach your vCenter Server or ESXi host, and works through the vSphere API.

Supported: vCenter Server and ESXi 7.0 and 8.0, on VMFS and NFS datastores.

How it works

  1. The agent takes a snapshot of each virtual machine. When VMware Tools runs in the guest, the snapshot is quiesced: in Windows guests, VSS flushes SQL Server, Exchange and Active Directory to disk, so the backup is application-consistent.
  2. The frozen disks are read straight from the ESXi host over HTTPS and streamed, encrypted, to Beyond Cloud Vault. For a running virtual machine, ESXi exports the disks of the snapshot (the same export ovftool uses), because it keeps the disk files of a running machine locked. A standalone ESXi host (without vCenter) can't export a snapshot, so there each frozen disk is first copied on its datastore and the copy is read, then deleted: keep free space on the datastore for the used size of the largest disk. A machine that is turned off is read from the datastore directly. Nothing is staged on the agent's disk. Only the blocks that changed since the last backup are uploaded.
  3. The snapshot is removed. This always happens, even if the backup fails or is stopped.

Every backup reads the whole virtual disk (thin disks included), and only what changed is uploaded. So the time a backup takes grows with the size of the disks, not with how much changed: plan the schedule for large virtual machines accordingly.

1. Before you start

  • Install the agent as a server on a machine close to the vSphere hosts. A virtual machine in the same cluster is fine. It needs to reach vCenter on port 443 and, when it connects through vCenter, every ESXi host on port 443 too: the disks are read from the host the virtual machine runs on.
  • Create a vSphere user for Beyond Cloud, for example backup@vsphere.local. Give it, on the vCenter root, a role with these privileges:
  • Datastore: Browse datastore, Low level file operations, Allocate space, Remove file
  • Virtual machine → Snapshot management: Create snapshot, Remove snapshot
  • vApp: Export (to read the disks of running virtual machines)
  • Virtual machine → Inventory: Create new, Remove (for restores)
  • Virtual machine → Configuration: all (for restores)
  • Virtual machine → Interaction: Power off, Power on (for restores)
  • Resource: Assign virtual machine to resource pool
  • Network: Assign network

The Administrator role works too. - Keep VMware Tools running in the guests for application-consistent backups. Without it, the backup is crash-consistent: like pulling the power cord, which modern systems recover from.

Note: The free edition of ESXi (vSphere Hypervisor) only allows reading through the API, so it can't take snapshots for a backup. This is true for every backup product. You need a licensed ESXi or vCenter (vSphere Essentials or higher). The free ESXi 8.0 Update 3e image comes with its 60-day evaluation already expired, so it can't be used for tests either.

2. Connect the agent to vSphere

  1. Open Beyond Cloud Backup → Virtual machines.
  2. In the VMware vSphere card, click Add vCenter or ESXi.
  3. Enter the address (for example vcenter.company.local), the user and the password, then click Connect.

The password is stored encrypted on this computer. The server's certificate is trusted the first time you connect and checked on every connection after that, so a different server can't pretend to be yours.

3. Create the backup

  1. Go to Backup → VMware · your vCenter.
  2. Keep All virtual machines checked, or choose the ones you want.
  3. A good schedule to start with: Full on Saturday at 23:00 and Incremental every day at 22:00.
  4. Choose retention and click Create backup.

Note: These are skipped, and the log says so: virtual machines with snapshots of their own (delete or consolidate them first), independent disks, raw device mappings (RDM), and disks on vSAN or vVols datastores.

4. Restore

Go to Restore → VMware virtual machines, choose the virtual machine and the restore point, then pick one of three options:

  • As a new virtual machine: created in the same vCenter folder, resource pool, datastore and networks, under a new name and with new MAC addresses, so it can run next to the original.
  • In place, with overwrite: the current virtual machine is turned off and deleted, then created again from the backup with the same name and the same MAC addresses where they were set by hand (addresses ESXi or vCenter gave automatically can't be set again, so those adapters get new ones and the log says so). Everything written in it since the restore point is lost, so the app asks you to confirm.
  • Only the virtual disk files: each disk comes back as a .vmdk pair (descriptor and -flat.vmdk) in a folder on the agent's computer. Upload them to a datastore to attach a disk to any virtual machine and copy files from it.

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.

Still stuck? Write to support. We answer within 4 working hours.Next: Back up and restore Hyper-V virtual machines →