Security release with VMware hot-add, plus fixes from three outside pull requests and from the review of the ZFS container support. Recommended for everyone, especially with Hyper-V hosts (security fix) and VMware VMs.
Security
- Hyper-V: no PowerShell injection through quotes. Values put into the PowerShell scripts on a Hyper-V host (for example the VM name typed for a restore, or the notes of a VM in a backup) had only the ASCII single quote escaped. PowerShell also ends a string at the typographic quotes ‘ ’ ‚ ‛, so a console user allowed to restore could run commands as SYSTEM on the Hyper-V host. All five are escaped now. Found in our review of #46; update the agents on Hyper-V hosts.
New
- VMware: hot-add, no copy on the datastore (#44). Backups of running VMs copied every disk to a temporary VMDK on the production datastore at every run, incremental ones too. With Hot-add (Agents → VMware ESXi hosts, under the proxy agent; off by default) a proxy agent that runs as a Linux VM seeing the datastores attaches the snapshot's disks to its own VM read-only (independent-nonpersistent), reads only the blocks changed block tracking reports, and detaches them before the snapshot is removed: no temporary copy, no extra space, an incremental of a 2 TB VM with 20 GB of changes reads 20 GB. Whatever fails falls back to the copy, with a warning. In the lab an 8 GiB disk was read in 23 s and the next incremental (221 MiB) in 5 s. Also
vmware backup --hot-addon the command line.
Fixed
- Windows: VSS with the QEMU guest agent provider (#45, by gtawelt). The VSS provider of the QEMU guest agent (virtio-win 0.1.302 and later) returns empty snapshot properties, so image backups read the live volume and file backups with VSS read live files while reporting a snapshot. The properties are now read from VSS's snapshot list; if no device can be found, the backup says it read without a snapshot.
- Hyper-V: a cancelled backup no longer leaves a checkpoint behind (#46, by gtawelt). Cancelling while the checkpoint was being created left it under Hyper-V's default name, and the VM kept running on growing differencing disks. The checkpoint is now finished and removed (a cancelled backup waits at most 5 minutes for it); without a cancel there is no time limit, as before.
- Command line:
latestmeans the newest backup of the given VM (#47, by gtawelt), not the newest snapshot of the repository, for the VMware, Hyper-V and Proxmox VE commands. The command names the snapshot it chose, and refuses when guests of several hosts have the ID under different names (give the snapshot ID).vmware restorenow holds a shared repository lock like the other restores. - Proxmox containers on ZFS (from the review of #42): unchanged files are taken only from earlier backups of the same host (guest IDs repeat across hosts); a restore checks that the new subvolume is really mounted; the restore notes name kept settings that act on the host (hook scripts, raw
lxc.*keys, device passthrough, raw QEMU args, passed-through PCI/USB devices). - File restores keep sparse files sparse: chunks of zeros are skipped instead of written.
- The console needs about 440 MB less memory: page templates are parsed when a page is first shown in a language instead of all 14 languages at start.
The VMware, Hyper-V, VSS, restore and command line changes are in the agent: update the agents to 0.54.0 as well (the console offers it on the Agents page).
Thanks to gtawelt for three precise pull requests with lab results, and to wong237ma for the detailed VMware feedback in #44.
Releases are signed with the BackupZit release key; consoles verify them before installing.