-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Minikube start deletes an existing VM in 'saved' state and re-creates it #18137
Comments
The issue is that the docker machine driver for hyperv does not handle the "Saved" state, and returns state.None when queried for the VM status. The docker/machine repo is in read-only mode so I can't create a PR. Not sure how to fix this. Perhaps this may be a workaround by forcing the VM to gracefully shutdown. Also, to prevent the API failing to come up when the VM is started early in the startup process I also use the flag to not automatically start the VM. > Get-VM minikube | Set-VM -AutomaticStartAction Nothing -AutomaticStopAction ShutDown |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Having the minikube instance destroyed because the 'Saved' state is not handled correctly is a destructive and permanent operation. This happens unexpectedly, and is not immediately apparent why. It leads to wasted time spent rebuilding the environment. /remove-lifecycle rotten |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
What Happened?
In several scenarios the command
minikube start
will fail to find the existing but stopped VM and destroy it.Reproduce this with two powershell terminal windows. In one create the minikube instance, then stop (save) the minikube VM in the Hyper-V manager and in an other powershell window execute
minikube start
. All PS instances must be in elevated permission mode. This results in the existing VM being deleted, and then re-created.PS1 > minikube start
Open Hyper-V Manager, right-click the 'minikube' VM and select 'Save'. Wait for the save to complete
In a different powershell terminal instance
PS2 > minikube start
This can also be reproduced by setting the VM to not start automatically, and reboot the host machine.
The logs indicate that the command to get the existing VM status succeeds and no errors occur.
Logs from lastStart.txt
Attach the log file
rebuild-minikube-error-lastStart.txt
Operating System
Windows
Driver
Hyper-V
The text was updated successfully, but these errors were encountered: