Menu
Amazon Elastic Compute Cloud
User Guide for Microsoft Windows Instances

Upgrading PV Drivers on Your Windows AMI

To verify which driver your Windows instance uses, open Network Connections in Control Panel and view the Local Area Connection. Check whether the driver is one of the following:

  • AWS PV Network Device

  • Citrix PV Ethernet Adapter

  • RedHat PV NIC Driver

Alternatively, you can check the output from the pnputil -e command.

Upgrade Windows Server 2012 and 2012 R2 Instances (AWS PV Driver Upgrade)

Use the following procedure to perform an in-place upgrade of AWS PV drivers, or to upgrade from Citrix PV drivers to AWS PV drivers on Windows Server 2012 R2 or Windows Server 2012. This upgrade is not available for RedHat drivers, or for other versions of Windows Server.

Important

If your instance is a domain controller, see Upgrade a Windows Server 2012 or 2012 R2 Instance Domain Controller (AWS PV Driver Upgrade). The upgrade process for a domain controller requires additional steps compared to non-domain controller instances.

To upgrade AWS PV drivers on Windows Server 2012 R2 or Windows Server 2012

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Instances.

  3. Choose the instance that requires the driver upgrade, open the context (right-click) menu, choose Instance State, and then choose Stop.

    Warning

    When you stop an instance, the data on any instance store volumes is erased. Therefore, if you have any data on instance store volumes that you want to keep, be sure to back it up to persistent storage.

  4. After the instance is stopped, create a backup. Open the context (right-click) menu for the instance, choose Image, and then choose Create Image.

  5. From the context (right-click) menu for the instance, choose Instance State, and then choose Start.

  6. Connect to the instance using Remote Desktop and prepare the instance for upgrade. We recommend that you take all non-system disks offline before you perform this upgrade. Note that this step is not required if you are performing an in-place update of AWS PV drivers. We also recommend setting non-essential services to Manual start-up in the Services console.

  7. Download the latest driver package to the instance.

  8. Extract the contents of the folder and then run AWSPVDriverSetup.msi.

After running the MSI, the instance automatically reboots and then upgrades the driver. The instance will not be available for up to 15 minutes. After the upgrade is complete and the instance passes both health checks in the Amazon EC2 console, connect to the instance using Remote Desktop and verify that the new driver was installed. In Device Manager, under Storage Controllers, locate AWS PV Storage Host Adapter. Verify that the driver version is the same as the latest version listed on the Amazon EC2 Windows Drivers page.

Note

If you previously disabled TCP Offloading using Netsh for Citrix PV drivers we recommend that you re-enable this feature after upgrading to AWS PV Drivers. TCP Offloading issues with Citrix drivers are not present in the AWS PV drivers. As a result, TCP Offloading provides better performance with AWS PV drivers.

Upgrade a Windows Server 2012 or 2012 R2 Instance Domain Controller (AWS PV Driver Upgrade)

Use the following procedure to upgrade Citrix PV drivers to AWS PV drivers on a domain controller.

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Instances.

  3. Choose the instance that requires the driver upgrade, open the context (right-click) menu, choose Instance State, and then choose Stop.

    Warning

    When you stop an instance, the data on any instance store volumes is erased. Therefore, if you have any data on instance store volumes that you want to keep, be sure to back it up to persistent storage.

  4. After the instance is stopped, create a backup. Open the context (right-click) menu for the instance, choose Image, and then choose Create Image.

  5. From the context (right-click) menu for the instance, choose Instance State, and then choose Start.

  6. Run the following command. This command configures Windows to boot into DSRM mode after the system restarts:

    bcdedit /set {default} safeboot dsrepair

    Warning

    After you run this command do not manually reboot the system. The system will be unreachable because Citrix PV drivers do not support DSRM.

  7. Open Registry Editor and create the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Amazon\AWSPVDriverSetup.

  8. From the context (right-click) menu, choose New and then choose String Value. Specify DisableDCCheck as the name and the value as true.

  9. Download the latest driver package to the instance.

  10. Extract the contents of the folder and then run AWSPVDriverSetup.msi.

    After running the MSI, the instance automatically reboots and then upgrades the driver. The instance will not be available for up to 15 minutes.

  11. After the upgrade is complete and the instance passes both health checks in the Amazon EC2 console, connect to the instance using Remote Desktop.

    Important

    You must connect to the instance by specifying user name in the following format hostname\administrator. For example, Win2k12TestBox\administrator.

  12. From a Command prompt, run the following command to remove the DSRM boot configuration:

    bcdedit /deletevalue safeboot

  13. To complete the upgrade process, verify that the new driver was installed. In Device Manager, under Storage Controllers, locate AWS PV Storage Host Adapter. Verify that the driver version is the same as the latest version listed on the Amazon EC2 Windows Drivers page.

Note

If you previously disabled TCP Offloading using Netsh for Citrix PV drivers we recommend that you re-enable this feature after upgrading to AWS PV Drivers. TCP Offloading issues with Citrix drivers are not present in the AWS PV drivers. As a result, TCP Offloading provides better performance with AWS PV drivers.

Upgrade Windows Server 2008 and 2008 R2 Instances (Redhat to Citrix PV Upgrade)

Before you start upgrading your RedHat drivers to Citrix PV drivers, make sure you do the following:

