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

Ministart start fails when running from drive other than user profile in Windows #236

Closed
coolbrg opened this issue Dec 30, 2016 · 14 comments
Closed

Comments

@coolbrg
Copy link
Contributor

@coolbrg coolbrg commented Dec 30, 2016

minishift start fails when running from drive other than %USERPROFILE% ( C drive mostly ).

PS D:\> .\minishift.exe version
minishift version: 1.0.0-beta.1

PS D:\> .\minishift.exe start --vm-driver virtualbox -v 5 --show-libmachine-logs
Starting local OpenShift cluster...
Found binary path at D:\minishift.exe
Launching plugin server for driver virtualbox
Plugin server listening at address 127.0.0.1:49698
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(minishift) Calling .GetMachineName
(minishift) Calling .DriverName
Running pre-create checks...
(minishift) Calling .PreCreateCheck
(minishift) DBG | COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe --version
(minishift) DBG | STDOUT:
(minishift) DBG | {
(minishift) DBG | 5.0.30r112061
(minishift) DBG | }
(minishift) DBG | STDERR:
(minishift) DBG | {
(minishift) DBG | }
(minishift) DBG | Hyper-V is not installed.
(minishift) DBG | %!(EXTRA *exec.Error=exec: "vmms.exe": executable file not found in %PATH%)COMMAND: wmic cpu get VirtualizationFirmwareEnabled
(minishift) DBG | STDOUT:
(minishift) DBG | {
(minishift) DBG | VirtualizationFirmwareEnabled
(minishift) DBG | TRUE
(minishift) DBG |
(minishift) DBG | }
(minishift) DBG | COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe list hostonlyifs
(minishift) DBG | STDOUT:
(minishift) DBG | {
(minishift) DBG | Name:            VirtualBox Host-Only Ethernet Adapter #2
(minishift) DBG | GUID:            86707bde-8f13-4f5d-8381-f953689021cf
(minishift) DBG | DHCP:            Disabled
(minishift) DBG | IPAddress:       192.168.99.1
(minishift) DBG | NetworkMask:     255.255.255.0
(minishift) Calling .GetConfigRaw
(minishift) DBG | IPV6Address:
(minishift) DBG | IPV6NetworkMaskPrefixLength: 0
(minishift) DBG | HardwareAddress: 0a:00:27:00:00:0c
(minishift) DBG | MediumType:      Ethernet
(minishift) DBG | Status:          Up
(minishift) DBG | VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2
(minishift) DBG |
(minishift) DBG | }
Creating machine...
(minishift) DBG | STDERR:
(minishift) DBG | {
(minishift) Calling .Create
(minishift) DBG | }
(minishift) Downloading C:\Users\budhram\.minishift\cache\boot2docker.iso from file://C:/Users/budhram/.minishift/cache/iso/boot2docker.iso...
E1230 13:54:26.113439    5848 start.go:130] Error starting host: Error creating. Error creating machine: Error in driver during machine creation: open /Users/budhram/.minishift/cache/iso/boot2

Following similar issues are reported in minikube:

@coolbrg coolbrg added this to the v1.0.0 milestone Dec 30, 2016
@coolbrg coolbrg changed the title Ministart start fails when running other than user profile drive Ministart start fails when running from driver other than user profile drive Dec 30, 2016
@coolbrg coolbrg changed the title Ministart start fails when running from driver other than user profile drive Ministart start fails when running from drive other than user profile in Windows Dec 30, 2016
@hferentschik hferentschik removed the windows label Jan 20, 2017
@hferentschik hferentschik modified the milestones: v1.1.0, v1.0.0 Feb 10, 2017
@coolbrg
Copy link
Contributor Author

@coolbrg coolbrg commented Mar 9, 2017

Reason explained here kubernetes/minikube#459 (comment).
Something feel like a limitation to me at the moment.

@apitt
Copy link

@apitt apitt commented Apr 10, 2017

Is there any progress towards fixing this? This is a blocker where I work. We don't have control of where %userprofile% is mapped, and we won't be able to run minishift until this issue is resolved.

Has anybody found any sort of work around (other than making sure %userprofile% is on the drive that you run minishift from)?

Windows 7 with VirtualBox 5.1.18.

EDIT: We found a work around for now.
Locally, we had to set "HOMEDRIVE" to C:. For example:
export HOMEDRIVE=C:

After that, minishift start works. It creates .kube and .minishift dirs in the root of C:.

@praveenkumar
Copy link
Contributor

@praveenkumar praveenkumar commented May 31, 2017

@budhrg Can we close this now?

@hferentschik
Copy link
Member

@hferentschik hferentschik commented May 31, 2017

@praveenkumar I think this is still an issue. There is afaiu no solution for this for now.

@coolbrg
Copy link
Contributor Author

@coolbrg coolbrg commented May 31, 2017

I think this is still an issue. There is afaiu no solution for this for now.

Might be we need to do bit work in finding an alternate solution here. Will discuss with @gbraad

@gbraad
Copy link
Member

@gbraad gbraad commented May 31, 2017

So the solution was ... to be on the drive the Users directory is located on
kubernetes/minikube#459 (comment)

Interesting...

@apitt
Copy link

@apitt apitt commented May 31, 2017

If the documented solution for people like me (a corporate desktop setup that defaults the Users directory to some network drive) is to set the HOMEDRIVE environment variable to C:, then I think it can be closed. If it's not documented, then people will probably continue to open this issue.

Also, this happens to work for us (Windows 7 and Virtualbox), I can't really vouch for this being a "universal" solution.

@hferentschik
Copy link
Member

@hferentschik hferentschik commented May 31, 2017

Well, tbh I would like to understand why it is not possible to do it. This seems like an very odd restriction imo

@gbraad
Copy link
Member

@gbraad gbraad commented Jul 5, 2017

Creating a new issue as the location has to be C:\ regardless of the `%USERPROFILE% as is currently documented.

@hferentschik
Copy link
Member

@hferentschik hferentschik commented Jul 5, 2017

Creating a new issue as the location has to be C:\ regardless of the `%USERPROFILE% as is currently documented.

+1

given that we get multiple error reports around this, I think we should investigate the cause for this asap.

@hferentschik hferentschik modified the milestones: v1.4.0, v1.5.0 Jul 5, 2017
@hferentschik hferentschik modified the milestones: v1.6.0, v1.5.0 Aug 9, 2017
@praveenkumar praveenkumar modified the milestones: v1.6.0, v1.7.0 Sep 18, 2017
@coolbrg coolbrg modified the milestones: v1.7.0, v1.9.0 Sep 20, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.9.0, v1.10.0 Nov 2, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.10.0, v1.11.0 Nov 27, 2017
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.11.0, v1.13.0 Dec 13, 2017
@praveenkumar
Copy link
Contributor

@praveenkumar praveenkumar commented Jan 19, 2018

@minishift/minishift-dev should we close this issue since we already have documents in place?

@coolbrg
Copy link
Contributor Author

@coolbrg coolbrg commented Apr 30, 2018

Closing this issue as it can't be resolved from Minishift side.

It need changes from docker/machine side at
https://github.com/docker/machine/blob/1e3b6b64504f2970252b06119d6dc1fb1982b4b4/libmachine/mcnutils/b2d.go#L195-L204

@gbraad
Copy link
Member

@gbraad gbraad commented Aug 24, 2018

It need changes from docker/machine side at
https://github.com/docker/machine/blob/1e3b6b64504f2970252b06119d6dc1fb1982b4b4/libmachine/mcnutils/b2d.go#L195-L204

if changes are needed, we can now make them at machine-drivers/machine

@la-idea
Copy link

@la-idea la-idea commented Aug 28, 2020

I solved it in my case. Well, I made a mistake when I was setting up. Instead of adding PATH to the environment variable, I replaced all Windows PATH adresses. Without this PATH, cmd does not execute commands. This is the default PATH C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem; More than one path separated by ';'. You just have to add the path minishift or mindocker after the ';'. It worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.