Restore a machine to a VMware-based cloud
You can restore a backup created with Veeam Agent from the Selectel repository in the VMware-based public cloud. For more information about recovery via Veeam Recovery Media, please refer to the manual Recovery with Veeam Recovery Media.
In order for recovery to be possible, you must have a system image with the necessary drivers (Linux) or a boot disk (Windows) created prior to recovery, see the instructions for details Recovery with Veeam Recovery Media.
You'll need:
-
a backup of the machine created in Entire computer mode or containing the required partitions;
-
resources in a VMware-based public cloud:
- virtual data center;
- vApp;
- network with internet access.
Learn more about connecting to the public cloud in the instructions VMware-based public cloud: a quick start.
After the restore, the server name, root login and password are the same as the original ones from the backup. They can be overridden with guest OS recastomization or manually.
To restore a virtual machine:
- Create an empty virtual machine.
- Optional: Install the VMware Remote Console.
- Start an empty virtual machine.
- Download the Tools virtual device drivers (Windows only).
- Restore the backup to a virtual machine.
- Configure the network environment.
- Deploy a virtual machine with Windows Server (Windows only).
- Install VMTools.
- Set up a backup on the restored machine.
Create an empty virtual machine
-
From control panels open the Cloud Director panel: VMware-based cloud → Cloud Director.
-
Open the virtual data center page.
-
Go to the section Compute →vApps.
-
In the vApp card, click ACTIONS.
-
Click Add → Add VM.
-
Click Add virtual machine.
-
In the field Name enter a name for the virtual machine.
-
In the field Computer name enter the host name.
-
In the field Type select New.
-
In the field OS family select the OS family as on the original server (backup source).
-
Specify Operating System — OS as on the original server (backup source).
-
Specify Boot image:
- for Linux:
veeam-recovery-media-5.0.2.4567_x86_64.iso
; - for Windows: Veeam recovery media.
- for Linux:
-
In the field Virtual CPUs Specify the number of vCPUs.
-
In the field Memory specify the amount of memory.
-
In the block Storage delete all disks. They will be added later.
-
To select a virtual machine storage policy, select the check box Use custom storage policy and in the field Storage Policy select the desired policy. If you do not select a policy, the default policy will be applied.
-
In the block Networking click CUSTOMIZE.
-
In the column Network select network —
default_net
or other network with internet access. -
In the column Network Adapter Type select
VMXNET3
. -
In the column IP Mode select the appropriate mode for the selected network.
-
Click OK.
-
Check the settings for the new VM and click ADD.
-
Open the vApp page → section Virtual Machines.
-
Open the virtual machine page.
-
Go to the section Hardware → Hard Disks.
-
Click EDIT.
-
Click ADD.
-
Configure each virtual disk to match the disks on the source machine:
- Size — volume sufficient to reconstruct the original data;
- Policy — any;
- Bus Type —
Paravirtual (SCSI)
; - Bus Number, Unit Number — by default.
-
Click SAVE.
optional: Install VMware Remote Console
VMware Remote Console is required to use the mouse in the virtual machine console.
- From control panels open the Cloud Director panel: VMware-based cloud → Cloud Director.
- Open the virtual data center page.
- Go to the section Compute →vApps.
- Open the vApp page → section Virtual Machines.
- Open the virtual machine page.
- Click ALL ACTIONS → VM Console → Download VM Remote Console. A VMware Customer Connect account will be required for downloading, and can be registered when downloading VMware Remote Console.
Start an empty virtual machine
- From control panels open the Cloud Director panel: VMware-based cloud → Cloud Director.
- Open the virtual data center page.
- Go to the section Compute →vApps.
- In the vApp card, click ACTIONS.
- Click Power → Power on.
- From the virtual machine menu, click VM Console → Launch Remote Console or Launch Web Console. The Veeam Recovery Media will be loaded automatically. If the environment does not load, check settings.
- Wait for Veeam Recovery Media to load the network configuration and SSH (if DHCP is available). If SSH is not required, click Proceed without SSH. After 60 seconds, the automatically configured network and access parameters will be displayed.
Check Veeam Recovery Media settings
If Veeam Recovery Media does not load, check the settings.
-
From control panels open the Cloud Director panel: VMware-based cloud → Cloud Director.
-
Open the virtual data center page.
-
Go to the section Compute →vApps.
-
Open the vApp page → section Virtual Machines.
-
Open the virtual machine page.
-
Go to the section Hardware → Removable Media.
-
Make sure that the field CD/DVD drive the correct boot disk has been selected:
- for Linux:
veeam-recovery-media-5.0.2.4567_x86_64.iso
- for Windows: Veeam recovery media.
- for Linux:
-
Go to the section General.
-
Make sure that the field Enter BIOS Setup indicated Enabled.
-
Reboot the virtual machine.
Download Tools virtual device drivers (Windows)
Driver downloads are only needed for Windows machines.
- In Veeam Recovery Media, go to the Tools.
- Select Load Driver.
- For SAS Controller and Ethernet Controller drivers, click Install driver.
- Make sure both drivers have a status of Online.
- Check the box Inject these drivers into operating system while performing bare metal recovery.
- Click OK.
Restore the backup to a virtual machine
Use the instructions Restore the virtual machine for the right OS.
Configure the network environment
By default, the virtual machine's network adapters do not match the network adapters of the original machine. Configure the settings to match the conditions of the new network environment.
Deploy a virtual machine with Windows Server
If you are using Windows, use the instructions Deploy a virtual machine with Windows Server.
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 connect to the network. In this case, follow steps 1-4 in the instructions Install VMware Tools.
-
On the virtual machine, check to see if the VMTools disk is mounted automatically:
mount
Command output:
/dev/cdrom on /mnt/cdrom
-
If the disk is unmounted, mount it with device file paths and mount points depending on the distribution:
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom -
Check if there is an archive with the extension
.tar.gz
with VMTools on the mounted device:ls /mnt/cdrom
-
Extract the archive to the directory
/tmp
:tar -zxpf /mnt/cdrom/<vmwaretools.tar.gz> -C /tmp
Specify
<vmwaretools.tar.gz>
— VMware Tools archive name, depends on the version. -
Navigate to the directory with the unzipped archive:
cd /tmp/vmware-tools-distrib
-
Run the installation script:
sudo ./vmware-install.pl
-
Follow the installer's instructions.
-
After installation, reboot the virtual machine.
-
Install VMTools (Perl required):
sudo yum 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 connect to the network. In this case, follow steps 1-4 in the instructions Install VMware Tools.
-
On the virtual machine, check to see if the VMTools disk is mounted automatically:
mount
Command output:
/dev/cdrom on /mnt/cdrom
-
If the disk is unmounted, mount it with device file paths and mount points depending on the distribution:
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom -
Check if there is an archive with the extension
.tar.gz
with VMTools on the mounted device:ls /mnt/cdrom
-
Extract the archive to the directory
/tmp
:tar -zxpf /mnt/cdrom/<vmwaretools.tar.gz> -C /tmp
Specify
<vmwaretools.tar.gz>
— VMware Tools archive name, depends on the version. -
Navigate to the directory with the unzipped archive:
cd /tmp/vmware-tools-distrib
-
Run the installation script:
sudo ./vmware-install.pl
-
Follow the installer's instructions.
-
After installation, reboot the virtual machine.
-
Install VMTools (Perl required):
sudo zypper 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 connect to the network. In this case, follow steps 1-4 in the instructions Install VMware Tools.
-
On the virtual machine, check to see if the VMTools disk is mounted automatically:
mount
Command output:
/dev/cdrom on /mnt/cdrom
-
If the disk is unmounted, mount it with device file paths and mount points depending on the distribution:
sudo mkdir /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom -
Check if there is an archive with the extension
.tar.gz
with VMTools on the mounted device:ls /mnt/cdrom
-
Extract the archive to the directory
/tmp
:tar -zxpf /mnt/cdrom/<vmwaretools.tar.gz> -C /tmp
Specify
<vmwaretools.tar.gz>
— VMware Tools archive name, depends on the version. -
Navigate to the directory with the unzipped archive:
cd /tmp/vmware-tools-distrib
-
Run the installation script:
sudo ./vmware-install.pl
-
Follow the installer's instructions.
-
After installation, reboot the virtual machine.
- From control panels open the Cloud Director panel: VMware-based cloud → Cloud Director.
- Open the virtual data center page.
- Go to the section Compute → Virtual Machines.
- On the virtual machine card, click ACTIONS → Install VMware Tools → Install.
- On the virtual machine, run the file
setup64.exe
from the connected DVD and install Typical. - Reboot the virtual machine.
Configure the backup
A service is available for VMware virtual machine backups VMware-based cloud backup.
Linux
Windows
Veeam Agents use BIOS UUIDs to identify machines. A recovered machine has a new BIOS UUID, so it may not be possible to continue existing Veeam Agent backup chains.
-
Uninstall Veeam agents:
Ubuntu, Debian:
sudo apt remove veeamma veeam
RHEL, CentOS, Fedora:
sudo yum remove veeamma veeam
SuSE:
sudo zypper remove veeamma veeam
-
Install the management agent и backup agent all over again.
Verify that the Management Agent and Backup Agent for Windows are working correctly in one of the following ways:
- run Active Full Backup to start a new chain of restore points;
- to save previously created restore points, disable backup execution.