Virtualbox ошибка ntcreatefile device vboxdrvstub failed 0xc0000034

jeebc

Posts: 25
Joined: 3. Mar 2015, 22:03

NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034

I’m, trying to start up an image on another computer, getting this error:

NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034
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. (rc=-101)

Make sure the kernel module has been loaded successfully.

Computer is Windows 7 (64-bit), Vbox is 4.3.24
The image worked just fine when running on the other computer

When I run sc.exe query vboxdrv I get :

> sc.exe 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

michaln

Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034

Post

by michaln »

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

So this is happening after a reboot?

jeebc

Posts: 25
Joined: 3. Mar 2015, 22:03

kpenrose

Posts: 7
Joined: 25. Oct 2013, 16:32

Re: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034

Post

by kpenrose »

Same issue with me — just downloaded and installed the 4.3.24 version — running on a Win 7 machine, Ubuntu 14.10 virtual machine.

I’ve attached my log file. I ran the sc.exe command and I see this:

SERVICE_NAME: vboxdrv
        TYPE               : 1  KERNEL_DRIVER
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 2  (0x2)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

I have rebooted several times, with the same results.

Attachments
VBoxStartup.log
(13.3 KiB) Downloaded 4561 times

kpenrose

Posts: 7
Joined: 25. Oct 2013, 16:32

Re: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034

Post

by kpenrose »

Okay — got it working.
Here’s what I did.

Went to the C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv directory, right clicked on VBoxDrv.inf and selected Install. I then went back to my console and typed ‘sc start vboxdrv’ and got this:

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
        PID                : 0
        FLAGS              :

Went back to VirtualBox and was able to start the Ubuntu virtual machine.

Saman

Posts: 1
Joined: 29. Jul 2015, 13:46

In this article, we will see how to solve NtCreateFile failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND error if you are also getting this one in your Windows 10 System. To give you more insight about the problem, I am running Ubuntu 20.04 LTS VM on Virtualbox installed on Windows 10 System. Yesterday, while the VM was running my system suddenly stopped responding and after sometime it got restarted automatically.

So all the open files, browsers and running VM got unexpectedly closed. Once the system restarted, I tried to start the Ubuntu 20.04 LTS VM but it got failed with the error "NtCreateFile failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND". While this error could occur due to any reasons, here I will show you the exact root cause in my case and what I did to solve it.

NtCreateFile failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND

Also Read: How to Download and Install Oracle VirtualBox on Windows 10

When I checked VBoxHardening log file to collect more information about the error then I noticed that the error is pointing to driver being stuck may be in stopping/starting state due to which VM is unable to start.

24a4.1d30: Error -101 in supR3HardenedWinReSpawn! (enmWhat=3)
24a4.1d30: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries)

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

So I first tried to run sc.exe query vboxsup in the command prompt as mentioned in the logs to check the status of the service. Here I found that the vboxsup service does not exist and hence showing as not installed.

NOTE:

Please make sure to start the command prompt as administrator to run the privileged commands.

C:\Windows\system32>sc.exe query vboxsup
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:

The specified service does not exist as an installed service.

NOTE:

Please note that you may require administrator or equivalent access to go inside the C drive folder and to install the below service.

So to install the above service, I went to C:\Program Files\Oracle\VirtualBox\drivers\vboxsup folder and right clicked on VBoxSup and then clicked on Install to first install this service. Once it got installed successfully, I checked the status again by running same sc.exe query vboxsup command and this time I noticed that the driver is showing installed but it is currently in STOPPED state as you can also see below.

C:\Windows\system32>sc.exe query vboxsup

SERVICE_NAME: vboxsup
        TYPE : 1 KERNEL_DRIVER
        STATE : 1 STOPPED
        WIN32_EXIT_CODE : 1077 (0x435)
        SERVICE_EXIT_CODE : 0 (0x0)
        CHECKPOINT : 0x0
        WAIT_HINT : 0x0

To start the above service, I ran sc.exe start vboxsup command as shown below. This started the successfully with status showing in RUNNING state as shown below.

C:\Windows\system32>sc.exe start vboxsup

SERVICE_NAME: vboxsup
        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
        PID : 0
        FLAGS :

Once the VBoxSup service started, I again tried to start my VM and this time I noticed that VM started without any error. This confirms that above solution worked for me. Hopefully this will work for you as well. Please let me know your feedback in the comment box.

I’m running Vagrant (1.8.1) + VirtualBox (5.0.12) on Windows 7 and trying to boot up a Windows 7 image (modernIE/w7-ie8). However, I get this error:

