Restore a machine to a cloud powered by VMware
You can restore a backup created with Veeam Agent from the Selectel repository to a cloud powered by VMware.
For recovery to be possible, you must have a system image with required drivers (Linux) or a boot disk (Windows) created before recovery; read more in the instructions Preparing for recovery using Veeam Recovery Media.
For recovery, you will need:
-
a machine backup created in Entire computer mode or containing the necessary partitions;
-
resources in a cloud powered by VMware:
- a virtual data center;
- a vApp;
- a network with internet access.
For more information on connecting to a cloud powered by VMware, see the instructions Cloud powered by VMware: Quick Start.
After restoration, the server name, login, and root password remain the same as the original from the backup. They can be redefined using guest OS recustomization or manually.
To restore a virtual machine:
- Create an empty virtual machine.
- Optional: install VMware Remote Console.
- Start the empty virtual machine.
- Load Tools virtual device drivers (Windows only).
- Restore the backup to the virtual machine.
- Configure the network environment.
- Deploy a virtual machine with Windows Server (Windows only).
- Install VMTools.
- Configure backups on the restored machine.
1. Create an empty virtual machine
-
From the control panel, open the Cloud Director panel: in the top menu, click Products → Cloud powered by VMware → Cloud Director section.
-
Open the virtual data center page.
-
Go to the Compute → vApps section.
-
In the vApp card, click ACTIONS.
-
Click Add → Add VM.
-
Click Add virtual machine.
-
In the Name field, enter a name for the virtual machine.
-
In the Computer name field, enter the host name.
-
In the Type field, select New.
-
In the OS family field, select the same OS family as on the original server (the backup source).
-
Specify the Operating System — the same OS as on the original server (the backup source).
-
Specify the Boot image:
- for Linux:
veeam-recovery-media-5.0.2.4567_x86_64.iso; - for Windows: Veeam recovery media.
- for Linux:
-
In the Virtual CPUs field, specify the number of vCPUs.
-
In the Memory field, specify the amount of memory.
-
In the Storage block, remove all disks. They will be added later.
-
To select a storage policy for the virtual machine, check the Use custom storage policy checkbox and, in the Storage Policy field, select the required policy. If you do not select a policy, the default one will be applied.
-
In the Networking block, click CUSTOMIZE.
-
In the Network column, select a network —
default_netor another network with internet access. -
In the Network Adapter Type column, select
VMXNET3. -
In the IP Mode column, select the mode appropriate for the chosen network.
-
Click OK.
-
Check the new VM parameters and click ADD.
-
Open the vApp page → Virtual Machines section.
-
Open the virtual machine page.
-
Go to the Hardware → Hard Disks section.
-
Click EDIT.
-
Click ADD.
-
Configure each virtual disk to match the disks on the source machine:
- Size — volume sufficient for restoring the source data;
- Policy — any;
- Bus Type —
Paravirtual (SCSI); - Bus Number, Unit Number — default.
-
Click SAVE.
2. Optional: install VMware Remote Console
VMware Remote Console is required to use the mouse in the virtual machine console.
- From the control panel, open the Cloud Director panel: in the top menu, click Products → Cloud powered by VMware → Cloud Director section.
- Open the virtual data center page.
- Go to the Compute → vApps section.
- Open the vApp page → Virtual Machines section.
- Open the virtual machine page.
- Click ALL ACTIONS → VM Console → Download VM Remote Console. You will need a VMware Customer Connect account to download it, which you can create while downloading VMware Remote Console.
3. Start the empty virtual machine
- From the control panel, open the Cloud Director panel: in the top menu, click Products → Cloud powered by VMware → Cloud Director section.
- Open the virtual data center page.
- Go to the Compute → vApps section.
- In the vApp card, click ACTIONS.
- Click Power → Power on.
- In the virtual machine menu, click VM Console → Launch Remote Console or Launch Web Console. The Veeam Recovery Media recovery environment will load automatically. If the environment does not load, check the settings.
- Wait for Veeam Recovery Media to load the network configuration and SSH (if DHCP is available). If you do not require SSH, click Proceed without SSH. After 60 seconds, the parameters of the automatically configured network and access will be displayed.
Verify Veeam Recovery Media settings
If Veeam Recovery Media does not load, check the settings.
-
From the control panel, open the Cloud Director panel: in the top menu, click Products → Cloud powered by VMware → Cloud Director section.
-
Open the virtual data center page.
-
Go to the Compute → vApps section.
-
Open the vApp page → Virtual Machines section.
-
Open the virtual machine page.
-
Go to the Hardware → Removable Media section.
-
Make sure the correct boot disk is selected in the CD/DVD drive field:
- for Linux:
veeam-recovery-media-5.0.2.4567_x86_64.iso - for Windows: Veeam recovery media.
- for Linux:
-
Go to the General section.
-
Make sure Enabled is set in the field Enter BIOS Setup.
-
Reboot the virtual machine.
4. Load Tools virtual device drivers (Windows)
Drivers only need to be loaded for Windows-based machines.
- In Veeam Recovery Media, go to the Tools section.
- Select Load Driver.
- For the SAS Controller and Ethernet Controller drivers, click Install driver.
- Make sure both drivers have an Online status.
- Check the Inject these drivers into operating system while performing bare metal recovery checkbox.
- Click OK.
5. Restore the backup to a virtual machine
Use the Restore a virtual machine instructions for your operating system.
6. Configure the network environment
By default, the virtual machine network adapters do not match the network adapters of the original machine. Configure the settings according to the requirements of the new network environment.
7. Deploy a virtual machine with Windows Server
If you are using Windows, use the Deploy a virtual machine with Windows Server instructions.
8. Install VMTools
Ubuntu/Debian
RHEL/CentOS/Fedora
SuSE
Windows
-
Install VMTools (Perl required):
sudo apt install open-vm-tools -
Make sure the service is running:
systemctl status open-vm-tools -
If the virtual network adapter drivers or open-vm-tools are missing, the virtual machine will not be connected to the network. In this case, complete steps 1-4 of the Install VMware Tools instructions.
-
Verify if the disk with VMTools is mounted automatically on the virtual machine:
mountCommand output:
/dev/cdrom on /mnt/cdrom -
If the disk is not mounted, mount it, taking into account the file device paths and mount points depending on the distribution:
sudo mkdir /mnt/cdromsudo mount /dev/cdrom /mnt/cdrom -
Check if an archive with the
.tar.gzextension containing VMTools exists on the mounted device:ls /mnt/cdrom -
Extract the archive to the
/tmp:directory:tar -zxpf /mnt/cdrom/<vmwaretools.tar.gz> -C /tmpSpecify
<vmwaretools.tar.gz>— the name of the VMware Tools archive, which depends on the version. -
Go to the directory with the extracted archive:
cd /tmp/vmware-tools-distrib -
Run the installation script:
sudo ./vmware-install.pl -
Follow the installer instructions.
-
After installation, reboot the virtual machine.
9. Configure backups
The Cloud powered by VMware backup service is available for backing up VMware virtual machines.
Linux
Windows
Veeam agents use the BIOS UUID to identify machines. The restored machine has a new BIOS UUID, so existing backup chains in Veeam Agent might fail to continue.
-
Remove the Veeam agents:
Ubuntu, Debian:
sudo apt remove veeamma veeamRHEL, CentOS, Fedora:
sudo yum remove veeamma veeamSuSE:
sudo zypper remove veeamma veeam -
Install the management agent and backup agent again.