After moving a Lubuntu virtual machine from VirtualBox to VMware Workstation and installing VMware Tools, I needed to clean out an old installation of Open-VM-Tools (OVT) and VirtualBox Guest Additions. Here are the steps I followed:
List installed dkms packages:
dkms status
Remove open-vm-tools and vboxguest that were listed by the previous command (note that you’ll need to provide the corresponding version numbers):
sudo dkms remove open-vm-tools/9.10.2 --all sudo dkms remove vboxguest/5.0.2 --all
List openbox related tools (note that this will list anything with ‘open’ in the title, you only want open-vm related items):
dpkg --get-selections | grep -v deinstall | grep -i open
Remove open-vm-tools:
sudo apt-get remove open-vm-tools-dkms