Monday, November 30, 2015

Cannot Start VirtualBox Virtual Machine after an Upgrade

Having upgraded Oracle Virtualbox on a Windows host, I found that I could not start any Virtual Machine instances. VirtualBox displays a dialogue window with the error message shown below,



Examining the virtual machine log file, i.e., Logs\VBoxHardening.log in the Virtual Machine instance directory, I found the following error message near the end of the log file,

1660.6c38: supR3HardenedVmProcessInit: Opening vboxdrv stub...
1660.6c38: Error opening VBoxDrvStub:  STATUS_OBJECT_NAME_NOT_FOUND
1660.6c38: supR3HardenedWinReadErrorInfoDevice: NtCreateFile -> 0xc0000034
1660.6c38: Error -101 in supR3HardenedWinReSpawn! (enmWhat=3)
1660.6c38: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries)

Driver is probably stuck stopping/starting. Try 'sc.exe query vboxdrv' to get more information about its state. Rebooting may actually help.

The message indicates that Windows service vboxdrv, i.e., the Virtual Box Driver has some problem. Following the advice in the log, I issue sc.exe query vboxdrv in a Windows Command Prompt window,

C:\>sc start vboxdrv
[SC] StartService: OpenService FAILED 1060:

The specified service does not exist as an installed service.
C:\>

which indicates that Windows service vboxdrv does not exist. To fix the issue, I reinstalled the driver vboxdrv from the directory C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv. From the Windows GUI, you can right click the VBoxDrv.inf and choose "install".
If the installation is successful and you query the driver status again, you should see something similar below,

C:\>sc query vboxdrv

SERVICE_NAME: vboxdrv
        TYPE               : 1  KERNEL_DRIVER
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
C:\>

Now I can launch the virtual machine instances.

19 comments:

  1. dosen't work for me.After re- installing VBoxDrv got same status as earlier
    SERVICE_NAME: vboxdrv
    TYPE : 1 KERNEL_DRIVER
    STATE : 1 STOPPED
    WIN32_EXIT_CODE : 31 (0x1f)
    SERVICE_EXIT_CODE : 0 (0x0)
    CHECKPOINT : 0x0
    WAIT_HINT : 0x0

    ReplyDelete
    Replies
    1. I get the same response as yours.
      Have you got a solution already?

      Delete
    2. After installing VBoxDrv, and BEFORE starting VirtualBox, in an administrator's console type 'sc start vboxdrv'. This should start the service, allowing you to use VirtualBox.

      Delete
    3. This comment has been removed by the author.

      Delete
  2. This worked, but I needed to run (as admin):

    sc start vboxdrv

    after installing the INF file.

    ReplyDelete
    Replies
    1. This is correct. I've also tried this and now my VM runs again.

      @OP, please edit your post with this step. Thanks.

      Delete
  3. I have been browsing online more than 2 hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my opinion, if all web owners and bloggers made good content as you did, the web will be much more useful than ever before. Websites: How To Lock Files With Minimum Effort And Still Leave People Amazed.

    ReplyDelete
  4. I'm getting this error message when running sc.exe start vboxdrv
    [SC] StartService FAILED 1056:

    An instance of the service is already running.

    ReplyDelete
  5. I keep getting this error: Driver is probably stuck stopping/starting. Try 'sc.exe query vboxdrv' to get more information about its state. Rebooting may actually help.
    1bb4.3fd0: Error -101 in supR3HardenedWinReSpawn! (enmWhat=3)
    1bb4.3fd0: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries)

    I have deleted old VM and re-installed vm few times. vboxdrv is unable to install from driver directory. Every time i install my screen flashes and driver is not installed.

    ReplyDelete

  6. Impressive work! I really appreciate your post. My usual reaction to blogs is not to post a comment, but your article has been so persuasive that I cannot resist writing a response. Keep it up, you're doing a good job.
    Take a look at the most recent post on an excellent website as well. There is a post on the topic of equal. Please read the post CPS Test - Check Clicks per Second for more information.

    ReplyDelete