Location of VirtualBox Files

Discussions related to using VirtualBox on Mac OS X hosts.
paultilling
Posts: 34
Joined: 12. Jul 2009, 15:26
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Location of VirtualBox Files

Post by paultilling »

I tried to upgrade VirtualBox 4.04 to VirtualBox 4.14. The upgrade failed so I restored the VirtualBox v4.04 application file using Time Machine, however the restored version will not run.

Can anyone please tell me where the other files of Virtual Box are located? I assume the upgrade somehow corrupted the supporting files and I need to locate them to restore them as well.

Any advice would be tremendously appreciated.
Paul (Macbook, MaxOs Leopard).
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Location of VirtualBox Files

Post by Sasquatch »

Why did you use TimeMachine to revert to a previous version? For programs, that's the most illogical choice. You always remove the application and then install the older version. Check the downloads page, you can find older releases there.
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 site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
paultilling
Posts: 34
Joined: 12. Jul 2009, 15:26
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Re: Location of VirtualBox Files

Post by paultilling »

Thanks very much, I was not aware of this. How can I now re-install an older version as you suggest but without losing the custom contents, ie Snapshots etc.? Does it have a special file like a text file or something tucked away, and if so where please?

Paul Tilling
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Location of VirtualBox Files

Post by Sasquatch »

Applications are stored separately from the user settings. That's why you can remove MS Office without loosing your settings or documents.
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 site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
paultilling
Posts: 34
Joined: 12. Jul 2009, 15:26
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Re: Location of VirtualBox Files

Post by paultilling »

Yes, but I am trying to find out where these settings are actually located so that I can back them up. I am afraid that if I de-install my Virtualbox v4.14 then it might also de-install my settings, or when I re-install the new (old) v1.04 program it might replace my settings with an empty set.

Paul
rpmurray
Volunteer
Posts: 918
Joined: 3. Mar 2009, 00:29
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows 7, Mac OS X (various flavors)
Location: Between Heaven and Hell

Re: Location of VirtualBox Files

Post by rpmurray »

paultilling wrote:Yes, but I am trying to find out where these settings are actually located so that I can back them up.
You don't suppose there may be something in the User Manual about it? OMG! There is! Right on page 162 there is a section called "Where VirtualBox stores its files". How about that! I would never have expected that to be right there in the documentation that nobody seems to read. Amazing!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Location of VirtualBox Files

Post by Sasquatch »

Adding to rpmmurray's surprise, I can't believe it was all in my signature! How about that, it was noted several times where to look first. Can you believe it?
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 site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
paultilling
Posts: 34
Joined: 12. Jul 2009, 15:26
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Windows XP

Re: Location of VirtualBox Files

Post by paultilling »

Thank you, yes of course i should have tried the manual first, but this manual has not been written with the novice in mind. It refers to an 'XML settings file' with a .vbox extension in a common folder called 'virtualBox VMs', in the 'current system user's home directory (I presume they mean users/username/documents or library).
Well on my machine there is no such folder or file, anywhere on the disk! So I am back to square one. It goes on to say about a log file with a snapshots subfolder but I find nothing. As you see the manual is not very helpful to the layman.

Paul
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Location of VirtualBox Files

Post by Sasquatch »

Check /Users/yourusername/LIbrary/VirtualBox or similar. You got spotlight, to search on your hard drive. You can just search for parts of the program name and you should get what you're after. If you already have a VM, simply searching for the VM name will do fine as well.
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 site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
theDaniel
Posts: 39
Joined: 12. Oct 2011, 16:44
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Wind-does-blow XP (Xtra Porous), ReactOS
Location: Eastern Most County in USA

Re: Location of VirtualBox Files

Post by theDaniel »

By default Spotlight won't look for system files or hidden/invisible files. So, (for Snow Leopard and Lion) you may want to look in /private/var/db/receipts/
Continuing, try in:
/Library/Extensions/
/usr/bin/
/Library/Startup Items/

-Daniel
rpmurray
Volunteer
Posts: 918
Joined: 3. Mar 2009, 00:29
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows 7, Mac OS X (various flavors)
Location: Between Heaven and Hell

Re: Location of VirtualBox Files

Post by rpmurray »

paultilling wrote:It refers to an 'XML settings file' with a .vbox extension in a common folder called 'virtualBox VMs', in the 'current system user's home directory (I presume they mean users/username/documents or library).
By default VirtualBox will place the VBox application settings in the path:

[hard drive]/Users/[your account]/Library/VirtualBox/

the files will consist of:

compreg.dat
VirtualBox.xml
VirtualBox.xml-prev
xpti.dat

If you did not tell it to store the guests that it creates somewhere else then there will also be a folder called "VirtualBox VMs" that will contain the guest hard drives that you created and their individual settings files. The VirtualBox application itself will always need to be in the Applications folder in order to run.
theDaniel
Posts: 39
Joined: 12. Oct 2011, 16:44
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Wind-does-blow XP (Xtra Porous), ReactOS
Location: Eastern Most County in USA

Re: Location of VirtualBox Files

Post by theDaniel »

If one installs an older version over a newer version, will the older version overwrite the newer version files? i.e. kexts.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Location of VirtualBox Files

Post by Sasquatch »

theDaniel wrote:If one installs an older version over a newer version, will the older version overwrite the newer version files? i.e. kexts.
Your question belongs on an Apple forum, not here. Kext files are part of the OS, we don't discuss the OS here.
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 site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
rpmurray
Volunteer
Posts: 918
Joined: 3. Mar 2009, 00:29
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows 7, Mac OS X (various flavors)
Location: Between Heaven and Hell

Re: Location of VirtualBox Files

Post by rpmurray »

theDaniel wrote:If one installs an older version over a newer version, will the older version overwrite the newer version files? i.e. kexts.
They should, but if you want to make sure you can run the uninstaller for the newer version before re-installing the older version.
theDaniel
Posts: 39
Joined: 12. Oct 2011, 16:44
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Wind-does-blow XP (Xtra Porous), ReactOS
Location: Eastern Most County in USA

Re: Location of VirtualBox Files

Post by theDaniel »

Sasquatch wrote:Kext files are part of the OS, we don't discuss the OS here.
Are you saying VirtualBox does not install kernel extensions?

System Kext (kernel extension) files are in /System/Library/Extensions/. They include both Apple system extensions and some third party extensions, like LittleSnitch, too.

VirtualBox kext files along with some other third party kexts are located in /Library/Extensions/. Namely, they are:
VBoxDrv.kext
VBoxNetAdp.kext
VBoxNetFit.kext
VBoxUSB.kext

These have changed when updating from 4.0.4 to 4.1.4, this, according to the Mac's Get Info panel.

-Daniel
Post Reply