Closed gtan01 closed 4 years ago
Hello
I may be having the same issue. On Windows 10 insider/slow the command "Preparing Kubernetes 1.17.0 on Docker '19.03.5' never completes.
minikube start
* minikube v1.6.1 on Microsoft Windows 10 Pro 10.0.19041 Build 19041
* Selecting 'hyperv' driver from existing profile (alternates: [])
* Tip: Use 'minikube start -p <name>' to create a new cluster, or 'minikube delete' to delete this one.
* Starting existing hyperv VM for "minikube" ...
* Waiting for the host to be provisioned ...
* Preparing Kubernetes v1.17.0 on Docker '19.03.5' ...
Logs:
* Dec 17 08:54:05 minikube systemd[1]: Started Docker Application Container Engine.
* Dec 17 08:54:05 minikube dockerd[2896]: time="2019-12-17T08:54:05.974578913Z" level=info msg="API listen on /var/run/docker.sock"
* Dec 17 08:54:05 minikube dockerd[2896]: time="2019-12-17T08:54:05.974723513Z" level=info msg="API listen on [::]:2376"
*
* ==> container status <==
* time="2019-12-17T08:56:55Z" level=fatal msg="failed to connect: failed to connect, make sure you are running as root and the runtime has been started: context deadline exceeded"
* CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
*
My issue might be linked to Docker engine and Minikube version incompatibility. https://github.com/kubernetes/minikube/issues/6065#issuecomment-564956169
Hi,
Will this be my issue as well in your opinion?
@gtan01 - do you mind including the output of:
minikube start --alsologtostderr -v=1
Hi Thomas,
Here it is: $ minikube start --alsologtostderr -v=1 I1219 15:21:05.115393 8216 notify.go:125] Checking for updates... I1219 15:21:05.225424 8216 start.go:255] hostinfo: {"hostname":"SIN-L-00040522","uptime":188988,"bootTime":1576551077,"procs":236,"os":"windows","platform":"Microsoft Windows 10 Enterprise","platformFamily":"Standalone Workstation","platformVersion":"10.0.17763 Build 17763","kernelVersion":"","virtualizationSystem":"","virtualizationRole":"","hostid":"3ce0ca5c-3041-4eef-bafa-b099d42404fb"} W1219 15:21:05.225424 8216 start.go:263] gopshost.Virtualization returned error: not implemented yet
I1219 15:21:10.092819 8216 main.go:110] libmachine: [stderr =====>] : I1219 15:21:10.092819 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("S-1-5-32-578") I1219 15:21:10.434820 8216 main.go:110] libmachine: [stdout =====>] : I1219 15:21:10.434820 8216 main.go:110] libmachine: [stderr =====>] : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
I1219 15:21:10.434820 8216 main.go:110] libmachine: exit status 1 I1219 15:21:10.434820 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") I1219 15:21:10.772817 8216 main.go:110] libmachine: [stdout =====>] : I1219 15:21:10.772817 8216 main.go:110] libmachine: [stderr =====>] : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1
@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIde ...
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
Retriable failure: create: precreate: exit status 1 W1219 15:21:12.774568 8216 start.go:1017] DeleteHost: load: filestore "minikube": Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. I1219 15:21:18.298318 8216 cluster.go:97] Machine does not exist... provisioning new machine I1219 15:21:18.298318 8216 cluster.go:98] Provisioning machine with config: {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO:https://storage.googleapis.com/minikube/iso/minikube-v1.6.0.iso Memory:2000 CPUs:2 DiskSize:20000 VMDriver:hyperv ContainerRuntime:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false Downloader:{} DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true KubernetesConfig:{KubernetesVersion:v1.17.0 NodeIP: NodePort:8443 NodeName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false} HostOnlyNicType:virtio NatNicType:virtio}
Creating hyperv VM (CPUs=2, Memory=2000MB, Disk=20000MB) ... I1219 15:21:18.300320 8216 main.go:110] libmachine: Reading certificate data from C:\Cygwin\home\gtan.minikube\certs\ca.pem I1219 15:21:18.301321 8216 main.go:110] libmachine: Decoding PEM data... I1219 15:21:18.301321 8216 main.go:110] libmachine: Parsing certificate... I1219 15:21:18.302320 8216 main.go:110] libmachine: Reading certificate data from C:\Cygwin\home\gtan.minikube\certs\cert.pem I1219 15:21:18.303320 8216 main.go:110] libmachine: Decoding PEM data... I1219 15:21:18.303320 8216 main.go:110] libmachine: Parsing certificate... I1219 15:21:18.303320 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique I1219 15:21:18.808314 8216 main.go:110] libmachine: [stdout =====>] : Hyper-V
I1219 15:21:18.808314 8216 main.go:110] libmachine: [stderr =====>] : I1219 15:21:18.808314 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("S-1-5-32-578") I1219 15:21:19.138314 8216 main.go:110] libmachine: [stdout =====>] : I1219 15:21:19.138314 8216 main.go:110] libmachine: [stderr =====>] : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
I1219 15:21:19.138314 8216 main.go:110] libmachine: exit status 1 I1219 15:21:19.138314 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") I1219 15:21:19.465315 8216 main.go:110] libmachine: [stdout =====>] : I1219 15:21:19.465315 8216 main.go:110] libmachine: [stderr =====>] : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1
@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIde ...
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
Retriable failure: create: precreate: exit status 1 W1219 15:21:21.466979 8216 start.go:1017] DeleteHost: load: filestore "minikube": Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. I1219 15:21:32.272613 8216 cluster.go:97] Machine does not exist... provisioning new machine I1219 15:21:32.272613 8216 cluster.go:98] Provisioning machine with config: {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO:https://storage.googleapis.com/minikube/iso/minikube-v1.6.0.iso Memory:2000 CPUs:2 DiskSize:20000 VMDriver:hyperv ContainerRuntime:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false Downloader:{} DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true KubernetesConfig:{KubernetesVersion:v1.17.0 NodeIP: NodePort:8443 NodeName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false} HostOnlyNicType:virtio NatNicType:virtio}
Creating hyperv VM (CPUs=2, Memory=2000MB, Disk=20000MB) ... I1219 15:21:32.273615 8216 main.go:110] libmachine: Reading certificate data from C:\Cygwin\home\gtan.minikube\certs\ca.pem I1219 15:21:32.274620 8216 main.go:110] libmachine: Decoding PEM data... I1219 15:21:32.274620 8216 main.go:110] libmachine: Parsing certificate... I1219 15:21:32.274620 8216 main.go:110] libmachine: Reading certificate data from C:\Cygwin\home\gtan.minikube\certs\cert.pem I1219 15:21:32.275622 8216 main.go:110] libmachine: Decoding PEM data... I1219 15:21:32.275622 8216 main.go:110] libmachine: Parsing certificate... I1219 15:21:32.275622 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique I1219 15:21:32.762612 8216 main.go:110] libmachine: [stdout =====>] : Hyper-V
I1219 15:21:32.762612 8216 main.go:110] libmachine: [stderr =====>] : I1219 15:21:32.762612 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("S-1-5-32-578") I1219 15:21:33.099612 8216 main.go:110] libmachine: [stdout =====>] : I1219 15:21:33.099612 8216 main.go:110] libmachine: [stderr =====>] : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
I1219 15:21:33.099612 8216 main.go:110] libmachine: exit status 1 I1219 15:21:33.099612 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") I1219 15:21:33.435612 8216 main.go:110] libmachine: [stdout =====>] : I1219 15:21:33.435612 8216 main.go:110] libmachine: [stderr =====>] : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1
@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIde ...
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
Retriable failure: create: precreate: exit status 1 W1219 15:21:35.436787 8216 start.go:1017] DeleteHost: load: filestore "minikube": Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. I1219 15:21:48.538587 8216 cluster.go:97] Machine does not exist... provisioning new machine I1219 15:21:48.538587 8216 cluster.go:98] Provisioning machine with config: {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO:https://storage.googleapis.com/minikube/iso/minikube-v1.6.0.iso Memory:2000 CPUs:2 DiskSize:20000 VMDriver:hyperv ContainerRuntime:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false Downloader:{} DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true KubernetesConfig:{KubernetesVersion:v1.17.0 NodeIP: NodePort:8443 NodeName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository: ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false} HostOnlyNicType:virtio NatNicType:virtio}
Creating hyperv VM (CPUs=2, Memory=2000MB, Disk=20000MB) ... I1219 15:21:48.539587 8216 main.go:110] libmachine: Reading certificate data from C:\Cygwin\home\gtan.minikube\certs\ca.pem I1219 15:21:48.539587 8216 main.go:110] libmachine: Decoding PEM data... I1219 15:21:48.539587 8216 main.go:110] libmachine: Parsing certificate... I1219 15:21:48.539587 8216 main.go:110] libmachine: Reading certificate data from C:\Cygwin\home\gtan.minikube\certs\cert.pem I1219 15:21:48.540588 8216 main.go:110] libmachine: Decoding PEM data... I1219 15:21:48.540588 8216 main.go:110] libmachine: Parsing certificate... I1219 15:21:48.540588 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique I1219 15:21:49.021587 8216 main.go:110] libmachine: [stdout =====>] : Hyper-V
I1219 15:21:49.021587 8216 main.go:110] libmachine: [stderr =====>] : I1219 15:21:49.021587 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("S-1-5-32-578") I1219 15:21:49.358587 8216 main.go:110] libmachine: [stdout =====>] : I1219 15:21:49.358587 8216 main.go:110] libmachine: [stderr =====>] : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
I1219 15:21:49.358587 8216 main.go:110] libmachine: exit status 1 I1219 15:21:49.358587 8216 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") I1219 15:21:49.686818 8216 main.go:110] libmachine: [stdout =====>] : I1219 15:21:49.686818 8216 main.go:110] libmachine: [stderr =====>] : Cannot invoke method. Method invocation is supported only on core types in this language mode. At line:1 char:1
@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIde ...
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
Retriable failure: create: precreate: exit status 1 W1219 15:21:51.686959 8216 start.go:1017] DeleteHost: load: filestore "minikube": Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. W1219 15:21:51.686959 8216 exit.go:101] Unable to start VM: create: precreate: exit status 1
X Unable to start VM: create: precreate: exit status 1
Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
It looks like PowerShell might be restricted on your computer. I found this issue which seems to indicate that other programs may suffer from the same issue: https://github.com/docker/for-win/issues/1348
Do you mind trying:
regedit
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment
__PSLockDownPolicy
to 8
Alternatively, I would talk to your IT Administrator about giving you this permission by default. Please let me know how it works!
Hi Thomas,
Thank you very much it worked in Powershell. Most appreciated.
BTW, there are errors if I launch using CYGWIN FYI...below are the error messages when I run "minikube start --vm-driver=hyperv" in CYGWIN.
minikube start --vm-driver=hyperv
minikube v1.6.1 on Microsoft Windows 10 Enterprise 10.0.17763 Build 17763
Selecting 'hyperv' driver from user configuration (alternates: [virtualbox])
Creating hyperv VM (CPUs=2, Memory=2000MB, Disk=20000MB) ... E1220 11:18:52.466221 8956 main.go:106] libmachine: [stderr =====>] : Hyper-V\New-VM : Failed to create a new virtual machine. 'minikube' failed to realize. Failed to change Smart Paging location to 'C:\Cygwin\home\gtan.minikube\machines\minikube\minikube'. Failed to create a new virtual machine. 'minikube' failed to realize. (Virtual machine ID 23FCB661-F379-411C-8733-66F21EA9F45A) Failed to change Smart Paging store for virtual machine 'minikube' to 'C:\Cygwin\home\gtan.minikube\machines\minikube\minikube':General access denied error (0x80070005). (Virtual machine ID 23FCB661-F379-411C-8733-66F21EA9F45A) At line:1 char:1
Hyper-V\New-VM minikube -Path 'C:\Cygwin\home\gtan.minikube\machines ...
+ CategoryInfo : PermissionDenied: (:) [New-VM], VirtualizationException
+ FullyQualifiedErrorId : AccessDenied,Microsoft.HyperV.PowerShell.Commands.NewVM
Retriable failure: create: creating: exit status 1 E1220 11:18:55.297559 8956 main.go:106] libmachine: [stderr =====>] : Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:3
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
Tip: Use 'minikube start -p
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
Starting existing hyperv VM for "minikube" ... E1220 11:19:02.308115 8956 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:1
Hyper-V\Start-VM minikube
+ CategoryInfo : ObjectNotFound: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.StartVM
Retriable failure: start: exit status 1 E1220 11:19:03.065658 8956 main.go:106] libmachine: [stderr =====>] : Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:3
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
Tip: Use 'minikube start -p
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
Starting existing hyperv VM for "minikube" ... E1220 11:19:15.387704 8956 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:1
Hyper-V\Start-VM minikube
+ CategoryInfo : ObjectNotFound: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.StartVM
Retriable failure: start: exit status 1 E1220 11:19:16.124843 8956 main.go:106] libmachine: [stderr =====>] : Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:3
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
Tip: Use 'minikube start -p
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
Starting existing hyperv VM for "minikube" ... E1220 11:19:30.902347 8956 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:1
Hyper-V\Start-VM minikube
+ CategoryInfo : ObjectNotFound: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.StartVM
Retriable failure: start: exit status 1 E1220 11:19:31.854439 8956 main.go:106] libmachine: [stderr =====>] : Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:3
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
X Unable to start VM: start: exit status 1
Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
Hi Thomas,
Here are the error messages. These occur when Hyperv is shutdown and restarted the next day.
PS C:\WINDOWS\system32> minikube start --vm-driver=hyperv --alsologtostderr -v=1 I0106 11:15:08.601247 9328 start.go:255] hostinfo: {"hostname":"SIN-L-00040522","uptime":1486,"bootTime":1578279022,"procs":239,"os":"windows","platform":"Microsoft Windows 10 Enterprise","platformFamily":"Standalone Workstation","platformVersion":"10.0.17763 Build 17763","kernelVersion":"","virtualizationSystem":"","virtualizationRole":"","hostid":"3ce0ca5c-3041-4eef-bafa-b099d42404fb"} W0106 11:15:08.601247 9328 start.go:263] gopshost.Virtualization returned error: not implemented yet
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
I0106 11:15:10.526351 9328 cluster.go:114] Machine state:
Starting existing hyperv VM for "minikube" ... I0106 11:15:10.537495 9328 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM minikube I0106 11:15:10.954374 9328 main.go:110] libmachine: [stdout =====>] : E0106 11:15:10.954374 9328 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:1
Hyper-V\Start-VM minikube
+ CategoryInfo : ObjectNotFound: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.StartVM
Retriable failure: start: exit status 1 I0106 11:15:10.956372 9328 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM minikube ).state I0106 11:15:11.379938 9328 main.go:110] libmachine: [stdout =====>] : E0106 11:15:11.379938 9328 main.go:106] libmachine: [stderr =====>] : Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:3
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
W0106 11:15:11.382940 9328 start.go:1017] DeleteHost: Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. I0106 11:15:16.918556 9328 cluster.go:102] Skipping create...Using existing machine configuration
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
I0106 11:15:17.337547 9328 cluster.go:114] Machine state:
Starting existing hyperv VM for "minikube" ... I0106 11:15:17.353615 9328 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM minikube I0106 11:15:17.751612 9328 main.go:110] libmachine: [stdout =====>] : E0106 11:15:17.751612 9328 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:1
Hyper-V\Start-VM minikube
+ CategoryInfo : ObjectNotFound: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.StartVM
Retriable failure: start: exit status 1 I0106 11:15:17.765616 9328 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM minikube ).state I0106 11:15:18.171612 9328 main.go:110] libmachine: [stdout =====>] : E0106 11:15:18.171612 9328 main.go:106] libmachine: [stderr =====>] : Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:3
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
W0106 11:15:18.182615 9328 start.go:1017] DeleteHost: Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. I0106 11:15:28.990812 9328 cluster.go:102] Skipping create...Using existing machine configuration
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
I0106 11:15:29.507540 9328 cluster.go:114] Machine state:
Starting existing hyperv VM for "minikube" ... I0106 11:15:29.517535 9328 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM minikube I0106 11:15:29.943002 9328 main.go:110] libmachine: [stdout =====>] : E0106 11:15:29.943002 9328 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:1
Hyper-V\Start-VM minikube
+ CategoryInfo : ObjectNotFound: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.StartVM
Retriable failure: start: exit status 1 I0106 11:15:29.957003 9328 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM minikube ).state I0106 11:15:30.357995 9328 main.go:110] libmachine: [stdout =====>] : E0106 11:15:30.357995 9328 main.go:106] libmachine: [stderr =====>] : Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:3
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
W0106 11:15:30.359998 9328 start.go:1017] DeleteHost: Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. I0106 11:15:43.472141 9328 cluster.go:102] Skipping create...Using existing machine configuration
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
I0106 11:15:43.935746 9328 cluster.go:114] Machine state:
Starting existing hyperv VM for "minikube" ... I0106 11:15:43.964744 9328 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive Hyper-V\Start-VM minikube I0106 11:15:44.393294 9328 main.go:110] libmachine: [stdout =====>] : E0106 11:15:44.393294 9328 main.go:106] libmachine: [stderr =====>] : Hyper-V\Start-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:1
Hyper-V\Start-VM minikube
+ CategoryInfo : ObjectNotFound: (:) [Start-VM], VirtualizationException
+ FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.StartVM
Retriable failure: start: exit status 1 I0106 11:15:44.406295 9328 main.go:110] libmachine: [executing ==>] : C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive ( Hyper-V\Get-VM minikube ).state I0106 11:15:44.818294 9328 main.go:110] libmachine: [stdout =====>] : E0106 11:15:44.818294 9328 main.go:106] libmachine: [stderr =====>] : Hyper-V\Get-VM : Hyper-V was unable to find a virtual machine with name "minikube". At line:1 char:3
( Hyper-V\Get-VM minikube ).state
+ CategoryInfo : InvalidArgument: (minikube:String) [Get-VM], VirtualizationException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.GetVM
W0106 11:15:44.820295 9328 start.go:1017] DeleteHost: Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. W0106 11:15:44.832295 9328 exit.go:101] Unable to start VM: start: exit status 1 X Unable to start VM: start: exit status 1
Hi Thomas,
I solved the problem by using "minikube delete". I notice I have to do this after complete shutdown.
glad to see your issue was solved, I will close this, please feel free to re-open if needed.
could be duplicate of https://github.com/kubernetes/minikube/issues/7990
The exact command to reproduce the issue minikube start --vm-driver=hyperv
The full output of the command that failed:
minikube v1.6.1 on Microsoft Windows 10 Enterprise 10.0.17763 Build 17763
X Unable to start VM: create: precreate: exit status 1
The output of the
minikube logs
*
X api load: filestore "minikube": Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.
minikube logs
command:The operating system version: Windows 10 Enterprise with Hyper-V activated in BIOS also