Page 1 of 1

Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Posted: 16. Mar 2011, 15:46
by kevinsmith
I've just installed VirtualBox 4.0.4 on Windows 7 Home Premium 64-bit. When I run it I got following error message:

Code: Select all

Failed to create the VirtualBox COM object. The applicatiion will now terminate.

Callee RC: TYPE_E_LIBNOTREGISTERED (0x8002801D)
When I try to use VBoxManage error message is more accurate:

Code: Select all

c:\Program Files\Oracle\VirtualBox>VBoxManage.exe showvminfo VBoxManage.exe: error: Failed to create the VirtualBox object! VBoxManage.exe: error: Code TYPE_E_LIBNOTREGISTERED (0x8002801D) - Library not registered. (extended info not available) VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.
It would be great if you could help resolve this issue. If you need more information please let me now.

Thanks in advance.
Kevin

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Posted: 16. Mar 2011, 16:08
by Perryg
This usually indicates a failed install. Re-install and select repair. Reboot after the install is finished.

Also make sure that your virus software is completely shut down before you install. If problem persists post the make and version of your virus software.

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Posted: 16. Mar 2011, 16:47
by kevinsmith
I tried it several times. Installation went smoothly and I haven't seen any error messages.

I tried reinstall and later on uninstall and install one more time...

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Posted: 16. Mar 2011, 16:50
by Perryg
Then something is interfering with it. What is your virus software and have you tried installing with it totally disabled?

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Posted: 16. Mar 2011, 16:56
by kevinsmith
Sorry, I forgot to mention. I have no antivirus software installed at all.

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Posted: 16. Mar 2011, 17:02
by Perryg
Did you also install the Extension Pack How to install Extension Pack?
Tell me exactly the steps you use to install VirtualBox including who installs (IE: admin, normal user). Also do you reboot after the install?

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Posted: 16. Mar 2011, 18:12
by kevinsmith
1. No, I haven't installed Extension Pack.
2. I made installation as administrator user and I reboot after install.
I made standard installation with default settings, though I also tried to install VBox to different directory and with fewer options. Unfortunately all the time I have errors...

Install options:
All components (default)
VirtualBOX USB Support
VirtualBOX Networking
VirtualBox PythonSupport

--------------------------------
3. I tried to change settings of VBoxSVC.exe file (I found somebody in different thread suggested that), so this file is run as administrator (Right Click on file->Properties->Run as adminitrator). Then when I try to run VBox i got:

Code: Select all

VBoxManage.exe: error: Failed to create the VirtualBox object!
VBoxManage.exe: error: Code Unknown Status 0x800702E4 (0x800702E4) - Unknown Status 0x800702E4 (extended info not available)
VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.

I've also found following entry in Event viewer:

Code: Select all

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Windows-DistributedCOM" Guid="{1B562E86-B7AA-4131-BADC-B6F3A001407E}" EventSourceName="DCOM" /> 
  <EventID Qualifiers="49152">10000</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>0</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="2011-03-16T15:42:00.000000000Z" /> 
  <EventRecordID>137728</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="0" ThreadID="0" /> 
  <Channel>System</Channel> 
  <Computer>feluka-d</Computer> 
  <Security /> 
  </System>
- <EventData>
  <Data Name="param1">C:\WORKSP~1\VIRTUA~1\VBoxSVC.exe -Embedding</Data> 
  <Data Name="param2">740</Data> 
  <Data Name="param3">{B1A7A4F2-47B9-4A1E-82B2-07CCD5323C3F}</Data> 
  </EventData>
  </Event>

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Posted: 17. Mar 2011, 00:19
by kevinsmith
I got error code 0x80070005 which is ACCESS_DENIED:

Code: Select all

VBoxSVC /ReRegServer
regsvr32 VBoxC.dll
Using ProcessMonitor (SysInternals) I found entries with Result=ACCESS DENIED which pointed me exact registry key, which has no owner:
*HKEY_CLASSES_ROOT\TypeLib\{46137EEC-703B-4FE5-AFD4-7C9BBBBA0259}


When I fix the missing permission all is working fine.

I don't understand why I had such situation.

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOT

Posted: 14. Feb 2015, 09:53
by damirchilo
In windows 7 or later version( -v > 6.1 ), your windows account needs to be member of built-in windows GROUP "Distributed COM Users". You can grant this permission on any user as you have "Administrator" account. This can be done on >control panel > administrative tools > computer management > Local users and groups > Users, and click on your account name and go to "Member of" tab and click "Add" button to add Group "Distributed COM Users".

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOT

Posted: 14. Feb 2015, 12:56
by mpack
kevinsmith wrote:2. I made installation as administrator user and I reboot after install.
That's a mistake right there. That means that the "Adminstrator user" can now run VMs, but you can't.

You need to install for the correct user, running the installer using "Run as administrator" to provide temp rights to install drivers etc.

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOT

Posted: 16. Feb 2015, 01:36
by socratis
mpack wrote:That means that the "Adminstrator user" can now run VMs, but you can't.
Now, you see, I have a problem with this statement. As administrator I can "install" a program and "run" it. As a user I can only "run" it. There is nothing that says that an administrator-installed application will not run under simple user credentials. Certainly no elevated privileges are required to run VirtualBox, and only the "Run as administrator" may be useful, in case your restrictions about driver installation are too limiting.

I wonder what would you do in case that you have 1 administrator and 5 different users. Install VirtualBox 5 different times as user1...user5? No. You'd install it once as admin and run it as userN. I just tried it (in a VM ;) ).

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOT

Posted: 16. Feb 2015, 17:53
by mpack
The "Adminstrator user account" is quite different from having admin rights. That is precisely the OPs mistake. It might help if you think of the similarity in names of these features as entirely coincidental.

VirtualBox on Windows Hosts will work best if the software is installed for the correct user. Especially if the software in question requires special drivers and services to be registered or loaded.