10.14. Uninstalling Virtuozzo Guest Tools from Virtual Machines

If you find out that Virtuozzo guest tools are incompatible with some software inside a virtual machine, you can uninstall them from that VM. The steps you need to perform to remove guest tools differ depending on the guest operating system and are described in the sections below.

Note

Running virtual machines that do not have Virtuozzo guest tools installed cannot be configured from the physical server.

10.14.1. Uninstalling Guest Tools from Linux Virtual Machines

To uninstall Virtuozzo guest tools from a Linux guest, log in to the virtual machine and do as follows:

  1. 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-udev
      

      If 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.

  2. 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
    
  3. Reload the udev rules:

    # udevadm control --reload
    

After removing Virtuozzo guest tools, restart the virtual machine.

Note

After Virtuozzo guest tools are removed from a virtual machine, their state is shown as possibly installed.

10.14.2. Uninstalling Guest Tools from Windows Virtual Machines

To uninstall Virtuozzo guest tools for Windows, log in to the virtual machine and do as follows:

  1. Remove virtualized device drivers:

    Important

    Do not remove the VirtIO/SCSI hard disk driver and NetKVM network driver. Without the former, the virtual machine will not boot; without the latter, it will lose network connectivity.

    1. Open the Device Manager.

    2. Double-click the device to expand the list of installed drivers.

    3. Right-click the driver to be removed and select Uninstall from the drop-down menu.

      ../_images/uninstall_drivers.png
  2. Uninstall QEMU guest agent and Virtuozzo Guest Tools:

    1. From the Windows Start menu, open Control Panel > Programs > Programs and Features.

    2. Right-click QEMU guest agent and select Uninstall from the drop-down menu.

      ../_images/uninstall_guest_tools.png
    3. Right-click Virtuozzo Guest Tools and select Uninstall from the drop-down menu.

  3. Stop and delete Guest Tools Monitor:

    > sc stop VzGuestToolsMonitor
    > sc delete VzGuestToolsMonitor
    
  4. Unregister Guest Tools Monitor from Event Log:

    > reg delete HKLM\SYSTEM\CurrentControlSet\services\eventlog\Application\VzGuestToolsMonitor
    
  5. Delete the autorun registry key for RebootNotifier:

    > reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v VzRebootNotifier
    
  6. 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 Virtuozzo guest tools, restart the virtual machine.

Note

After Virtuozzo guest tools are removed from a virtual machine, their state is shown as possibly installed.