To upgrade a Windows Server 2008 or Windows Server 2008 R2 AMI

  1. Connect to your instance and log in as the local administrator. For more information about connecting to your instance, see Connecting to Your Windows Instance Using RDP.

  2. In your instance, download the Citrix PV upgrade package by going to Amazon EC2 Windows Paravirtual Driver Upgrade Script.

  3. Extract the contents of the upgrade package to a location of your choice.

  4. Double-click the Upgrade.bat file. If you get a security warning, click Run.

  5. In the Upgrade Drivers dialog box, review the information and click Yes if you are ready to start the upgrade.

  6. In the Red Hat Paravirtualized Xen Drivers for Windows uninstaller dialog box, click Yes to remove the RedHat software. Your instance will be rebooted.

    Note

    If you do not see the uninstaller dialog box, click Red Hat Paravirtualize… in the Windows taskbar.

    Red Hat Paravirtualized in taskbar
  7. Check that the instance has rebooted and is ready to be used.

    1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

    2. On the Instances page, right-click your instance and select Get System Log.

    3. The upgrade operations should have restarted the server 3 or 4 times. You can see this in the log file by the number of times Windows is Ready to use is displayed.

      Windows system log
  8. Connect to your instance and log in as the local administrator.

  9. Close the Red Hat Paravirtualized Xen Drivers for Windows uninstaller dialog box.

  10. Confirm that the installation is complete. Navigate to the Citrix-WIN_PV folder that you extracted earlier, open the PVUpgrade.log file, and then check for the text INSTALLATION IS COMPLETE.

    PVUpgrade log file

Upgrade Windows Server 2003 Instances (Redhat to Citrix PV Drivers)

Before you start upgrading your RedHat drivers to Citrix PV drivers, make sure you do the following:

To upgrade a Windows Server 2003 AMI

  1. Connect to your instance and log in as the local administrator. For more information about connecting to your instance, see Connecting to Your Windows Instance Using RDP.

  2. In your instance, download the Citrix PV upgrade package by going to Amazon EC2 Windows Paravirtual Driver Upgrade Script.

  3. Extract the contents of the upgrade package to a location of your choice.

  4. Double-click the Upgrade.bat file. If you get a security warning, click Run.

  5. In the Upgrade Drivers dialog box, review the information and click Yes if you're ready to start the upgrade.

  6. In the Red Hat Paravirtualized Xen Drivers for Windows uninstaller dialog box, click Yes to remove the RedHat software. Your instance will be rebooted.

    Note

    If you do not see the uninstaller dialog box, click Red Hat Paravirtualize… in the Windows taskbar.

    Red Hat Paravirtualized in taskbar
  7. Check that the instance has been rebooted and is ready to be used.

    1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

    2. On the Instances page, right-click your instance and select Get System Log.

    3. Check the end of the log message. It should read Windows is Ready to use.

  8. Connect to your instance and log in as the local administrator. The upgrade will continue by opening four applications: PowerShell, RedHat uninstaller, PVUpgrade.log and the Windows Device Manager.

  9. Uninstall the PCI BUS.

    1. In the Device Manager window, expand System devices, right-click PCI bus and click Uninstall.

      Device Manager
    2. When prompted, click OK.

    3. In the System Settings Change dialog, click No as you do not want to restart your instance immediately.

    4. Close Device Manager. The upgrade script reboots your instance.

  10. Check that the instance is ready by repeating the procedure in step 7. After you've confirmed it is ready, log in as the administrator.

  11. Confirm that the installation is complete. Navigate to the Citrix-WIN_PV folder that you extracted earlier, open the PVUpgrade.log file, and then check for the text INSTALLATION IS COMPLETE.

    PVUpgrade log file

Upgrade Your Citrix Xen Guest Agent Service

If you are using Citrix PV drivers on your Windows server, you can upgrade the Citrix Xen guest agent service. This Windows service handles tasks such as time synchronization at boot, as well as shutdown and restart events from the API. You can run this upgrade package on any version of Windows Server, including Windows Server 2012, as long as the Windows Server 2012 instance is running Citrix PV drivers.

Important

Do not perform these steps on Windows Server 2012 or 2012 R2 instances that are running AWS PV drivers.

Before you start upgrading your drivers, make sure you back up your important information on the instance, or create an AMI from the instance. For more information about creating an AMI, see Creating an Amazon EBS-Backed Windows AMI. If you create an AMI, make sure you do the following:

  • Do not enable the Sysprep tool in the EC2Config service.

  • Write down your password.

  • Set your Ethernet adapter to DHCP.

To upgrade your Citrix Xen guest agent service

  1. Connect to your instance and log in as the local administrator. For more information about connecting to your instance, see Connecting to Your Windows Instance Using RDP.

  2. In your instance, download the Citrix upgrade package by going to Amazon EC2 Windows Paravirtual Driver Upgrade Script.

  3. Extract the contents of the upgrade package to a location of your choice.

  4. Double-click the Upgrade.bat file. If you get a security warning, click Run.

  5. In the Upgrade Drivers dialog box, review the information and click Yes if you are ready to start the upgrade.

  6. When the upgrade is complete, the PVUpgrade.log file will open and contain the text UPGRADE IS COMPLETE.

  7. Reboot your instance.