Uninstalling guest tools
If you find out that the guest tools are incompatible with some software inside a virtual machine, you can uninstall them.
Prerequisites
- The guest tools are installed inside the virtual machine, as described in Installing guest tools.
To uninstall guest tools
-
Inside a Windows VM:
-
Remove the QEMU device drivers from the device manager.
Do not remove the VirtIO/SCSI hard disk driver and NetKVM network driver. Without the former, the VM will not boot; without the latter, the VM will lose network connectivity.
-
Uninstall the QEMU guest agent and guest tools from the list of installed applications.
-
Stop and delete Guest Tools Monitor:
> sc stop VzGuestToolsMonitor > sc delete VzGuestToolsMonitor
-
Unregister Guest Tools Monitor from Event Log:
> reg delete HKLM\SYSTEM\CurrentControlSet\services\eventlog\Application\\ VzGuestToolsMonitor
-
Delete the autorun registry key for RebootNotifier:
> reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v \ VzRebootNotifier
-
Delete the C:\Program Files\Qemu-ga\ directory.
If VzGuestToolsMonitor.exe is locked, close all the Event Viewer windows. If it remains locked, restart the
eventlog
service:> sc stop eventlog > sc start eventlog
After removing the guest tools, restart the virtual machine.
-
-
Inside a Linux VM:
-
Remove the packages:
-
On RPM-based systems (CentOS and other):
# yum remove dkms-vzvirtio_balloon prl_nettool qemu-guest-agent-vz \
vz-guest-udev -
On DEB-based systems (Debian and Ubuntu):
# apt-get remove vzvirtio-balloon-dkms prl-nettool qemu-guest-agent-vz \
vz-guest-udevIf any of the packages listed above are not installed on your system, the command will fail. In this case, exclude these packages from the command and run it again.
-
-
Remove the files:
# rm -f /usr/bin/prl_backup /usr/share/qemu-ga/VERSION \
/usr/bin/install-tools \
/etc/udev/rules.d/90-guest_iso.rules /usr/local/bin/fstrim-static \
/etc/cron.weekly/fstrim -
Reload the
udev
rules:# udevadm control --reload
After removing guest tools, restart the virtual machine.
-