Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

create with driver hyperv gets stuck on ssh due to ssh private key permissions #4879

Open
Alveel opened this issue Mar 23, 2021 · 0 comments

Comments

@Alveel
Copy link

Alveel commented Mar 23, 2021

When running docker-machine create -d hyperv on a Windows machine, the process eventually gets stuck:

Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...

The reason is that ssh expects the private key to have a limited amount of permissions, but the responsible function doesn't deal with permissions at all on Windows, so the file will be created with default permissions, which will break the flow. This may work on barebones/basic installations of Hyper-V, but it definitely doesn't work as soon as you modify where VM's are saved.

A manual fix/workaround is to manually fix the permissions as described here.

I would like to propose/suggest using something like go-acl.

Note: I doubt this will ever get fixed in this repo, but it's good to document it for any passersby anyway.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant