kubernetes / minikube

Run Kubernetes locally
https://minikube.sigs.k8s.io/
Apache License 2.0
29.41k stars 4.88k forks source link

minikube mount command fails on windows with access denied #1358

Closed secat closed 6 years ago

secat commented 7 years ago

Is this a BUG REPORT or FEATURE REQUEST?: Bug Report

Minikube version: v0.18.0

Environment:

What happened:

I ran the following command:

$ minikube mount --v 3 C:/

and got the following output:

Mounting C:/ into /mount-9p on the minikubeVM
This daemon process needs to stay alive for the mount to still be accessible...
ufs starting
2017/04/10 12:00:52 connected
2017/04/10 12:00:52 >>> 127.0.0.1:50246 Tversion tag 65535 msize 8192 version '9P2000.L'
2017/04/10 12:00:52 <<< 127.0.0.1:50246 Rversion tag 65535 msize 8192 version '9P2000'
2017/04/10 12:00:52 >>> 127.0.0.1:50246 Tattach tag 1 fid 0 afid 4294967295 uname 'nobody' nuname 0 aname ''
2017/04/10 12:00:52 <<< 127.0.0.1:50246 Rattach tag 1 aqid (2000 584d255a 'd')
2017/04/10 12:00:52 >>> 127.0.0.1:50246 Tstat tag 1 fid 0
2017/04/10 12:00:52 <<< 127.0.0.1:50246 Rstat tag 1 st ('C:' 'none' 'none' 'none' q (2000 584d255a 'd') m d777 at 0 mt 0 l 8192 t 0 d 0 ext )
2017/04/10 12:00:52 >>> 127.0.0.1:50246 Tstat tag 1 fid 0
2017/04/10 12:00:52 <<< 127.0.0.1:50246 Rstat tag 1 st ('C:' 'none' 'none' 'none' q (2000 584d255a 'd') m d777 at 0 mt 0 l 8192 t 0 d 0 ext )
2017/04/10 12:00:52 >>> 127.0.0.1:50246 Twstat tag 1 fid 0 st ('' '' '' '' q (ffffffffffffffff ffffffff 'daAltL') m d775 at 4294967295 mt 4294967295 l 18446744073709551615 t 65535 d 4294967295 ext )
2017/04/10 12:00:52 <<< 127.0.0.1:50246 Rerror tag 1 ename 'chmod C:: Access is denied.' ecode 0
Something went wrong running an SSH command!
command :
sudo mkdir /mount-9p;
sudo mount -t 9p -o trans=tcp -o port=5640 -o uid=1001 -o gid=1001 10.0.2.2 /mount-9p;
sudo chmod 775 /mount-9p;
err     : exit status 1
output  : chmod: changing permissions of '/mount-9p': Unknown error 526

What you expected to happen:

The mount command should have worked...

How to reproduce it (as minimally and precisely as possible):

Run minikube mount C:\ on a windows system with the latest version of minikube.

Anything else do we need to know:

mumehta commented 7 years ago

Facing same issue

fejta-bot commented 6 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or @fejta. /lifecycle stale

fejta-bot commented 6 years ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /lifecycle rotten /remove-lifecycle stale

fejta-bot commented 6 years ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta. /close