NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034

Discussions related to using VirtualBox on Windows hosts.
Air Force One
Posts: 105
Joined: 6. Oct 2017, 16:54
Primary OS: MS Windows other
VBox Version: PUEL
Guest OSses: Windows
Location: Germany

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

Post by Air Force One »

Got this today with current development snapshot (119726). Went back to the current test build (119658), where everything works fine. The result of the sc.exe query vboxdrv command is:
SERVICE_NAME: vboxdrv
        TYPE               : 1  KERNEL_DRIVER
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 3917938651  (0xe986ffdb)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0
My log is attached.
Edit: tested with 119762, just the same.
Attachments
VBoxHardening.zip
(2.49 KiB) Downloaded 88 times
ruga
Posts: 9
Joined: 19. Sep 2017, 14:15

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

Post by ruga »

The same issue with me. Development snapshot 119726 shows exactly the same error described by Air Force One.
socratis
Site Moderator
Posts: 27330
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: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034

Post by socratis »

People... Unless you want this thread locked, there is a specific section of the forums that deals with that kind of issues: VirtualBox on Windows pre-releases; vote there!

I think we've had enough of "me too", when they're actually not...
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.
gianluigi.zanettini
Posts: 19
Joined: 27. Oct 2012, 23:27

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

Post by gianluigi.zanettini »

Had the same issue on upgrading to 5.2.8. The method above worked nicely, thanks!
bodhis
Posts: 1
Joined: 18. Sep 2018, 11:32

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

Post by bodhis »

Hello !

After all king of solutions from internet I resolve that problem by searching "VBoxDrv.inf" file in C:\Windows\System32 folder, right click on it and click Install.

So easy ! :D
JadenLala
Posts: 1
Joined: 30. Sep 2018, 05:48

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

Post by JadenLala »

Has same issue on VBox 5.2.4 on Win 10, and solve by installing VBoxDrv.inf . Thank you guys!
Gradzyna
Posts: 1
Joined: 23. Nov 2018, 14:05

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

Post by Gradzyna »

kpenrose wrote: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.
Hello! I had tried the same however it did not work. Im getting following message : "The virtual machine 'Bartosz jest super' has terminated unexpectedly during startup with exit code -1073741205 (0xc000026b)"

Im attaching my log,could anyone help me out please?Thanks!
Attachments
VBoxHardening.log
(19.88 KiB) Downloaded 36 times
socratis
Site Moderator
Posts: 27330
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: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034

Post by socratis »

@Gradzyna
Please read really carefully the following FAQ: Diagnosing VirtualBox Hardening Issues for some generic guidelines/ideas. Remember, these are guidelines, not the exact solution, you have to use your judgement as to which program might be responsible.

I would start with Avast...
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.
cygnal
Posts: 5
Joined: 1. Dec 2015, 23:32

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

Post by cygnal »

kpenrose wrote: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.
Well, I can give you a few hints why this is so. First of all, I noticed that there was no driver install prompt.
(I might have authorized Oracle driver signatures, so that may be)
Then I remembered that, whoa!, my VBox is running. But it was too late - the install proceeded.
The good thing about it is that it did not interrupt my guest.
The bad thing about it is that it seemed not to have installed the driver.

I was suspecting from beginning that the installation was somehow botched, because there was
a prompt for restarting the computer.

That's the first time VB asked for a restart after install.
It was suspicious by itself, and this my two cents on why @kpenrose 's solution works.
"I delete all messages that start with 'Hi,'". -Sherlock
cygnal
Posts: 5
Joined: 1. Dec 2015, 23:32

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

Post by cygnal »

Gradzyna wrote:Hello! I had tried the same however it did not work. Im getting following message : "The virtual machine 'Bartosz jest super' has terminated unexpectedly during startup with exit code -1073741205 (0xc000026b)"
:D But 'Bartosz nije super, because Bartosz brings up' a completely unrelated error message.
Just kidding, you probably have something different going on than what the original poster is asking for. :)
"I delete all messages that start with 'Hi,'". -Sherlock
socratis
Site Moderator
Posts: 27330
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: NtCreateFile(\Device\VBoxDrvStub) failed: 0xc000000034

Post by socratis »

cygnal wrote:Then I remembered that, whoa!, my VBox is running. But it was too late - the install proceeded.
The installer would have detected a running VirtualBox and would have warned you, not sure why you saw what you saw.
cygnal wrote:The good thing about it is that it did not interrupt my guest.
Should have! You replaced executables and libraries that were in use. Really prime for a crash...
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.
Righteous Desk Jump
Posts: 1
Joined: 25. Oct 2019, 21:33

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

Post by Righteous Desk Jump »

kpenrose wrote: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.
Thanks kpenrose ... I had this problem and your post helped me get it going again.
Jimzzz
Posts: 1
Joined: 24. Jan 2020, 15:23

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

Post by Jimzzz »

kpenrose wrote: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' . . .
Many thanks.. worked like a charm for the same problem on Windows 10, VirtualBox 6.1.2, trying to run a Kali image.
faldeland
Posts: 1
Joined: 16. Jul 2020, 19:19

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

Post by faldeland »

this worked for me!!!
kpenrose wrote: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.
micaht
Posts: 1
Joined: 13. May 2021, 01:44

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

Post by micaht »

Hi! I'm having the same problem. I'm running a windows 10 machine and got the same error. I did the query in both cmd and PowerShell and it didn't even recognize the query. help!
Post Reply