Changing a Xen ECS to a KVM ECS (Windows)
Scenarios
Before changing a Xen ECS that runs Windows to a KVM ECS, make sure that PV driver and UVP VMTools have been installed on the ECS.
This section describes how to install the PV driver and UVP VMTools and change Xen to KVM.

- ECSs can be classified as the following based on the virtualization types:
- Xen ECS flavors: S1, C1, C2, and M1.
- KVM ECS flavors: See the Virtualization column in ECS Specifications.
Constraints
- The ECS needs to be stopped during the specification modification, so you are advised to perform this operation during off-peak hours.
- If a Windows ECS is attached with a cross-region disk, the ECS specifications cannot be modified. Otherwise, ECS data may be lost.
- A Xen ECS with more than 24 VBD disks attached cannot be changed to a KVM ECS.
- A Xen ECS can be changed to a KVM ECS, but a KVM ECS cannot be changed to a Xen ECS.
Procedure
Table 1 describes the operations for changing a Xen ECS to a KVM ECS.
Step 1: Back Up an ECS
If you modify the specifications of an ECS without installing the driver, the ECS may become unavailable and the data on the system disk may be lost. You are advised to back up the ECS first to prevent data loss.
- Check the ECS.
Before backing up the ECS, stop and then start the ECS to ensure that services can run properly after the ECS is started.
- Back up the ECS.
Backing up ECSs generate storage costs. There are two types of EVS snapshots: standard snapshots and legacy snapshots. Legacy snapshots are in OBT and free of charge. Standard snapshots are billed. Select the one type as required.
- Method 1: Create a backup for the ECS.
For details, see ECS Backup Procedure.
- Method 2: Create a system disk snapshot and a data disk snapshot.
For details about how to create a snapshot, see Creating an EVS Snapshot in Elastic Volume Service User Guide.
- Method 1: Create a backup for the ECS.

Backups and snapshots created for the ECS are used to restore data. If the specifications fail to be modified, you can use the backups or snapshots to restore data.
- To use backups to restore data, see Restoring from a Cloud Server Backup.
- To use snapshots to roll back data, see Rolling Back Disk Data from a Snapshot.
After the specifications are modified, if services are running properly, delete the ECS backups or snapshots from the corresponding service console.
Step 2: Check the UVP VMTools Version
- Log in to the ECS.
- Download the driver check script.
Execute the script as the administrator and wait for the check result.
URL for downloading the script: https://latin-server-resize.obs.na-mexico-1.myhuaweicloud.com/windows/server_resize/check_kvm_drivers.vbs
After checking that the required driver has been installed, the system automatically tags the ECS. The specifications of only the tagged ECSs can be modified.
- If the check result is "Check version success!", the driver version meets service requirements and the ECS is tagged. Then, go to Step 4: Modify Specifications.
- If the check result is "Check version success but set metadata failed! Please run this script again later.", the driver version meets service requirements but tagging the ECS failed. In such a case, try again later.
- If the check result is "Check version failed! Please install drivers at first.", the driver version does not meet service requirements. In such a case, install or upgrade UVP VMTools by following the instructions provided in Step 3: Install or Upgrade UVP VMTools.
Step 3: Install or Upgrade UVP VMTools
When you install or upgrade UVP VMTools, if the PV driver has been installed on the ECS, the system will check the PV driver version. Ensure that the PV driver version meets service requirements. Otherwise, installing UVP VMTools will fail on the ECS. This section describes how to check the installation of the PV driver and UVP VMTools.

Before installing the PV driver or upgrading UVP VMTools, ensure that the ECS meets the following requirements:
- The available system disk size of the ECS is greater than 2 GB.
- Third-party virtualization platform tools, such as Citrix Xen Tools and VMware Tools, have been uninstalled to prevent driver installation failures. For details about how to uninstall the tools, see the official documents of the tools.
- Antivirus software or intrusion detection software has been disabled. You can enable them after the driver is installed.
- Check whether the PV driver version meets the UVP VMTools dependency requirements.
Switch to the C:\Program Files (x86)\Xen PV Drivers\bin directory, open the version.ini file, and view the PV driver version.
pvdriverVersion=5.0.104.010
- If the directory is available and the driver version is 5.0 or later, the PV driver that meets service requirements has been installed. In such a case, go to step 6 to install UVP VMTools.
- If the directory is unavailable or the driver version is earlier than 5.0, the PV driver has not been properly installed or the version does not meet service requirements. Then, see the following steps to uninstall the PV driver and install a new one.
- Record the User Account Control (UAC) configuration of the ECS.
If the PV driver version is earlier than 5.0, DisableLUA is added to the registry during PV driver installation to prevent too many pop-up windows during driver upgrade, and EnableLUA is added to the registry during PV driver uninstallation (this has been resolved in PV driver 5.0 and later versions). To prevent adverse impact on your services, you need to record the UAC configuration before uninstalling the PV driver if the PV driver version earlier than 5.0. Then check and restore the EnableLUA configuration in the registry after installing the new version. For details about UAC configurations, see the official Microsoft documents.
- In the Run dialog box, enter regedit and click OK to open the registry editor.
- Record the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA value.
Figure 2 EnableLUA
- Uninstall the PV driver of the old version.
- On the ECS OS, choose Start > Control Panel.
- Click Uninstall a program.
- Uninstall GPL PV Drivers for Windows x.x.x.xx as prompted.
- Restart the ECS on the management console.
- Install the PV driver of the new version.
- Download the PV driver installation package.
Download the PV driver at https://ecs-instance-driver.obs.cn-north-1.myhuaweicloud.com/pvdriver-windows.zip.
- Decompress the PV driver software package.
- Double-click pvdriver-windows.iso.
- Run Setup.exe and install the PV driver as prompted.
Wait until the driver installation is complete. Do not click Setup.exe during the installation.
- Restart the ECS as prompted for the PV driver to take effect.
- Download the PV driver installation package.
- Check and restore the UAC configuration.
- In the Run dialog box, enter regedit and click OK to open the registry editor.
- Check the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA value and compare it with the value you recorded. If they are different, change the value to the one recorded in step 2.
- Install or upgrade UVP VMTools.
- Download the UVP VMTools installation package.
Download UVP VMTools at https://ecs-instance-driver.obs.cn-north-1.myhuaweicloud.com/vmtools-windows.zip.
- Decompress the UVP VMTools installation package.
- Double-click vmtools-windows.iso.
- Run Setup.exe and install UVP VMTools as prompted.
The installation program will automatically adapt to the OS version and identify whether UVP VMTools is newly installed or upgraded.
Wait until the installation is complete. Do not click Setup.exe during the installation.
- Restart the ECS as prompted for UVP VMTools to take effect.
- Check whether UVP VMTools has been installed. For details, see Step 2: Check the UVP VMTools Version.
- Download the UVP VMTools installation package.
Step 4: Modify Specifications
- Log in to the management console.
- Click
in the upper left corner and select your region and project.
- Click
. Under Compute, click Elastic Cloud Server.
- On the Elastic Cloud Server page, view the status of the target ECS.
If the ECS is not in Stopped state, choose More > Stop in the Operation column.
- Choose More > Modify Specifications in the Operation column.
The Modify ECS Specifications page is displayed.
- Select the new ECS type, vCPUs, and memory.
- (Optional) Set DeH.
If the ECS is created on a DeH, you can change the DeH where the ECS resides.
To do so, select the target DeH from the drop-down list. If no DeH is available in the drop-down list, it indicates that DeH resources are insufficient and cannot be used to create the ECS with new specifications.
- Select the checkbox to confirm that operations in Step 3: Install or Upgrade UVP VMTools has been performed.
- Click Next.
- Confirm the new specifications, read and agree to the agreement, and then click Submit Application.
- The cloud platform automatically creates a system disk snapshot for you. After the specifications are modified, manually delete the snapshot on the snapshot page if you have verified that services are running properly.
- If ECS specifications failed to be modified and the ECS becomes unavailable, reinstall the OS. This operation will clear the data on the system disk while the data on data disks is retained.
(Optional) Step 5: Check Disk Attachment
After a Xen ECS is changed to a KVM ECS, disk attachment may fail. Therefore, check disk attachment after specifications modification. If disks are properly attached, the specifications modification is successful.
- Windows ECS
For details, see Why Do the Disks of a Windows ECS Go Offline After I Modify the ECS Specifications?
Follow-up Procedure
If the ECS specifications have been modified but the OS cannot be started after remote login, contact customer service or reinstall the ECS OS to resolve this issue. For details, see Reinstalling the OS.

Reinstalling the OS will clear the system disk data, but the data on data disks is not affected.
After the specifications are modified, manually delete the snapshot on the snapshot page if you have verified that services are running properly.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot