Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I haven't used my Windows VM in about a week or so, the only thing I can think of that I've done within that week that may have caused this is cleared out my ~/.cache.

Anyway, now when I try and launch VirtualBox I get the following error:

VirtualBox - Critical Error

Failed to create the VirtualBox COM object.

The application will now terminate.

Document is empty.

Location: '/home/kalenpw/.config/VirtualBox/VirtualBox.xml', line 1 (0), column 1.

/build/virtualbox-VDAABr/virtualbox-4.3.36-dfsg/src/VBox/Main/src-server/VirtualBoxImpl.cpp[536] (nsresult VirtualBox::init()).

sure enough, ~/.config/VirtualBox/VirtualBox.xml is in fact empty, the only issue is I can't figure out what I need that file to be in order for virtual box to work. I've googled the error and everything says I need to change permissions of VirtualBox.xml, but I've already verified my user has permissions. VirtualBox will run if I do sudo virtualbox so clearly I've messed something up with that file I am just not sure what. Thanks.

share|improve this question
    
Have you got VirtualBox.xml-prev? – Christopher Nov 18 '16 at 21:18
    
@Christopher ah, good call didn't think of that. I did in fact have VirtualBox.xml-prev and copying the contents of that into VirtualBox.xml resolved the issue. If you post this as answer I'll accept it – kalenpw Nov 18 '16 at 21:23
up vote 1 down vote accepted

Take a look to see if you have an automatic backup of that file, VirtualBox.xml-prev. If so, use that file to try to get VirtualBox happy again.

cat VirtualBox.xml-prev > VirtualBox.xml

Or

rm VirtualBox.xml && cp VirtualBox.xml-prev VirtualBox.xml

Or maybe find the original in a recent backup.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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