Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Discussions related to using VirtualBox on Windows hosts.
Post Reply
kevinsmith
Posts: 5
Joined: 16. Mar 2011, 15:41
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Windows

Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Post 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.
kevinsmith
Posts: 5
Joined: 16. Mar 2011, 15:41
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Windows

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Post 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...
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Post by Perryg »

Then something is interfering with it. What is your virus software and have you tried installing with it totally disabled?
kevinsmith
Posts: 5
Joined: 16. Mar 2011, 15:41
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Windows

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Post by kevinsmith »

Sorry, I forgot to mention. I have no antivirus software installed at all.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Post 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?
kevinsmith
Posts: 5
Joined: 16. Mar 2011, 15:41
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Windows

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Post 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>
kevinsmith
Posts: 5
Joined: 16. Mar 2011, 15:41
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Linux, Windows

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOTREGI

Post 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.
damirchilo
Posts: 1
Joined: 14. Feb 2015, 09:43

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOT

Post 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".
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOT

Post 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.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOT

Post 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 ;) ).
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Failed to create the VIrtualBox COM object TYPE_E_LIBNOT

Post 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.
Post Reply