I'm trying to uninstall the VirtualBox guest addition for a CentOS virtual machine.
How do I do so?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Open a terminal and enter the following commands:
cd /media cd VBOXADDITIONS_4.1.12_77218 sudo sh VBoxLinuxAdditions.run uninstall
This should uninstall vbox guest-additions
PS Please do some research on your own for next time because I found answer to your question through simply googling your question title Here I found answer to your question
f you have a version of the Guest Additions installed on your virtual machine and wish to remove it without installing new ones, you can do so by inserting the Guest Additions CD image into the virtual CD-ROM drive as described above. Then run the installer for the current Guest Additions with the uninstall parameter from the path that the CD image is mounted on in the guest, as follows:
sh ./VBoxLinuxAdditions.run uninstall
While this will normally work without issues, you may need to do some manual cleanup of the guest in some cases, especially of the XFree86Config or xorg.conf file. In particular, if the Additions version installed or the guest operating system were very old, or if you made your own changes to the Guest Additions setup after you installed them.
You can uninstall the Additions as follows:
/opt/VBoxGuestAdditions-version with the correct Guest Additions installation directory.