Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

My blog about Open Source: Zimbra Mail Server,linux,bash script,centos,linux command...

Failed to create the VirtualBox COM object solve problem

Someday, your Virtualbox not start and the display error "Failed to create the VirtualBox COM object". it got somewhat corrupted.

The error of Virtualbox "Failed to create the VirtualBox COM object" as below:

Location: '/home/huupv/.config/VirtualBox/VirtualBox.xml', line 1 (0), column 1.
/home/vbox/vbox-5.2.14/src/VBox/Main/src-server/VirtualBoxImpl.cpp[554] (nsresult VirtualBox::init()).

How to solve problem!

Step 1: make sure process VBoxSVC not running
Step 2: make a copy file VirtualBox.xml then delete original file.
Step 3: Rename VirtualBox.xml-prev file to VirtualBox.xml file.
Step 4: try again start VirtualBox.

To check not running process VBoxSVC not running use ps command as below:
$ ps -ef | grep VBoxSVC
huupv 10122 2421 0 22:19 pts/1 00:00:00 grep --color=auto VBoxSVC

To check VirtualBox.xml file and Delete VirtualBox.xml file
$ ll /home/huupv/.config/VirtualBox/ | grep VirtualBox.xml
-rw-------. 1 huupv huupv 0 Jul 5 23:18 VirtualBox.xml
-rw-------. 1 huupv huupv 3995 Jul 5 21:28 VirtualBox.xml-prev
$ rm -f /home/huupv/.config/VirtualBox/VirtualBox.xml

Rename VirtualBox.xml-prev file to VirtualBox.xml file with cp command as below:
$ cp -R /home/huupv/.config/VirtualBox/VirtualBox.xml-prev /home/huupv/.config/VirtualBox/VirtualBox.xml
 Try again start VirtualBox.

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com

5 Comments

Still the same, I cannot access virtualbox using sudo.

Relay

Hi Lorena
you can use terminal sudo command ? switch to sudo su ?

Relay

Some parts are in portuguese, but the error is the same.

[email protected]:~$ sudo su
[sudo] senha para lorena:
[email protected]:/home/lorena# virtualbox

"Failed to create the VirtualBox COM object"
Document is empty.
Location: '/root/.config/VirtualBox/VirtualBox.xml', line 1 (0), column 1.
/home/vbox/vbox-5.2.14/src/VBox/Main/src-server/VirtualBoxImpl.cpp[554] (nsresult VirtualBox::init()).


Código de Resultado:
NS_ERROR_FAILURE (0x80004005)
Componente:
VirtualBoxWrap
Interface:
IVirtualBox {9570b9d5-f1a1-448a-10c5-e12f5285adad}
Chamador:
IVirtualBoxClient {d2937a8e-cb8d-4382-90ba-b7da78a74573}

Relay

Hi LORENA
Step 1: you can back or delete file VirtualBox.xml as command below
rm -f /root/.config/VirtualBox/VirtualBox.xml
Step 2: find VirtualBox.xml-prev file as command below
find / -type f -name VirtualBox.xml-prev
Step 3: copy example as below
cp /root/.config/VirtualBox/VirtualBox.xml-prev /root/.config/VirtualBox/VirtualBox.xml
I hope this helpful

Relay

This Blog is protected by DMCA.com