docs icon indicating copy to clipboard operation
docs copied to clipboard

BSOD on Windows 10 with Hyper-V Enabled

Open noncreature0714 opened this issue 9 years ago • 11 comments

Problem description

Trying to folow the instructions found at "Set Up Your Swarm" causes Windows 10 to fatally crash with a BSOD (Blue Screen of Death). This is a long-time, known Virtualbox bug, which Oracle (and I) assign blame to Microsoft.

My issue is that the documentation should be updated to reflect this critical error. (It's very unfortunate, because no one on windows 10 can complete the getting started guide.)

I have separately filed a Docker Issue for the technical problem.

Problem location

Project version(s) affected

docker-machine.exe version 0.10.0, build 76ed2a6

Suggestions for a fix

Suggest some warning that attempting to run VirtualBox with Hyper-V enabled will cause a BSOD. Ironically, Docker requires Hyper-V enabled for itself to run.

noncreature0714 avatar Jun 23 '17 18:06 noncreature0714

@NonCreature0714 What command are you running that triggers the BSOD? If it's using driver of virtualbox instead of hyperv, that is not supported, which is why there are tabs and callouts on the "Set up your swarm" section.

johndmulhausen avatar Jun 23 '17 21:06 johndmulhausen

@johndmulhausen I'm working to clarify. Frustratingly, following the recommended instructions caused BSOD three times yesterday - but today everything is running perfectly, so I'm struggling to reproduce. I did run into something else: using docker-machine with Powershell requires Powershell run as Administrator.

I'm nervous to say much more if I can't reproduce the bug; I'll close this if I can't reproduce within 24 hours.

noncreature0714 avatar Jun 23 '17 22:06 noncreature0714

@NonCreature0714 Keep me posted. At a high level: Does following the Hyper-V instructions work?

johndmulhausen avatar Jun 23 '17 23:06 johndmulhausen

@johndmulhausen the Hyper-V instructions work.

This was particularly frustrating, because I wasn't able to complete a Docker demo to my internal clients because of crashes. I'm strongly advocating for Docker to internal operations/dev/IT clients, while at the same time as learning SaltStack (which uses Vagrant for tutorials). So I'm realizing now this isn't as clear cut as I thought it was.

The best I can tell right now is that there was some conflict with running Vagrant and docker-machine in proximity on the same host. Vagrant absolutely causes BSOD because of a bug in VirtualBox. And it's possible that when I ran docker-machine afterwards there was still some unresolved issue on the host. I'm currently working to reproduce. Either way, this looks very much like an edge case.

noncreature0714 avatar Jun 24 '17 18:06 noncreature0714

@johndmulhausen I'm closing this ticket as un-reproducible. It appears it has something more to do with Vagrant.

noncreature0714 avatar Jun 24 '17 19:06 noncreature0714

Sorry to revive this, but I have the same issue. Docker with Hyper-v disabled used to work fine before I updated to the latest version. Now it requires Hyper-v but causes a BSOD. Version: 17.09.0-ce-win33 (13620) running on windows 10 Any ideas? [UPDATE: For those who might land here for the same issue] As expected this was initially my mistake. I had created a docker machine that specifically starts with virtualbox as a driver while docker seems to be expecting hyper-v. Anyway, the fix for me was to rm the old machines and create them again with hyper-v which worked with no issues. No BSOD anymore.

It would be nice however if docker could decline gracefully in such case with a clear warning of what it is expecting.

Thanks

ghousseyn avatar Oct 11 '17 08:10 ghousseyn

I also have this issue! Description: https://www.virtualbox.org/ticket/16801

librisius avatar Nov 25 '17 13:11 librisius

@librisius & I are having the same problem: https://www.virtualbox.org/ticket/16801

Nessitro avatar May 12 '18 08:05 Nessitro

Sorry to reopen but i'm having the sam issue. I'm using windows insider preview and docker desktop. Whenver i use docker desktop and then close docker desktop and then reboot as soon my pc reboots it goes into a BSOD HYPERVISOR_ERROR. I'm 100% sure it is docker causing the issue. please help

DialgicMew avatar Jul 13 '20 20:07 DialgicMew

same thing after increasing ram to 5 gb and giving 4 processor threads in the docker settings

maf1a avatar Apr 27 '21 14:04 maf1a

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar Mar 09 '23 03:03 docker-robott