Skip to content
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

Users directory is not shared with Hyper-V VM #518

Closed
RaeesBhatti opened this issue Aug 24, 2016 · 11 comments
Closed

Users directory is not shared with Hyper-V VM #518

RaeesBhatti opened this issue Aug 24, 2016 · 11 comments
Labels
co/hyperv HyperV related issues kind/feature Categorizes issue or PR as related to a new feature.

Comments

@RaeesBhatti
Copy link
Contributor

Minikube version (use minikube version): minikube version: v0.8.0

Environment:

  • OS: Windows 10 Professional 64bit
  • VM Driver: hyperv
  • Docker version: Docker version 1.11.1, build 5604cbe

What happened:
The user home directory C:/Users/myuser is not shared with the minikube VM.

What you expected to happen:
The user home directory should have been shared with the VM.

How to reproduce it (as minimally and precisely as possible):
Start minikube with hyperv driver and try to access the user directory from the VM.

Anything else do we need to know:
This is a follow up on #467 and #465

@numbsafari
Copy link

numbsafari commented Aug 25, 2016

Experiencing the same issue when using xhyve driver on Mac.

@r2d4
Copy link
Contributor

r2d4 commented Aug 25, 2016

@numbsafari you should make sure that you using the latest xhyve driver https://github.com/zchee/docker-machine-driver-xhyve/releases/tag/v0.2.3

The behavior for the xhyve driver was only added in v0.2.3

@numbsafari
Copy link

Got it. I think I'm having some other issue related to homebrew cask, which is how I've been installing minikube. For some reason, it's not picking up on the 0.8.0 release.

@dlorenc
Copy link
Contributor

dlorenc commented Aug 25, 2016

@RaeesBhatti it looks like hyper-v doesn't come with any built in folder host to guest folder sharing. We'll have to implement something for this ourselves.

@dlorenc dlorenc added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 25, 2016
@RaeesBhatti
Copy link
Contributor Author

@dlorenc Docker for Windows has an option to share drives with the VM. I think it would be better to ask them for help. Maybe @FrenchBen can share some insight!

@RaeesBhatti
Copy link
Contributor Author

"The Linux VM used for Docker for Windows uses SMB/CIFS mounting of the host filesystem." excerpt from Docker for Windows docs.

@FrenchBen
Copy link

@RaeesBhatti that's exactly right - there's a bit of magic to make work though :P

@r2d4 r2d4 added the co/hyperv HyperV related issues label Sep 19, 2016
@RaeesBhatti
Copy link
Contributor Author

Is there going to be a fix for this in the near future? Or nobody is interested?

@dlorenc
Copy link
Contributor

dlorenc commented Oct 15, 2016

We'd definitely like to fix this, we just don't have much Windows expertise :(

I'm happy to help out any way I can if someone wants to give this a try.

@aaron-prindle
Copy link
Contributor

aaron-prindle commented Feb 27, 2017

We have recently added a minikube mount command that should mount a specified host directory into the minikubeVM. This command works with hyperv and can be run using:
minikube mount /path/to/dir/to/mount

@aaron-prindle
Copy link
Contributor

Closing as the minikube mount command is now the recommended way to mount dirs in minikube and this is not driver specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/hyperv HyperV related issues kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

6 participants