How to completely remove VirtualBox on Mac

Posted in Mac, macbook, tips on Nov 06, 2008

You have been using VirtualBox, but you don’t need it anymore. Or you need free space as I did. Well, in that case you might want to remove VirtualBox from your Mac. Uninstalling is easy, drag-drop-done, right? Yes it is, but it won’t take long for you to figure something is wrong. Eventhough you removed VirtualBox, not much free space you got back. Next thing, you went to VirtualBox Forums and they told you to look for /Library/VirtualBox directory, or look for VDI files. However, damn, you could not find any?!? Well, welcome to the club :)

I had a similar issue and figured out that, after removal, VirtualBox doesn’t erase all files/folders created and also these files and folders are not visible on Finder. What you have to do is simple:

1. Open Terminal

2. Type cd /Users/<user_name>/Library

3. Type ls an see if VirtualBox directory is there (should be)

4. rm -rf VirtualBox

Now you should get the free space you deserve :)

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Slashdot
  • Technorati
  • email
  • Facebook
  • Furl
  • Google Bookmarks
  • LinkedIn
  • Mixx
  • Netvouz
  • NewsVine
  • Pownce
  • Reddit
  • StumbleUpon
  • TwitThis

Trackback URI | Comments RSS

20 Responses to “ How to completely remove VirtualBox on Mac ”

  1. # 1 Thibaut Barrère Says:

    Thanks – that was totally useful. I had to revert from the latest version of VirtualBox to an earlier one a was stuck.

  2. # 2 Max Howell Says:

    Do

    lsbom /Library/Receipts/VirtualBoxCLI.pkg/Contents/Archive.bom

    too. You need to remove those files.

  3. # 3 Pratik Says:

    Does that delete the partition that it made too?

  4. # 4 John B Says:

    Very helpful. I had the same problem after running the uninstall script provided but this recovered the HDD space nicely.

  5. # 5 Adam Logan Says:

    Dude thanks Max Howell. That was a sweet tip.

  6. # 6 Evan Says:

    Perhaps I’m a dunce, but to what do you refer by opening Terminal?

  7. # 7 Crookle Says:

    Not even close. You need to remove a bunch of other directories and virtual device drivers. Just get the distributed image and run the provided uninstall script.

  8. # 8 Intekhab Choudhury Says:

    If you installed the application from a package file such as *.dmg, then simply go to Application and drag the application to your Trash. You will be prompted to provide your admin password and that’s it. You can then remove any other custom shortcut you may have created on the Dock or other places.

  9. # 9 Intekhab Choudhury Says:

    I should mention that above instruction than applies afterwords .. Usually uninstall would not remove any data file (such as those *.vdi) created by a specific program/Application.

  10. # 10 bubba Says:

    It’s not that simple. What about the kernel extensions?

    114 2 0x35ffc000 0x1d000 0x1c000 org.virtualbox.kext.VBoxDrv (2.1.0)
    115 0 0x2e5da000 0×7000 0×6000 org.virtualbox.kext.VBoxUSB (2.1.0)
    116 0 0x2e56c000 0×4000 0×3000 org.virtualbox.kext.VBoxNetFlt (2.1.0)

  11. # 11 De todo un poco » Blog Archive » Removiendo VirtualBox de una mac Says:

    [...] Visto en | Kuneri bloggy [...]

  12. # 12 the_knight Says:

    Just run the “VirtualBox_Uninstall.tool” that comes with the VirtualBox DMG file. Safer and you know it’ll all be removed as intended by the makers of the program… or you want to gamble and have stuff laying around and potentially give you problems or conflicts in future? Be Smart. ;)

  13. # 13 How to Uninstall VirtualBox - Mac-Forums.com Says:

    [...] the following LINK. [...]

  14. # 14 Levi Says:

    So I followed the instruction of Max Howell to

    “Do

    lsbom /Library/Receipts/VirtualBoxCLI.pkg/Contents/Archive.bom

    too. You need to remove those files.”

    and this is what I got:

    . 40755 0/80
    ./usr 40755 0/0
    ./usr/bin 40755 0/0
    ./usr/bin/VBoxHeadless 100755 0/0 79 2965821996
    ./usr/bin/VBoxManage 100755 0/0 77 325582486
    ./usr/bin/VBoxVRDP 100755 0/0 79 2965821996
    ./usr/bin/VirtualBox 100755 0/0 77 261023735
    ./usr/bin/vboxwebsrv 100755 0/0 77 857079400

    But how do I remove these files?

  15. # 15 Tipper Ruhlin Says:

    I tried the Uninstall script that came with VirtualBox and got nowhere. It asked me for the password to my keychain and rejected it when I typed it in. When I repeated the password two more times, it canceled the script.

    Any suggestions? I would like to get a clean uninstall, i.e. no orphaned files or folders left on my HD.

  16. # 16 GP Says:

    Levi (#14),

    Do NOT remove the entire /usr or /usr/bin directories!

    Those are only mentioned because if they hadn’t existed the installer would have had to create them before the files below.

    Two ways to remove those:

    - Open Terminal and type “open /usr/bin” then delete those from the window that pops open like any other file. It will probably ask you for your password before deleting….

    OR

    - Open Terminal and type “cd /usr/bin” and then “rm -f VBoxHeadless VBoxManage VBoxVRDP VirtualBox vboxwebsrv”.

    But that’s the hard way. Just download the app from Virtualbox.org again and run the uninstaller. (If anyone on the VirtualBox team is listening, put a link to JUST the uninstall tool on the download page–you’ll save bandwidth!)

    FWIW, here’s what the uninstaller script says it deletes, on my box:

    ———-
    [~] /Volumes/VirtualBox/VirtualBox_Uninstall.tool ; exit;

    Welcome to the VirtualBox uninstaller script.

    The following files and directories (bundles) will be removed:
    /usr/bin/VirtualBox
    /usr/bin/VBoxManage
    /usr/bin/VBoxVRDP
    /usr/bin/VBoxHeadless
    /usr/bin/vboxwebsrv
    /Library/Python/2.5/site-packages/vboxapi/VirtualBox_constants.py
    /Library/Python/2.5/site-packages/vboxapi/VirtualBox_constants.pyc
    /Library/Python/2.5/site-packages/vboxapi/__init__.py
    /Library/Python/2.5/site-packages/vboxapi/__init__.pyc
    /Library/Python/2.5/site-packages/vboxapi-1.0-py2.5.egg-info
    /Library/Python/2.6/site-packages/vboxapi/VirtualBox_constants.py
    /Library/Python/2.6/site-packages/vboxapi/VirtualBox_constants.pyc
    /Library/Python/2.6/site-packages/vboxapi/__init__.py
    /Library/Python/2.6/site-packages/vboxapi/__init__.pyc
    /Library/Python/2.6/site-packages/vboxapi-1.0-py2.6.egg-info
    /Library/StartupItems/VirtualBox/
    /Library/Extensions/VBoxDrv.kext/
    /Library/Extensions/VBoxUSB.kext/
    /Library/Extensions/VBoxNetFlt.kext/
    /Library/Extensions/VBoxNetAdp.kext/
    /Library/Extensions/VBoxDrvTiger.kext/
    /Library/Extensions/VBoxUSBTiger.kext/
    /Applications/VirtualBox.app/
    /Library/Python/2.5/site-packages/vboxapi/
    /Library/Python/2.6/site-packages/vboxapi/
    And the following KEXTs will be unloaded:
    org.virtualbox.kext.VBoxUSB
    org.virtualbox.kext.VBoxNetFlt
    org.virtualbox.kext.VBoxNetAdp
    org.virtualbox.kext.VBoxDrv

    ———-

  17. # 17 tsuchi Says:

    @Tipper Ruhlin you must fill your password for your mac first on user account preference
    the script will continuously reject if you didn’t have a password

  18. # 18 söve Says:

    Great post.Thanks.

  19. # 19 Joannes Says:

    Tipper, I ran across the same problem with the password. Make sure you are logged in on the administrator account for the computer, and run the script from there. Worked like a charm for me.

  20. # 20 Tipper Says:

    I’m with GP, use the uninstaller tool (download again to retrieve it if needed). Mucho painless and the most obvious thing to do.

    By the way. Is it just me or does VirtualBox no longer have a first run assistant? I could load any OS

Speak your peace!