-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow Linux VM boot [hv-sock proxy (vsudd) is not reachable] #1995
Comments
We collating all the diagnostics from users where we have seen the Slow Linux VM boot issue in other issues here. Could you please try and reduce the CPU load, especially when you start Docker for Windows. It looks like Hyper-V VMs are very sensitive to CPU load. If your system is completely idle and you still see the issue, please also let us know, so we can diagnose it further.
|
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
There have been many reports with this error message:
It indicates that the Hyper-V Linux VM did not start (completely). There are several causes for this, but there are a few common root causes.
One of them is that the Linux VM is booting very very slowly. There is a timeout, which Docker for Windows uses to detect if there is an issue with boot the VM, and the slow boot causes the timeout to be exceeded and above error message to be displayed.
Other possible root cause are:
This issue deals with the Slow Linux VM boot case.
How to diagnose "Slow Linux VM boot":
Look at the log file (
Diagnose and Feedback
in the whale systray icon, the click onlog file
). Then look for the start of the kernel boot. It typically starts with (note there may be several in the log file):The numbers to the right of the
[Info ]
column are the timestamps from the kernel boot ([ 0.000000]
in this case). As the kernel boots these time stamps increase. On an idle system the first phase of the boot should take about 2-8 seconds depending on your hardware. The first phase is booting the kernel until it switches to userspace. In the logs file this looks like this:The
Welcome to LinuxKit
message is the first userspace message and, on this system (a typical laptop), it took~4.5s
to get there.From various diagnostics, we have seen it can take way more than 30 or even 60 seconds to get to that point, or in fact never reaching the first phases before the timeout kicks in.
So if you see the kernel timestamp going up, beyond 30 seconds, that is a good indication that you VM is booting slowly.
Here is an example:
This is half way through the first phase of the kernel boot and it already has taken 40 seconds. It is very slow.
Is there a workaround?
The most common cause seems to be high CPU (or other resource) utilisation when the VM is booting up. For example, when I artificially push the CPU utilisation to 100% with a couple of endless loops, the first phase of the VM boot takes close to 80 seconds (while it takes only 4.5s on an idle system).
You can also try the latest Edge releases (
18.05.0-ce-rc1-win63 (17439)
or newer) where the timeout is more tolerating and based more on the output from the VM. Note, however, even with these changes, if your CPUs are fully loaded the boot is still likely to fail (it'll just take longer to fail), but the changes may help with medium CPU loads.The text was updated successfully, but these errors were encountered: