StartHost failed, but will try again: creating host: create host timed out in 360.000000 seconds
Questions : minikube on windows 10 pro2022-09-12T15:48:51+00:00 2022-09-12T15:48:51+00:00 Show
914 I had a system crash while doing install of anycodings_kubernetes minikube, now when i try to do a reinstall i anycodings_kubernetes get these errors, I've tried multiple times, anycodings_kubernetes but with no joy. I'm running a win 10 pro anycodings_kubernetes and running minikube on hyper-v C:\WINDOWS\system32>minikube start --vm-driver hyperv --hyperv-virtual-switch "minikube" I1115 23:15:25.021752 9724 translate.go:89] Failed to load translation file for en: Asset translations/en.json not found * minikube v1.15.0 on Microsoft Windows 10 Pro 10.0.19041 Build 19041 * Using the hyperv driver based on user configuration * Starting control plane node minikube in cluster minikube * Creating hyperv VM (CPUs=2, Memory=6000MB, Disk=20000MB) ... * Stopping node "minikube" ... * Powering off "minikube" via SSH ... * Deleting "minikube" in hyperv ... ! StartHost failed, but will try again: creating host: create host timed out in 360.000000 seconds E1115 23:21:42.381763 9724 main.go:115] 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 E1115 23:21:54.691730 9724 main.go:115] 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 E1115 23:21:56.716776 9724 main.go:115] 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.GetVMThe VM exists and i can send a command to anycodings_kubernetes stop the vm, which works, but whe i start anycodings_kubernetes the vm it just hangs at C:\WINDOWS\system32>minikube start I1115 23:25:18.265723 16180 translate.go:89] Failed to load translation file for en: Asset translations/en.json not found * minikube v1.15.0 on Microsoft Windows 10 Pro 10.0.19041 Build 19041 * Using the hyperv driver based on existing profile * Starting control plane node minikube in cluster minikube * Restarting existing hyperv VM for "minikube" ...Any idea where i'm going wrong? Thanks in advance Total Answers 2 25 Answers 1 : of minikube on windows 10 prorather than running this command minikube start --vm-driver hyperv anycodings_kubernetes --hyperv-virtual-switch "vswitch" I just ran this minikube start –driver=hyperv 0 2022-09-12T15:48:51+00:00 2022-09-12T15:48:51+00:00Answer Link mRahman 3 Answers 2 : of minikube on windows 10 pro-vm-driver is deprecated flag, since anycodings_kubernetes minikube 1.8.0 --driver flag has been anycodings_kubernetes introduced and should be used. Hyper-V\Get-VM : Hyper-V was unable to anycodings_kubernetes find a virtual machine with name anycodings_kubernetes "minikube" error might be caused by anycodings_kubernetes different misconfigurations, most anycodings_kubernetes commonly it is due to incorrect virtual anycodings_kubernetes switch configuration, which should be anycodings_kubernetes configured as external. Additionally to deal with this issue I anycodings_kubernetes would recommend to delete content of anycodings_kubernetes C:/users/ Also check this github issue's comment. 0 2022-09-12T15:48:51+00:00 2022-09-12T15:48:51+00:00Answer Link jidam Minikube keeps failing on creation : StartHost failed, but will try again: creating host: create host timed out in 120.000000 secondsQuestions : Minikube keeps failing on creation : StartHost failed, but will try again: creating host: create host timed out in 120.000000 seconds2022-09-12T15:48:52+00:00 2022-09-12T15:48:52+00:00 103 I've created a Switch in Hyper-V Manager : Virtual Switch Manager (on the right) => New Virtual Network Switch => External => MinikubeSwitchAnd then : After hitting in CLI (under Administrator in anycodings_kubernetes Windows 10) the line : minikube start --driver=hyperv --hyperv-virtual-switch=MinikubeSwitch I got : PS C:\bin> minikube start --driver=hyperv --hyperv-virtual-switch=MinikubeSwitch * minikube v1.9.2 on Microsoft Windows 10 Pro 10.0.18363 Build 18363 * Using the hyperv driver based on user configuration * Starting control plane node m01 in cluster minikube * Creating hyperv VM (CPUs=2, Memory=2200MB, Disk=20000MB) ... ! StartHost failed, but will try again: creating host: create host timed out in 120.000000 seconds * Stopping "minikube" in hyperv ... * Powering off "minikube" via SSH ... * Deleting "minikube" in hyperv ... E0421 12:59:59.746863 2736 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 E0421 13:00:01.624914 2736 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 E0421 13:00:03.443467 2736 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 * Creating hyperv VM (CPUs=2, Memory=2200MB, Disk=20000MB) ... E0421 13:00:05.635939 2736 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 E0421 13:00:07.748572 2736 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 E0421 13:00:09.940572 2736 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 E0421 13:00:11.850044 2736 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 E0421 13:00:13.887769 2736 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 E0421 13:00:16.088700 2736 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 PS C:\bin> Get-Vm Name State CPUUsage(%) MemoryAssigned(M) Uptime Status Version ---- ----- ----------- ----------------- ------ ------ ------- DockerDesktopVM Running 0 2048 02:16:40.4550000 Operating normally 9.0 PS C:\bin>However it keeps failing , even though I've anycodings_kubernetes tried to delete the old minikube and anycodings_kubernetes reinstall it. Any idea how to fix it ? Total Answers 4 32 Answers 1 : of Minikube keeps failing on creation : StartHost failed, but will try again: creating host: create host timed out in 120.000000 secondsOK , found the problem , I put it below anycodings_docker for other people whom might encounter anycodings_docker the same problem : Replace the CLI command minikube start --driver=hyperv --hyperv-virtual-switch=MinikubeSwitchwith : minikube start --driver=hyperv MinikubeSwitchThe param --hyperv-virtual-switch is not anycodings_docker relevant anymore. 0 2022-09-12T15:48:52+00:00 2022-09-12T15:48:52+00:00Answer Link mRahman 3 Answers 2 : of Minikube keeps failing on creation : StartHost failed, but will try again: creating host: create host timed out in 120.000000 secondsI had the same problem on a freshly anycodings_docker installed Windows 10. Before starting anycodings_docker minikube, docker must be installed (if anycodings_docker docker is going to be used as driver), anycodings_docker hence I had to delete minikube, and then anycodings_docker re-install it. This way minikube automatically found anycodings_docker docker and used docker as the anycodings_docker driver Automatically selected the docker anycodings_docker driver. Other choices: hyperv, ssh. to delete minikube: minikube deleteand then again minikube start0 2022-09-12T15:48:52+00:00 2022-09-12T15:48:52+00:00Answer Link joy 2 Answers 3 : of Minikube keeps failing on creation : StartHost failed, but will try again: creating host: create host timed out in 120.000000 secondsIn case you couldn't manage to fix the anycodings_docker issue you can follow the minikube docs anycodings_docker for HyperV driver.
You can verify that it says: --hyperv-virtual-switch: ... Defaults to first foundAnd as I could see in the screenshots anycodings_docker you already have a Default switch so anycodings_docker there is no need to create a new one you anycodings_docker will only need to run make sure to run anycodings_docker as admin: minikube start --driver=hypervIn case you had some issue you can try anycodings_docker to delete with purge flag the minikube anycodings_docker VM then restart it: minikube delete --all --purgeelse you could troubleshoot running: minikube start --alsologtostderr -v=70 2022-09-12T15:48:52+00:00 2022-09-12T15:48:52+00:00Answer Link jidam 3 Answers 4 : of Minikube keeps failing on creation : StartHost failed, but will try again: creating host: create host timed out in 120.000000 secondsI had same problem with mac, found that anycodings_docker docker was not running. I started the anycodings_docker docker desktop and then deleted minikube anycodings_docker and installed again. minikube delete minikube start minikube dashboard0 2022-09-12T15:48:52+00:00 2022-09-12T15:48:52+00:00Answer Link raja |