minishift: Minishift cannot delete or stop VM after it's started with invalid values for ram, cpu

Environment minishift: v1.0.0-beta.2 OS: Fedora 24 provider: kvm

About This is more a feature request than a bug I think. When minishift is used to start with invalid values (e.g. minishift start --memory 0) and fails to do so, then it is unable to recover itself from this state with minishift delete command. Deleting ~/.minishift folder helps to overcome this issue.

[agajdosi@dhcp-24-156 ~]$ minishift start --memory 0
Starting local OpenShift instance using 'kvm' hypervisor...
E0110 14:35:55.007275   12197 start.go:135] Error starting machine: Error creating. Error creating machine: Error in driver during machine creation: [Code-27] [Domain-20] XML error: Memory size must be specified via <memory> or in the <numa> configuration. Retrying.
E0110 14:35:55.045724   12197 start.go:135] Error starting machine: Error getting state for host: unexpected EOF. Retrying.
E0110 14:35:55.079158   12197 start.go:135] Error starting machine: Error getting state for host: unexpected EOF. Retrying.
E0110 14:35:55.079267   12197 start.go:141] Error starting machine:  Error creating. Error creating machine: Error in driver during machine creation: [Code-27] [Domain-20] XML error: Memory size must be specified via <memory> or in the <numa> configuration
Error getting state for host: unexpected EOF
Error getting state for host: unexpected EOF
[agajdosi@dhcp-24-156 ~]$ minishift delete
Deleting local OpenShift instance...
Error unregistring machine: connection is shut down[agajdosi@dhcp-24-156 ~]$ minishift start
Starting local OpenShift instance using 'kvm' hypervisor...
E0110 14:36:03.706948   12262 start.go:135] Error starting machine: Error getting state for host: unexpected EOF. Retrying.
E0110 14:36:03.737379   12262 start.go:135] Error starting machine: Error getting state for host: unexpected EOF. Retrying.
E0110 14:36:03.766466   12262 start.go:135] Error starting machine: Error getting state for host: unexpected EOF. Retrying.
E0110 14:36:03.766486   12262 start.go:141] Error starting machine:  Error getting state for host: unexpected EOF
Error getting state for host: unexpected EOF
Error getting state for host: unexpected EOF

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (15 by maintainers)

Most upvoted comments

We should have some minimum value for RAM, CPUs, memory and validate against it with valid input provided.