6.6. Updating Virtual Machine Guest Agents and Drivers
6.6. Updating Virtual Machine Guest Agents and Drivers The Red Hat Virtualization guest agents, tools, and drivers provide additional functionality for virtual machines, such as gracefully shutting down or rebooting virtual machines from the VM Portal and Administration Portal. The tools and agents also provide information for virtual machines, including: Resource usage IP addresses Installed applications The guest tools are distributed as an ISO file that you can attach to virtual machines. This ISO file is packaged as an RPM file that you can install and update from the Manager machine. 6.6.1. Updating the Guest Agents and Drivers on Red Hat Enterprise Linux Update the guest agents and drivers on your Red Hat Enterprise Linux virtual machines to use the latest version. Updating the Guest Agents and Drivers on Red Hat Enterprise Linux Log in to the Red Hat Enterprise Linux virtual machine. Update the ovirt-guest-agent-common package: # yum update ovirt-guest-agent-common Restart the service: For Red Hat Enterprise Linux 6 # service ovirt-guest-agent restart For Red Hat Enterprise Linux 7 # systemctl restart ovirt-guest-agent.service 6.6.2. Updating Windows drivers with Windows Update When you need to update the drivers for a Windows virtual machine, the simplest method is to use Windows Update. Procedure Log in to the virtual machine. Ensure that Windows Update is enabled so you can get updates. Check Windows Update for updates from Red Hat, Inc . Manually install any updates that have not been automatically installed. Additional resources Updating Windows guest agents and drivers using the command prompt See the Microsoft documentation for details on using Windows Update. 6.6.3. Updating Windows guest agents and drivers using the command prompt When you do not have access to Windows Update to update Windows drivers, or when you need to update the oVirt guest agents, you can do so from the virtio-win package by using the virtual machine's command prompt. During this procedure, you must remove and reinstall the drivers, which can lead to network disruption. This procedure restores your settings after reinstalling the drivers. Procedure If you are updating the drivers, on the Windows virtual machine, use the netsh utility to save TCP settings before uninstalling the netkvm driver: On the Manager machine, update the virtio-win package to the latest version: The virtio-win _version .iso file is located in /usr/share/virtio-win/ on the Manager machine. Upload the ISO file to a data domain. For more information, see Uploading Images to a Data Storage Domain in the Administration Guide . In the Administration or VM Portal, if the virtual machine is running, use the Change CD drop-down list to attach the virtio-win _version .iso file to each of your virtual machines. If the virtual machine is powered off, click the Run Once button and attach the ISO as a CD. Log in to the virtual machine. Select the CD Drive ( D:\ for this example) containing the virtio-win _version .iso file. Reinstall the guest agents or drivers: To reinstall only the guest agents, use qemu-ga-x86_64.msi : To reinstall the drivers, use virtio-win-gt-x64.msi : If you are updating the drivers, restore the settings you saved using netsh :
yum update ovirt-guest-agent-common service ovirt-guest-agent restart systemctl restart ovirt-guest-agent.service C:\WINDOWS\system32>netsh dump > filename.txt dnf upgrade -y virtio-win C:\WINDOWS\system32>msiexec.exe /i D:\guest-agent\qemu-ga-x86_64.msi /passive /norestart C:\WINDOWS\system32>msiexec.exe /i D:\virtio-win-gt-x64.msi /passive /norestart C:\WINDOWS\system32>netsh -f filename.txt