---------------------------
VirtualBox - Error In supR3HardenedWinReSpawn
---------------------------
<html><b>NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries) (rc=-101)</b><br/><br/>Make sure the kernel module has been loaded successfully.<br><br><!--EOM-->where: supR3HardenedWinReSpawn
what:  3
VERR_OPEN_FAILED (-101) - File/Device open failed.

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

I ran the query command, but the service «is not found».

> sc.exe query vboxdrv
[SC] EnumQueryServicesStatus:OpenService FAILED 1060:

The specified service does not exist as an installed service.

I tried rebooting, too. Nothing.

asked Jan 13, 2016 at 22:18

Anthony Mastrean's user avatar

Anthony MastreanAnthony Mastrean

21.9k21 gold badges110 silver badges188 bronze badges

I am on windows 10 and following steps works for me:

Steps:

  1. Navigate to «C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv»
  2. Right click on «VBoxDrv.inf» file and select Install option
  3. Open the Console as a administrator and run the following command

    sc start vboxdrv
    

Praetorian's user avatar

Praetorian

107k19 gold badges240 silver badges330 bronze badges

answered Aug 4, 2016 at 16:59

Ram Ch. Bachkheti's user avatar

13

There’s something wrong with the installation of VirtualBox (I’ve been seeing reports of this problem as far back as 4.x). The installer registers an incorrect location for the driver SYS file (the ImagePath in this example).

PS> Get-ItemProperty HKLM:\system\currentcontrolset\services\vboxdrv


Type         : 1
Start        : 3
ErrorControl : 1
ImagePath    : \??\C:\Program Files\Oracle\VirtualBox\VBoxDrv.sys
DisplayName  : VBox Support Driver
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\system\currentcontrolset\services\vboxdrv
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\system\currentcontrolset\services
PSChildName  : vboxdrv
PSDrive      : HKLM
PSProvider   : Microsoft.PowerShell.Core\Registry

The file doesn’t exist.

PS> Test-Path (Get-ItemProperty HKLM:\system\currentcontrolset\services\vboxdrv).ImagePath
False

The actual location requires an extra drivers\vboxdrv.

PS> Test-Path 'C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VBoxDrv.sys'
True

You can update the registered location.

PS> Set-ItemProperty HKLM:\system\currentcontrolset\services\vboxdrv -Name ImagePath -Value '\??\C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\VBoxDrv.sys'

And now you can start the driver/service.

> sc.exe start vboxdrv

answered Jan 13, 2016 at 22:26

Anthony Mastrean's user avatar

Anthony MastreanAnthony Mastrean

21.9k21 gold badges110 silver badges188 bronze badges

10

Try the following code (as administrator):

 sc.exe start vboxdrv

moffeltje's user avatar

moffeltje

4,5114 gold badges33 silver badges57 bronze badges

answered Jun 13, 2016 at 12:58

Yousif Garabet's user avatar

1

I did what Anthony Mastrean suggested but I was still getting some errors:

C:\Vagrant>sc query vboxdrv

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

C:\Vagrant>sc start vboxdrv
[SC] StartService FAILED 123:

The filename, directory name, or volume label syntax is incorrect.

This thread on superuser gave me the solution:

find C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv\ VBoxDrv.inf
right click and select Install

answered Mar 28, 2019 at 19:49

hestellezg's user avatar

hestellezghestellezg

3,3093 gold badges33 silver badges37 bronze badges


> vboxmanage --version
7.0.6r155176

Fix:
C:\Program Files\Oracle\VirtualBox\drivers\vboxsup\VBoxSup.inf # Right Click to install
> sc.exe query vboxsup
> sc.exe start vboxsup

answered Feb 3 at 11:25

hakkican's user avatar

hakkicanhakkican

4161 gold badge3 silver badges12 bronze badges

As already pointed out, there seems to be a file-path issue after upgrades, especially when the VBox was open. The question’s keyword was not giving any working results for me here, as I could not even find the directory /xboxdrv/ and even the file VBoxDrv.inf so I changed to missing xboxdrv and I found quick windows_approach here https://stackoverflow.com/a/32077300/5922263. It simply says that head to the program list, right-click Oracle VM VirtualBox and click Repair and this time, ensure it is closed first:

ControlPanel > Programs > Programs and Features > Oracle VM VirtualBox

I hope this helps.

answered Oct 2, 2022 at 7:31

Ajowi's user avatar

AjowiAjowi

4593 silver badges12 bronze badges

Found the answer elsewhere: however, I must note, that I ended up with another error not having multiple virtual screens or graphical options in configuration, reinstalling helped, but this error returned and the solution stopped to work, what effectively helped after was uninstalling and reinstalling VirtualBox — perhaps also due to error message

