3

I'm trying to uninstall the VirtualBox guest addition for a CentOS virtual machine.

How do I do so?

1
  • Thank you sir for correcting me, I will try to improve my writing. – Hazman Firmanshah Jul 27 '18 at 2:44
8

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

9
  • In adittion, to direclty open the terminal in the location where GuestAdittion is installed, just right click on the folder located in media/username/ghestadittion and select 'Open in Terminal'. Then just run 'sudo sh VBoxLinuxAdditions.run uninstall' – Gian Gomen Jul 22 '19 at 0:41
  • @Gian Gomen Sure :) – daya Jul 23 '19 at 4:18
  • 1
    @Jonathan Host OS doesn't really matter here, VBoxLinuxAdditions will be present in /media only when you click on Devices > Insert Guest Additions Image – daya Aug 20 '19 at 16:29
  • 1
    @Jonathan that statement is illogical. The VBoxLinuxAdditions.run is a Linux executable and will be present on the Guest Additions ISO file which you have to insert for the Linux guest system to see and read it. The host system is irrelevant, it can be Linux or Windows. And of course, VBoxLinuxAdditions.run will not run on a Windows guest system if that's what you imply, as it is a Linux executable and not a Windows executable. – Samir Apr 23 '20 at 16:58
  • 1
    Replace the /media with /run if you're on Fedora 31. Also, uninstall is not a valid option. Where did you get that from? The linked blog post? Take note that it's "Published April 26, 2012". I did this today using Guest Additions ISO of VirtualBox 6.0.10 and when you run sudo sh VBoxLinuxAdditions.run (with or without uninstall because that's not an option) you will get a long text warning you of existing Guest Additions and telling you to uninstall it using the uninstall procedure of the operating system which on Fedora is rpm -e virtualbox-guest-additions-6.0.12-1.fc31.x86_64. – Samir Apr 23 '20 at 17:15
0

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/uninstall.sh

Replace /opt/VBoxGuestAdditions-version with the correct Guest Additions installation directory.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.