Installing VirtIO Drivers¶
Scenarios¶
This section only applies to KVM ECSs, which will replace Xen ECSs gradually. Before using an ECS or external image file to create a private image, ensure that VirtIO drivers have been installed in the OS so that ECSs created from this image can support KVM virtualization and the network performance can be improved.
Caution
If you do not install VirtIO drivers, ECS NICs cannot be detected. As a result, the ECSs cannot communicate with other resources.
If an ECS is created from a public image, VirtIO drivers have been installed by default.
Prerequisites¶
An EIP has been bound to the ECS. (This ECS is used to optimize a private image.)
Installing VirtIO Drivers¶
The following uses virtio-win-gt-x64.msi in version virtio-win-0.1.189-1 as an example to describe how to install VirtIO drivers.
Log in to the Windows ECS using VNC.
For details about how to log in to an ECS, see Elastic Cloud Server User Guide.
Note
You must log in to the ECS using VNC. Remote desktop connection is not allowed because the NIC driver needs to be updated during the installation but the NIC is in use for the remote desktop connection. As a result, the installation will fail.
Download a VirtIO driver package (virtio-win-gt-x64.msi as an example) of the required version by referring to Obtaining Required Software Packages.
After the download is complete, right-click virtio-win-gt-x64.msi and choose Run as administrator from the shortcut menu.
Select the VirtIO drivers to be installed. In this example, select all VirtIO drivers.
Wait until the installation is complete.
Restart the ECS after the installation is complete.
After the restart, perform the operations in Verifying the Installation to verify that the VirtIO drivers have been successfully installed.
Verifying the Installation¶
Perform the following steps to verify the installation of the VirtIO drivers:
Open Device Manager and search for VirtIO drivers.
Check whether the VirtIO driver version and date displayed in Device Manager are the same as those of the VirtIO drivers you downloaded. If they are the same, the VirtIO drivers have been installed successfully.