C: Program Files\ Oracle\VirtualBox\drivers is unavailable. If the location is on this PC, make sure the device or drive is connected or the disc is inserted, and then try again

while the folder existed; I checked manually

From https://forums.virtualbox.org/viewtopic.php?t=66442#p314829:

RE: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034:

Postby kpenrose » 6. Mar 2015, 19:15

Okay — got it working. Here’s what I did.

Went to the C:\Program Files\Oracle\VirtualBox\drivers\vboxdrv
directory, right clicked on VBoxDrv.inf and selected Install. I then
went back to my console and typed ‘sc start vboxdrv’ and got this:

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
        PID                : 0
        FLAGS              :

Went back to VirtualBox and was able to start the Ubuntu virtual
machine.

My similar error:

enter image description here

VirtualBox — Error In supR3Hardened WinkeSpawn

NtCreateFile(\Device\VBoxDrvStub) failed: Unknown Status -5633
(0xffffe9ff) (rcNt=0xe986e9ff) VBoxDrvStub error: Unknown image file
\Device \HarddiskVolume4\Program
Files\Oracle\VirtualBox\VirtualBoxVM.exe at 00007ff7f1b90000.
(rc83Exp—91) (rc=-5633)

Make sure the kernel module has been loaded successfully.

where: supR3HardenedWinReSpawn what: 3
VERR_SUP_VP_NOT_KNOWN_DLL_OR_EXE (-5633) — Process Verification
Failure: An unknown and unwanted DLL was found loaded into the
process.

other accompanying errors
enter image description here

enter image description here

VirtualBox — Error In supR3HardenedWinReSpawn

NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000e
STATUS_NO_SUCH_DEVICE (160 retries) (rc=-101)

Make sure the kernel
module has been loaded successfully.

where: supR3HardenedWinReSpawn
what: 3 VERR_OPEN_FAILED (-101) — File/ Device open failed. Driver is
probably stuck stopping/starting. Try ‘sc. exe query vboxdrv’ to get
more information about its state. Rebooting may actually help.

У меня проблемы, я полагаю, так как я обновил свой ноутбук с Windows 8.1 до Windows 10, на эмуляции. Я здесь дам всю информацию, которую я могу о каждой моей попытке подражать.

Первый VirtualBox. Я создал несколько машин для разных ОС, но каждый раз, при первой попытке запустить машину и выбрать файл .iso, запуск завершился неудачей с этой ошибкой:

NtCreateFile(\Device\VBoxDrvStub) failed: 0xc0000034 STATUS_OBJECT_NAME_NOT_FOUND (0 retries) (rc=-101)Make sure the kernel module has been loaded successfully.

where: supR3HardenedWinReSpawn
what:  3
VERR_OPEN_FAILED (-101) - File/Device open failed.

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

В интернете у людей была такая же проблема после обновления их Windows 7 (без обновления до Windows 10). Затем Microsoft опубликовала это: https://support.microsoft.com/en-us/kb/3024777, и, похоже, это работает для них.

Я также попытался установить некоторые эмуляторы Android, и, если я успешно установил их, запустить их было невозможно.

Я подумал, что, возможно, проблема в BIOS, где визуализация может быть не включена. К сожалению, я не могу понять, как получить доступ к BIOS (мой ноутбук — серия ASUS R500V Intel), поэтому я не мог подтвердить или опровергнуть теорию. РЕДАКТИРОВАТЬ: мне наконец-то удалось проверить BIOS, и визуализация включена.

Я также хочу добавить, что почти все упомянутые здесь проблемы не существовали раньше. Я уже запускал Ubuntu на VirtualBox и использовал эмулятор Android на этом компьютере, но с момента появления первой проблемы прошло время, и у меня было время обновить Windows. Возможно, проблема не в обновлении, а в обновлении после или до обновления. Поэтому я могу найти причину, я мог установить проблемное обновление, упомянутое здесь: https://forums.virtualbox.org/viewtopic.php?f=6&t=67840. После обновления я не могу установить «исправление обновления», данное Microsoft, так как это только для Windows 7 (это также может быть глупо, так как у меня была Windows 8.1 до обновления).

Я с нетерпением жду решения, так как мне нужна система Linux для изучения, и я не хочу устанавливать Linux как двойную загрузку.

Понравилась статья? Поделить с друзьями:
  • Virtualbox ошибка no bootable medium found system halted
  • Virtualbox ошибка 0x80bb0005
  • Virtualbox ошибка 2503 при установке
  • Virtualbox ошибка 1912
  • Virtualbox ошибка 0xc000000e