How to uninstall Guest Additions in Ubuntu guest?

Discussions about using Linux guests in VirtualBox.

How to uninstall Guest Additions in Ubuntu guest?

Postby riobard » 10. Jul 2008, 23:12

I installed Guest Additions in Ubuntu guest. Now I copied the Ubuntu guest to a real harddisk and used it on a separate machine, so I no longer need the Guest Additions. How do I uninstall it? Thanks in advance!
Posts: 7
Joined: 10. Jul 2008, 23:07

Postby stefan.becker » 10. Jul 2008, 23:33

Dont really know it exact.

Little Tip: Start the installer with "--help". That shows possible Parameters.
Posts: 7046
Joined: 7. Jun 2007, 21:53

Postby riobard » 11. Jul 2008, 07:49

I tried --help option but it does not say anything about uninstallation

here is what I got:
Makeself version 2.1.4
1) Getting help or info about ./ :
./ --help Print this message
./ --info Print embedded info : title, default target directory, embedded script ...
./ --lsm Print embedded lsm entry (or no LSM)
./ --list Print the list of files in the archive
./ --check Checks integrity of the archive

2) Running ./ :
./ [options] [--] [additional arguments to embedded script]
with following options (in that order)
--confirm Ask before running embedded script
--noexec Do not run embedded script
--keep Do not erase target directory after running
the embedded script
--nox11 Do not spawn an xterm
--nochown Do not give the extracted files to the current user
--target NewDirectory Extract in NewDirectory
--tar arg1 [arg2 ...] Access the contents of the archive through the tar command
-- Following arguments will be passed to the embedded script
Posts: 7
Joined: 10. Jul 2008, 23:07

Postby Sasquatch » 11. Jul 2008, 21:54

All I know is that after a kernel upgrade you need to reinstall the GA if you want to have most things working again, like shared folders. That takes my assumption that it only installs a few kernel modules. A 'find' or 'locate' should give you some idea of where any virtualbox files might be and you can then remove them. Do not forget to modify your xorg.conf file if you haven't done so already for your mouse and video driver (video has to be, else you wouldn't have X).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions

Retired from this Forum since OSSO introduction.
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Postby riobard » 11. Jul 2008, 22:21

I guess it is much more complicated than just deleting kernel modules. I even found a /dev/vboxadd :| any hints about this? Thanks! :)
Posts: 7
Joined: 10. Jul 2008, 23:07

Postby TerryE » 11. Jul 2008, 23:15

You are correct in that their isn't a proper remove utility but the vbox device drivers and the ubuntu forum give simple instructions on how to remove them.

You also need to remove the /etc/rc1.d/ entries. After the reboot, I think that you'll find all vbox entries are related to VirtualBox and can be removed
Read the Forum Posting Guide
Google your Q or search for the answer before posting.
Site Moderator
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS

Problem solved

Postby riobard » 13. Jul 2008, 10:03

I tried the following lines and it turned out to be OK now. Thanks guys for your help! :)

Code: Select all   Expand viewCollapse view
sudo find /etc -name "*vboxadd*" -exec rm {} \;
sudo find /etc -name "*vboxvfs*" -exec rm {} \;
sudo rm -r /usr/src/vboxadd-*
sudo rm -r /usr/src/vboxvfs-*
sudo rm /usr/sbin/vboxadd-timesync
sudo rm /lib/modules/`uname -r`/misc/vboxadd.ko
sudo rm /lib/modules/`uname -r`/misc/vboxvfs.ko

A little explanation:
1. All vboxadd* entries belongs to Guest Additions
2. All vboxvfs* entries are related to Shared Folder feature which is also part of Guest Additions
Posts: 7
Joined: 10. Jul 2008, 23:07

Re: How to uninstall Guest Additions in Ubuntu guest?

Postby TheBigKahoona » 27. May 2011, 13:58

for everyone how ends up here by googleing this matter:
Posts: 1
Joined: 27. May 2011, 12:26
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Ubuntu 11.04

Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 16 guests