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
budhram opened this Issue Dec 30, 2016 · 12 comments

Comments

Projects
None yet
6 participants
@budhram
Member

budhram 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:

@budhram budhram added this to the v1.0.0 milestone Dec 30, 2016

@budhram budhram changed the title from Ministart start fails when running other than user profile drive to Ministart start fails when running from driver other than user profile drive Dec 30, 2016

@budhram budhram changed the title from Ministart start fails when running from driver other than user profile drive to 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

@budhram

This comment has been minimized.

Show comment
Hide comment
@budhram

budhram Mar 9, 2017

Member

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

Member

budhram commented Mar 9, 2017

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

@apitt

This comment has been minimized.

Show comment
Hide comment
@apitt

apitt 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:.

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

This comment has been minimized.

Show comment
Hide comment
@praveenkumar

praveenkumar May 31, 2017

Contributor

@budhrg Can we close this now?

Contributor

praveenkumar commented May 31, 2017

@budhrg Can we close this now?

@hferentschik

This comment has been minimized.

Show comment
Hide comment
@hferentschik

hferentschik May 31, 2017

Member

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

Member

hferentschik commented May 31, 2017

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

@budhram

This comment has been minimized.

Show comment
Hide comment
@budhram

budhram May 31, 2017

Member

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

Member

budhram 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

This comment has been minimized.

Show comment
Hide comment
@gbraad

gbraad May 31, 2017

Member

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

Interesting...

Member

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

This comment has been minimized.

Show comment
Hide comment
@apitt

apitt 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 HOMEDRIVEenvironment 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.

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 HOMEDRIVEenvironment 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

This comment has been minimized.

Show comment
Hide comment
@hferentschik

hferentschik May 31, 2017

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@gbraad

gbraad Jul 5, 2017

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@hferentschik

hferentschik Jul 5, 2017

Member

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.

Member

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.

@praveenkumar praveenkumar added this to the v1.7.0 milestone Sep 18, 2017

@budhram budhram 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

This comment has been minimized.

Show comment
Hide comment
@praveenkumar

praveenkumar Jan 19, 2018

Contributor

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

Contributor

praveenkumar commented Jan 19, 2018

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

@budhram

This comment has been minimized.

Show comment
Hide comment
@budhram

budhram Apr 30, 2018

Member

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

Member

budhram 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

@budhram budhram closed this Apr 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment