VirtualBox Fix: "Failed to create the VirtualBox COM object" Result Code: NS_ERROR_FAILURE (0x80004005)


Today my VirtualBox wouldn't start, with this error:


Failed to create the VirtualBox COM object.
The application will now terminate.
Start tag expected, '<' not found.
Location: '/home/lefty/.VirtualBox/VirtualBox.xml', line 1 (0), column 1.
 Result Code:  NS_ERROR_FAILURE (0x80004005)

I think this was due to my home directory filling up over the night, and may or may not have been related to having a VM running at the time.  I cleaned up my homedir to give myself some space but then I had this VirtualBox issue.

I read all kinds of info about fixing this, but in the end it was very simple.  VirtualBox had created a backup of my file a month ago or so, and I had no new VMs since then, so I was able to copy an older file into place and all worked out fine:


lefty$  ls -la  .VirtualBox/VirtualBox.xml*
-rw------- 1 lefty users    0 Feb 23 08:57 .VirtualBox/VirtualBox.xml
-rw------- 1 lefty users 2504 Apr 10  2009 .VirtualBox/VirtualBox.xml.1.3-linux.bak
-rw------- 1 lefty users  2757 Apr 21  2009 .VirtualBox/VirtualBox.xml.1.6-linux.bak
-rw------- 1 lefty users 4258 Jan 11 14:23 .VirtualBox/VirtualBox.xml-prev


lefty$  cp .VirtualBox/VirtualBox.xml-prev .VirtualBox/VirtualBox.xml

VirtualBox start up fine after that.


No comments:

Post a Comment