Preparing Windows VMs for Conversion to Alibaba Cloud ECS
Before performing a backup that will be used for VM conversion, you must install the vioscsi and viostor drivers on the source VMs.
Before You Begin
- Virtual machines running the following guest operating systems can be converted to Alibaba Cloud ECS instances:
- Windows Server 2012
- Windows Server 2016
- Windows Server 2019
- Download VirtIO drivers as described in Creating Windows virtual machines using VirtIO drivers.
Procedure
- Download the .iso image file of virtio drivers for vioscsi.inf and viostor.inf.
- Mount the .iso image file to a virtual drive.
- Perform the following steps for both of the driver files (vioscsi.inf and viostor.inf):
- Go to Run and execute hdwwiz.exe to open the Add New Hardware wizard.
- Select the Install the hardware that I manually select from a list option.
- As the hardware type, select Show All Devices, and then click Next.
- Click Have Disk.
The Install from Disk dialog box appears.
- Browse and select the driver file, and then click OK.
- Click Next to continue.
- Click Next again to start installing the driver, and then click Finish when the installation completes.
- From the Windows Explorer, right-click the vioscsi.inf or viostor.inf file, and then click Install.
- Add the following registry keys to the Windows registry hive:
- Add the vioscsi driver to the CriticalDeviceDatabase.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00] "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}" "Service"="vioscsi"
- Add the viostor driver to the CriticalDeviceDatabase.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CriticalDeviceDatabase\PCI#VEN_1AF4&DEV_1004&SUBSYS_00081AF4&REV_00] "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}" "Service"="viostor"
The ClassGUID value depends on the Windows server operating system. To get the appropriate ClassGUID value, perform the following steps:
- From the Windows Explorer, go to vioscsi or viostor > operating system folder > amd64.
- Right-click the vioscsi.inf or viostor.inf file, and then click Open with.
- Select Notepad, and then click OK.
- Search for the ClassGUID entry.
- Add the vioscsi driver to the CriticalDeviceDatabase.
- Perform a backup operation for the modified source VMs.
Last modified: 2/12/2021 3:40:00 PM