04 66 72 51 22

VMware ESXi: the agent cannot connect to the host or load the VDDK library

This page is intended for administrators who back up or restore VMware ESXi virtual machines (VMs) with BeBackup. It lists the agent's prerequisites and explains connection errors with the ESXi host or vCenter. It applies to BeBackup agent 7 for Windows.

What the agent requires

The agent that backs up or restores ESXi VMs is not installed on the host. It runs on a Windows workstation or server that reaches the host over the network. It requires:

  • network access to the ESXi host, or to vCenter, on port 443;
  • access to port 22 on the ESXi host, for the VM configuration files;
  • depending on the transport mode selected by VMware, access to port 902 on each ESXi host may also be required in order to read and write the virtual disks;
  • an ESXi or vCenter account authorised to read the VMs, create snapshots and, for a restore, write to the virtual disks;
  • outbound HTTPS access, on first use, to download the VMware VDDK (Virtual Disk Development Kit) library and the Visual C++ component. In your proxy and your firewall, allow the addresses https://bebackup.fr/agent/libs/vmware/ and https://bebackup.fr/agent/libs/VC_redist/, as well as the fallback address https://f.hosting.bebackup.fr/bb/, used in particular by older agents;
  • the Microsoft Visual C++ Redistributable 2022 component.

The host's SSH service

The agent reads and writes the VM configuration files over SSH (Secure Shell). If the host's SSH service is stopped, the agent starts it for the duration of the operation, then stops it again. No action is required on your part. Port 22 on the host must be reachable from the agent.

The VDDK library fails to download or to load

Symptom

The backup or restore fails with one of these messages:

  • Téléchargement de la librairie VMWare VixLib <version> impossible : <url> : <erreur>
  • Téléchargement de la librairie VMWare VixDisk impossible (Version téléchargée: …/Version demandée: …).
  • Chargement de la librairie vixDiskLib impossible. Erreur: …
  • Chargement de la librairie vixDiskLib impossible (P2). Erreur: …

Cause and resolution

On first use, the agent downloads the VDDK library and installs it in its own folder.

  • The first message indicates a network failure during the download: it quotes the requested address and the error returned. Check that the agent's machine can reach the addresses listed above over HTTPS, including through your proxy and your firewall.
  • The second message indicates that the downloaded file is not the expected version (version too old).

Loading the library most often fails with error 126. This means that a Windows component is missing: the Microsoft Visual C++ Redistributable 2022. The agent then attempts to download and install it on its own, and retries. The message with (P2) indicates that this second attempt also failed. Install the Microsoft Visual C++ Redistributable 2022 (x64 and x86) on the agent's machine, then run the operation again.

If the machine has no Internet access, install this component manually before the first ESXi backup.

The agent cannot connect to the host

Symptom

The operation fails with one of these messages:

  • Connexion au serveur ESXi impossible. Erreur A01: …
  • Erreur vimConnect: …
  • Erreur vixDiskConnect: …

The text after the colon gives the error returned by VMware.

Checks

Carry out these checks in order.

  1. Check that the agent's machine can reach the host on port 443. Open the ESXi host's web interface in a browser, from that machine.
  2. Check the username and password in a browser, on the host's web interface.
  3. If your VMs are managed by a vCenter, check that the backup configuration goes through vCenter. The option is called Passer par vCenter in the profile's ESXi configuration, and Se connecter via un vCenter in the restore wizard of the web interface.
  4. Check that the host's certificate has not changed. See the next section.

The host's certificate

The agent identifies the host by its certificate fingerprint. If the host's certificate changes, for example after a reinstallation or a renewal, the stored fingerprint no longer matches.

In the profile's ESXi configuration, on the web interface, click Actualiser la liste des VM et afficher les VD. The interface confirms with Liste des VM actualisée et empreinte du certificat mise à jour. The Vérifier le certificat option determines whether the fingerprint is checked.

In the agent's ESXi restore screen, the agent shows you the host's certificate and asks whether you trust it:

  • Voulez-vous faire confiance au serveur présentant le certificat SSL : followed by the fingerprint. Check the fingerprint, then accept.
  • If you decline, the agent displays Connexion abandonnée : certificat non accepté.
  • If the certificate cannot be read, the agent displays Le certificat retourné par le serveur est invalide. Erreur 95264.

The trust prompt appears on first contact with the host, whether or not the Ne pas vérifier le certificat option on that screen is ticked. This option, ticked by default, applies only to certificate checking during the restore itself; it does not suppress the prompt.

Password containing spaces

The agent's ESXi restore screen strips spaces at the beginning and end of the password entered. A password that begins or ends with a space is therefore rejected. Use an account whose password neither begins nor ends with a space.

The SSH component is missing

If the operation fails with Librairie TGPuttyLib non trouvée., the tgputtylib.dll file is missing from the agent's folder. An antivirus may have quarantined it: check your antivirus quarantine first.

This file is not supplied by the agent installer: it comes with the VDDK library. Reinstalling the agent therefore does not put it back. There are two solutions:

  • copy tgputtylib.dll from the vixlib\<version>\ subfolder of the agent's folder into the agent's folder itself;
  • or delete the vixlib\<version>\ folder: the agent will then download the library again at the next operation, and put the file back in place.

If the problem persists

Contact BeBackup support. Please include:

  • the version of the ESXi host and, where applicable, of vCenter;
  • the full error message;
  • the agent service log, bbAgent-service.log.

BeBackup is backup built for IT service providers

Backup and restore of workstations, servers, virtual machines and Microsoft 365, encrypted at source with a key we do not hold, on the hosting of your choice.