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

Not enough memory in the system to start the virtual machine minikube #7552

Closed
pandeyvineet opened this issue Apr 9, 2020 · 3 comments
Closed
Labels
cause/resource-exhaustion Errors caused by running out of disk space co/hyperv HyperV related issues kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful os/windows

Comments

@pandeyvineet
Copy link

PS C:\WINDOWS\system32> minikube start --vm-driver=hyperv --force
* minikube v1.9.1 on Microsoft Windows 10 Education 10.0.18362 Build 18362
* Using the hyperv driver based on user configuration

! 'hyperv' driver reported an issue: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online exited unexpectedly:
context deadline exceeded
* Suggestion: If you have Hyper-V configured correctly, please try start again with `--force` specified
* Documentation: https://minikube.sigs.k8s.io/docs/reference/drivers/hyperv/

* Starting control plane node m01 in cluster minikube
* Creating hyperv VM (CPUs=2, Memory=2200MB, Disk=20000MB) ...
E0409 07:02:24.796755   14072 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : 'minikube' failed to start.
Not enough memory in the system to start the virtual machine minikube.
Could not initialize memory: Ran out of memory (0x8007000E).
'minikube' failed to start. (Virtual machine ID E33AE9C4-0B16-403C-9F58-E5A39F313ABA)
Not enough memory in the system to start the virtual machine minikube with ram size 2200 megabytes. (Virtual machine ID E33AE9C4-0B16-403C-9F58-E5A39F313ABA)
'minikube' could not initialize memory: Ran out of memory (0x8007000E). (Virtual machine ID E33AE9C4-0B16-403C-9F58-E5A39F313ABA)
At line:1 char:1
+ Hyper-V\Start-VM minikube
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : FromStdErr: (:) [Start-VM], VirtualizationException
    + FullyQualifiedErrorId : OutOfMemory,Microsoft.HyperV.PowerShell.Commands.StartVM


! StartHost failed, but will try again: creating host: create host timed out in 120.000000 seconds                                                                                              * Stopping "minikube" in hyperv ...                                                                                                                                                             * Deleting "minikube" in hyperv ...                                                                                                                                                             * Creating hyperv VM (CPUs=2, Memory=2200MB, Disk=20000MB) ...                                                                                                                                  E0409 07:17:13.425106   14072 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : 'minikube' failed to start.                                                                         Not enough memory in the system to start the virtual machine minikube.
Could not initialize memory: Ran out of memory (0x8007000E).
'minikube' failed to start. (Virtual machine ID 8D48F5E3-7AE1-46A7-B9F5-DD97B085AAC9)
Not enough memory in the system to start the virtual machine minikube with ram size 2200 megabytes. (Virtual machine ID 8D48F5E3-7AE1-46A7-B9F5-DD97B085AAC9)
'minikube' could not initialize memory: Ran out of memory (0x8007000E). (Virtual machine ID 8D48F5E3-7AE1-46A7-B9F5-DD97B085AAC9)
At line:1 char:1
+ Hyper-V\Start-VM minikube
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : FromStdErr: (:) [Start-VM], VirtualizationException
    + FullyQualifiedErrorId : OutOfMemory,Microsoft.HyperV.PowerShell.Commands.StartVM


*
X Failed to start hyperv VM. "minikube start" may fix it.: creating host: create: creating: exit status 1
*
* minikube is exiting due to an error. If the above message is not useful, open an issue:
  - https://github.com/kubernetes/minikube/issues/new/choose
@tstromberg
Copy link
Contributor

Your host needs more free RAM to complete the operation:

* Creating hyperv VM (CPUs=2, Memory=2200MB, Disk=20000MB) ...
E0409 07:02:24.796755   14072 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : 'minikube' failed to start.
Not enough memory in the system to start the virtual machine minikube.
Could not initialize memory: Ran out of memory (0x8007000E).

@tstromberg tstromberg added the needs-solution-message Issues where where offering a solution for an error would be helpful label Apr 9, 2020
@tstromberg tstromberg changed the title Minikube failed to start on windows 10 Not enough memory in the system to start the virtual machine minikub Apr 9, 2020
@tstromberg
Copy link
Contributor

NOTE: If you have Docker running, you may be able to fit it into the existing Docker VM by using:

--driver=docker

@tstromberg tstromberg added cause/resource-exhaustion Errors caused by running out of disk space os/windows co/hyperv HyperV related issues kind/support Categorizes issue or PR as a support question. labels Apr 9, 2020
@tstromberg tstromberg changed the title Not enough memory in the system to start the virtual machine minikub Not enough memory in the system to start the virtual machine minikube Apr 9, 2020
@pandeyvineet
Copy link
Author

It worked but message is saying to configure proxy and there is github link to do that ,but link expired or moved,Below is the details:
`$ minikube start --driver=docker

  • minikube v1.9.2 on Microsoft Windows 10 Education 10.0.18362 Build 18362
  • Using the docker driver based on user configuration

! 'docker' driver reported an issue: exit status 1

  • Suggestion: Docker is not running or is responding too slow. Try: restarting docker desktop.

  • Starting control plane node m01 in cluster minikube

  • Pulling base image ...

  • Creating Kubernetes in docker container with (CPUs=2) (2 available), Memory=1485MB (1485MB available) ...
    ! This container is having trouble accessing https://k8s.gcr.io

  • To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/

  • Preparing Kubernetes v1.18.0 on Docker 19.03.2 ...

    • kubeadm.pod-network-cidr=10.244.0.0/16
  • Enabling addons: default-storageclass, storage-provisioner

  • Done! kubectl is now configured to use "minikube"
    `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cause/resource-exhaustion Errors caused by running out of disk space co/hyperv HyperV related issues kind/support Categorizes issue or PR as a support question. needs-solution-message Issues where where offering a solution for an error would be helpful os/windows
Projects
None yet
Development

No branches or pull requests

2 participants