E_FAIL on creating a new machine on 6.0.10 on Win 7

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Cysioland
Posts: 2
Joined: 18. Jul 2019, 21:55

E_FAIL on creating a new machine on 6.0.10 on Win 7

Post by Cysioland »

Hello,

I have a peculiar problem with VirtualBox. When I'm trying to create a new VM, after the step where you create a new disk, it fails with error code E_FAIL (0x80004005). Literally that, nothing more.
Followed the guide on cleaning up that's going around forums (account too young to post link to it), reinstalled VBox many times, and no dice. Cannot create any virtual machine at all.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: E_FAIL on creating a new machine on 6.0.10 on Win 7

Post by socratis »

For the benefit of others, we started troubleshooting this over at IRC. Things tried:
  • Going through the thorough uninstall, clean registry, no antivirus installed, installed VirtualBox with the right-click » Run As Administrator.
  • VBoxSVC.log

    Code: Select all

    00:00:00.031001 main     VirtualBox COM Server 6.0.10 r132072 win.amd64 (Jul 12 2019 09:34:54) release log
    00:00:00.031001 main     Log opened 2019-07-18T18:40:03.544571000Z
    00:00:00.031001 main     Build Type: release
    00:00:00.031001 main     OS Product: Windows 7
    00:00:00.031001 main     OS Release: 6.1.7601
    00:00:00.031001 main     OS Service Pack: 1
    00:00:00.083004 main     DMI Product Name: OptiPlex 3010
    00:00:00.089005 main     DMI Product Version: 01
    00:00:00.089005 main     Host RAM: 3992MB (3.8GB) total, 1850MB available
    00:00:00.089005 main     Executable: C:\Program Files\Oracle\VirtualBox\VBoxSVC.exe
    00:00:00.089005 main     Process ID: 40080
    00:00:00.089005 main     Package type: WINDOWS_64BITS_GENERIC
    00:00:00.214012          VirtualBox: object creation starts
    00:00:00.214012          Home directory: 'C:\Users\Zdalny\.VirtualBox'
    00:00:00.215012          Installed Drivers:
    00:00:00.242013            C:\Windows\system32\DRIVERS\VBoxDrv.sys (Version: 6.0.10.32072)
    00:00:00.242013            C:\Windows\system32\DRIVERS\VBoxUSBMon.sys (Version: 6.0.10.32072)
    00:00:00.243013            C:\Windows\system32\DRIVERS\VBoxNetAdp6.sys (Version: 6.0.10.32072)
    00:00:00.243013            C:\Windows\system32\DRIVERS\VBoxNetLwf.sys (Version: 6.0.10.32072)
    00:00:00.438025          HostDnsMonitor::updateInfo
    00:00:00.438025          HostDnsMonitor: old information
    00:00:00.438025            no server entries
    00:00:00.438025            no domain set
    00:00:00.438025            no search string entries
    00:00:00.438025          HostDnsMonitor: new information
    00:00:00.438025            server 1: 10.0.0.2
    00:00:00.438025            domain: redacted.tld
    00:00:00.438025            no search string entries
    00:00:00.665038          VD: VDInit finished with VINF_SUCCESS
    00:00:00.743042          OCI: Local config file 'C:\Users\Zdalny\.VirtualBox\oci_config' does not exist
    00:00:00.743042          OCI: Original config file 'C:\Users\Zdalny\.oci\config' does not exist
    00:00:00.743042          OCI: Reading profiles finished with status ERROR_SUCCESS
    00:00:00.744042          ExtPack: Created cloud provider 'OCI' (hrc=ERROR_SUCCESS)
    00:00:00.764043          VirtualBox: object created
    00:00:06.293360          Saving settings file "C:\Users\Zdalny\.VirtualBox\VirtualBox.xml" with version "1.12-windows"
    00:00:06.352363          Saving settings file "C:\Users\Zdalny\.VirtualBox\VirtualBox.xml" with version "1.12-windows"
    00:00:06.389365 dns-monitor HostDnsMonitor::updateInfo
    00:00:06.389365 dns-monitor HostDnsMonitor: unchanged
    00:02:07.492292 dns-monitor HostDnsMonitor::updateInfo
    00:02:07.492292 dns-monitor HostDnsMonitor: unchanged
    00:02:13.914659 dns-monitor HostDnsMonitor::updateInfo
    00:02:13.914659 dns-monitor HostDnsMonitor: unchanged
    00:02:38.187047 createBase Saving settings file "C:\Users\Zdalny\.VirtualBox\VirtualBox.xml" with version "1.12-windows"
    00:02:38.795082          Saving settings file "C:\Users\Zdalny\VirtualBox VMs\Svetovid\Svetovid.vbox" with version "1.16-windows"
    00:02:38.830084          Saving settings file "C:\Users\Zdalny\VirtualBox VMs\Svetovid\Svetovid.vbox" with version "1.16-windows"
    00:02:38.844085          Saving settings file "C:\Users\Zdalny\.VirtualBox\VirtualBox.xml" with version "1.12-windows"
    00:02:38.930090          ERROR [COM]: aRC=VBOX_E_VM_ERROR (0x80bb0003) aIID={5047460a-265d-4538-b23e-ddba5fb84976} aComponent={MachineWrap} aText={Failed to assign the machine to the session (E_FAIL)}, preserve=false aResultDetail=0
    00:02:39.003094          ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={5047460a-265d-4538-b23e-ddba5fb84976} aComponent={MachineWrap} aText={This machine does not have any snapshots}, preserve=false aResultDetail=0
    00:05:06.933555          Saving settings file "C:\Users\Zdalny\.VirtualBox\VirtualBox.xml" with version "1.12-windows"
    00:05:09.925726          Saving settings file "C:\Users\Zdalny\.VirtualBox\VirtualBox.xml" with version "1.12-windows"
    00:06:19.806723 dns-monitor HostDnsMonitor::updateInfo
    00:06:19.806723 dns-monitor HostDnsMonitor: unchanged
    00:06:38.463790 dns-monitor HostDnsMonitor::updateInfo
    00:06:38.463790 dns-monitor HostDnsMonitor: unchanged
    00:06:44.874157 dns-monitor HostDnsMonitor::updateInfo
    00:06:44.874157 dns-monitor HostDnsMonitor: unchanged
  • VirtualBox.xml

    Code: Select all

    <?xml version="1.0"?>
    <!--
    ** DO NOT EDIT THIS FILE.
    ** If you make changes to this file while any VirtualBox related application
    ** is running, your changes will be overwritten later, without taking effect.
    ** Use VBoxManage or the VirtualBox Manager GUI to make changes.
    -->
    <VirtualBox xmlns="http://www.virtualbox.org/" version="1.12-windows">
      <Global>
        <ExtraData>
          <ExtraDataItem name="GUI/Details/Elements" value="general,system,preview,display,storage,audio,network,usb,sharedFolders,description"/>
          <ExtraDataItem name="GUI/HideDescriptionForWizards" value="NewVM"/>
          <ExtraDataItem name="GUI/LastItemSelected" value="n=GLOBAL"/>
          <ExtraDataItem name="GUI/LastWindowPosition" value="400,215,800,430"/>
          <ExtraDataItem name="GUI/SplitterSizes" value="264,535"/>
          <ExtraDataItem name="GUI/Tools/LastItemsSelected" value="Welcome,Details"/>
          <ExtraDataItem name="GUI/UpdateCheckCount" value="2"/>
          <ExtraDataItem name="GUI/UpdateDate" value="1 d, 2019-07-19, stable, 6.0.10"/>
        </ExtraData>
        <MachineRegistry>
          <MachineEntry uuid="{4bc5e530-31b5-4c29-bf54-e05515667670}" src="C:\Users\Zdalny\VirtualBox VMs\Perun\Perun.vbox"/>
        </MachineRegistry>
        <MediaRegistry>
          <HardDisks>
            <HardDisk uuid="{e03a1553-6b07-4b57-946e-f0cfdd4bb042}" location="G:/Perun.vmdk" format="VMDK" type="Normal"/>
          </HardDisks>
        </MediaRegistry>
        <NetserviceRegistry>
          <DHCPServers>
            <DHCPServer networkName="HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter" IPAddress="192.168.56.100" networkMask="255.255.255.0" lowerIP="192.168.56.101" upperIP="192.168.56.254" enabled="1"/>
          </DHCPServers>
        </NetserviceRegistry>
        <SystemProperties defaultMachineFolder="C:\Users\Zdalny\VirtualBox VMs" defaultHardDiskFormat="VDI" VRDEAuthLibrary="VBoxAuth" webServiceAuthLibrary="VBoxAuth" LogHistoryCount="3" proxyMode="0" exclusiveHwVirt="false"/>
        <USBDeviceFilters/>
      </Global>
    </VirtualBox>
    
  • The single registered VM, Perun.vbox:

    Code: Select all

    <?xml version="1.0"?>
    <!--
    ** DO NOT EDIT THIS FILE.
    ** If you make changes to this file while any VirtualBox related application
    ** is running, your changes will be overwritten later, without taking effect.
    ** Use VBoxManage or the VirtualBox Manager GUI to make changes.
    -->
    <VirtualBox xmlns="http://www.virtualbox.org/" version="1.16-windows">
      <Machine uuid="{4bc5e530-31b5-4c29-bf54-e05515667670}" name="Perun" OSType="Debian_64" snapshotFolder="Snapshots" lastStateChange="2019-07-18T19:12:49Z">
        <ExtraData>
          <ExtraDataItem name="GUI/FirstRun" value="yes"/>
        </ExtraData>
        <Hardware>
          <CPU>
            <PAE enabled="false"/>
            <LongMode enabled="true"/>
            <X2APIC enabled="true"/>
            <HardwareVirtExLargePages enabled="true"/>
          </CPU>
          <Memory RAMSize="2048"/>
          <HID Pointing="USBTablet"/>
          <Display controller="VMSVGA" VRAMSize="16"/>
          <VideoCapture file="." fps="25"/>
          <BIOS>
            <IOAPIC enabled="true"/>
          </BIOS>
          <USB>
            <Controllers>
              <Controller name="OHCI" type="OHCI"/>
              <Controller name="EHCI" type="EHCI"/>
            </Controllers>
          </USB>
          <Network>
            <Adapter slot="0" enabled="true" MACAddress="080027E621D1" type="82540EM">
              <NAT/>
            </Adapter>
          </Network>
          <AudioAdapter codec="AD1980" driver="DirectSound" enabled="true" enabledIn="false"/>
          <RTC localOrUTC="UTC"/>
        </Hardware>
        <StorageControllers>
          <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true"/>
          <StorageController name="SATA" type="AHCI" PortCount="1" useHostIOCache="false" Bootable="true" IDE0MasterEmulationPort="0" IDE0SlaveEmulationPort="1" IDE1MasterEmulationPort="2" IDE1SlaveEmulationPort="3"/>
        </StorageControllers>
      </Machine>
    </VirtualBox>
    
@Cysioland
Maybe you should attach the error dialog picture, it's empty, even when extended. Attach the image locally in your response (see the "Upload attachment" tab below the reply form). Not a lot of people will go to 3rd party sites. Plus, it's more convenient if the image goes along with the message...

Image
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.
Cysioland
Posts: 2
Joined: 18. Jul 2019, 21:55

Re: E_FAIL on creating a new machine on 6.0.10 on Win 7

Post by Cysioland »

Fixed the problem.

Turns out, when I once ran VboxVMService utility I had to change DCOM permissions of VirtualBox application to "This user". After reverting them to "Launching user" in DCOMCNFG.EXE the problem went away.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: E_FAIL on creating a new machine on 6.0.10 on Win 7

Post by socratis »

OH WOW! :shock:
Here's where I found what I think is the value that you changed:

Run DCOMCNFG.EXE »
  • ConsoleRoot »
    • Computers »
      • My Computer »
        • DCOM Config »
          • VirtualBox Application »
            • right-click, Properties »
              • Identity tab »
                • The launching user.
Phew! How in the seven kingdoms did you think to look there?
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.
Post Reply