minishift: Error deleting a running VM

Scenario:

I was running minishift, when I restarted the host laptop. After restart the laptop, I updated the client to latest minishift (1.2.0) although I don’t think this is related. I tried to delete the minishift VM to test caching of images, and I got this output:

$ minishift delete
Current Minishift VM is registered, but unregistration failed. Do you still want to delete the VM [y/N]?: n
Delete aborted.

$ minishift status
Running

$ minishift stop
Stopping local OpenShift cluster...
Error unregistering the VM: ssh command error:
command : sudo cat /etc/os-release
err     : exit status 255
output  : No user exists for uid 501

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (16 by maintainers)

Most upvoted comments

Environment : OS X + xhyve

I don’t see a any error/issue mentioned as above while running the same on minishift 1.6.0 and 1.7.0.

1. Amits-MacBook-Pro:v1.6.0 amit$ ./minishift start
-- Installing default add-ons ... OK
-- Checking if xhyve driver is installed ... 
   Driver is available at /usr/local/bin/docker-machine-driver-xhyve
   Checking for setuid bit ... OK
-- Starting local OpenShift cluster using 'xhyve' hypervisor ...
.
.
2. Restarted the host machine 
3. Amits-MacBook-Pro:v1.7.0 amit$ ./minishift delete
You are deleting the Minishift VM: 'minishift'. Do you want to continue [y/N]?: y
Deleting the Minishift VM...
Minishift VM deleted.
Amits-MacBook-Pro:v1.7.0 amit$ ./minishift start
-- Checking if xhyve driver is installed ... 
   Driver is available at /usr/local/bin/docker-machine-driver-xhyve
   Checking for setuid bit ... OK
-- Starting local OpenShift cluster using 'xhyve' hypervisor ...
.
.

Closing the issue. If you find the issue still persist, please feel free to reopen it or create a new issue in minishift repo.

@jorgemoralespou The instructions for KVM are described: https://github.com/minishift/minishift/blob/master/docs/source/using/troubleshooting.adoc#kvm-domain-minishift-already-exists but the title might need an update. For xhyve I do not have a good alternative, as there are to my knowledge no real commandline tools ? /cc: @hardy @praveenkumar Do we have a way to debug or interact with xhyve ?

Forcibly stopping the xhyve process can be done with:

$ kill -SIGHUP `cat ~/.minishift/machines/minishift/minishift.pid`