• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. User Guide
  4. Configuration Modifications
  5. Modifying ECS vCPU and Memory Specifications
  6. Changing a XEN ECS to a KVM ECS (Windows)

Changing a XEN ECS to a KVM ECS (Windows)

Scenarios

A Windows ECS can be switched from XEN to KVM only if XEN guest OS driver (PV driver) and KVM guest OS driver (UVP VMTools) run on the ECS. Before changing a XEN ECS to a KVM ECS, ensure that PV driver and UVP VMTools have been installed on the ECS.

This section describes how to configure a Windows ECS for changing XEN to KVM.

Constraints

  • 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.
  • General-purpose ECSs and memory-optimized ECSs can be exchanged (only from XEN to KVM if the virtualization type is changed), as shown in Table 1.
    Table 1 ECS types supporting change from XEN to KVM

    -

    S2

    C3

    M2

    M3

    S1

    Supported

    Supported

    Supported

    Supported

    C1

    Supported

    Supported

    Supported

    Supported

    C2

    Supported

    Supported

    Supported

    Supported

    M1

    Supported

    Supported

    Supported

    Supported

    H1

    Supported

    Supported

    Supported

    Supported

    For example, an S1 ECS can be changed to an S2, C3, M2, or M3 ECS.

Procedure

Figure 1 shows the process of changing a XEN ECS to a KVM ECS.
Figure 1 Flowchart for changing a XEN ECS to a KVM ECS

Table 2 describes the operations.

(Optional) Backing Up the System Disk

Before modifying the specifications, back up the system disk and install the driver on the ECS. Otherwise, the ECS will be unavailable after the modification is performed. If the ECS becomes unavailable, the fault can be rectified by reinstalling the OS, which may cause data loss in your system disk.

For instructions about how to back up the system disk, see section "Getting Started > Creating a VBS Backup" in Volume Backup Service User Guide.

Configuring the ECS

  1. Log in to the ECS as the administrator.
  2. Download the PV driver and UVP VMTools installation packages.

    To download the installation package for the PV driver, log in at https://ecs-instance-driver.obs.eu-de.otc.t-systems.com/pvdriver-windows.zip.

    To download the installation package for the UVP VMTools, log in at https://ecs-instance-driver.obs.eu-de.otc.t-systems.com/vmtools-windows.zip.

  3. Install the latest PV driver.

    Run Setup.exe and install the PV driver as prompted.

  4. Install UVP VMTools.

    Run Setup.exe and install the UVP VMTools as prompted.

Verifying the ECS Configuration

Perform the following operations to check whether the drivers have been installed on the ECS:

  1. Log in to the ECS.
  2. Check whether the PV driver of 2.3 or a later version has been installed.

    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 2.3 or later, the PV driver has been installed.
    • If the directory is unavailable or the driver version is earlier than 2.3, installing the PV driver failed. In such a case, reinstall the PV driver by following the operations provided in Configuring the ECS.
  3. Check whether the UVP VMTools of 2.3 or a later version has been installed.

    Switch to the C:\Program Files (x86)\virtio\bin directory, open the version.ini file, and view the UVP VMTools version.

    cur_vmtools_ver=2.5.0.105org_vmtools_ver=0cur_daemon_ver=2.5.0.105-010cur_drivers_ver=2.5.0.105-010
    • If the directory is available and the driver version is 2.3 or later, the UVP VMTools has been installed.
    • If the directory is unavailable or the driver version is earlier than 2.3, installing the UVP VMTools failed. In such a case, reinstall the UVP VMTools by following the operations provided in Configuring the ECS.

Ensure that the ECS is configured successfully. Otherwise, the ECS will be unavailable after the modification is performed.

Modifying Specifications

  1. Log in to management console.
  2. Click in the upper left corner and select the desired region and project.
  3. Under Computing, click Elastic Cloud Server.
  4. On the Elastic Cloud Server page, view the status of the target ECS.

    If the ECS is not in Stopped state, click More in the Operation column and select Stop.

  5. Click More in the Operation column and select Modify Specifications.

    The Modify ECS Specifications page is displayed.

  6. Select the new ECS type, vCPUs, and memory as prompted.
  7. (Optional) Set DeH.

    If the ECS is created on a DeH, the system allows you to change the DeH.

    To do so, select the target DeH from the drop-down list. If no DeH is available in the drop-down list, remaining DeH resources are insufficient and cannot be used to create the ECS with specifications modified.

  8. Select the check box to confirm the ECS configuration.
  9. Click OK.

Checking 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.
  1. Check whether the number of disks displayed on the Computer page after specifications modification is the same as that before specifications modifications.
    • If yes, the disks are properly attached. No further action is required.
    • If no, an error has occurred in disk attachment. In such a case, go to 2.

    An example is provided as follows:

    An ECS running Windows Server 2008 has one system disk and two data disks attached before specifications modifications.

    Figure 2 Disk attachment before specifications modification

    After the specifications are modified, check disk attachment.

    Figure 3 Disk attachment after specifications modification

    Only one system disk is displayed. Data disks failed to attach after the specifications modification.

  2. Set the affected disks to be online.
    1. Click Start in the task bar. In the displayed Start menu, right-click Computer and choose Manage from the shortcut menu.

      The Server Manager page is displayed.

    2. In the navigation pane on the left, choose Storage > Disk Management.

      The Disk Management page is displayed.

    3. In the left pane, the disk list is displayed. Right-click the affected disk and choose Online from the shortcut menu to make it online.
      Figure 4 Making the disk online
  3. On the Computer page, check whether the number of disks is the same as that before the specifications modification.
    • If yes, no further action is required.
    • If no, contact customer service.
    Figure 5 Disk attachment after disk online

Follow-up Procedure

If the ECS with specifications modified is displayed in the ECS list but its OS cannot be started after the ECS is remotely logged in, reinstall the ECS OS to rectify this fault. For details, see section Reinstalling the OS.