Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My Ubuntu computer won't load VirtualBox.

The message I'm recieving is: Error:
Failed to create the VirtualBox COM object.
The application will now terminate.
Start tag expected, '<' not found.

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

/build/buildd/virtualbox-4.1.18-dfsg/src/VBox/Main/src-server/VirtualBoxImpl.cpp[484] (nsresult VirtualBox::init())

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: VirtualBox
Interface: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}

My Computer is currently running Ubuntu 12.10.

share|improve this question
    
Could you add some info? AKA, your computer type (eg. Toshiba Satellite A105, some specs, etc...) That would help. –  RPi Awesomeness May 6 '13 at 23:47
    
It's a Dell inspiron comp with an AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ × 2 with Microsoft Windows 7 Professional 64x and Linux Ubuntu 12.10 64x. –  Joshua May 7 '13 at 0:21
    
Ok, check out @Radu's answer below –  RPi Awesomeness May 7 '13 at 0:22
    
Can you post the contents of the VirtualBox.xml file? –  Dr.Tower May 7 '13 at 0:48
add comment

2 Answers

I have listed the files and found that there are 2 files . One named VirtualBox.xml and the other VirtualBox.xml-prev. I noticed that the first file`s size was 0 bytes and the second like 1243 bytes, anyway different than 0.

So I have opened the both files and I copied the content from VirtualBox.xml-prev to the first file, save and closed the file and worked.

In my laptop the files were located in ~/.VirtualBox.

share|improve this answer
    
Short version, In your VM folder rename your *.xml-prev file to *.xml, for VirtualBox >= v4.0, rename the *.vbox-prev file to *.vbox. –  Radu Maris Jan 29 at 13:28
add comment

Here's how you can fixed it.

  1. Uninstall whatever version of VirtualBox you currently have installed: How to uninstall VirtualBox.
  2. Delete the local hidden folder (/.VirtualBox, which contains an .XML file which is causing the error).
  3. Install VirtualBox: VirtualBox/Installation.
share|improve this answer
add comment

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.