Minikube продолжает сбой при создании: StartHost завершился неудачно, но попытается снова: создание хоста: время создания хоста истекло в 120.000000 секунд - PullRequest
0 голосов
/ 21 апреля 2020

Я создал коммутатор в Hyper-V Manager:

Virtual Switch Manager (on the right) => New Virtual Network Switch => External => MinikubeSwitch

enter image description here

А затем:

enter image description here

После нажатия в CLI (в разделе «Администратор» в Windows 10) строка:

    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> 

Однако она продолжает работать, даже если я пытался удалить старый миникуб и переустанови его.

Есть идеи как это исправить?

1 Ответ

1 голос
/ 21 апреля 2020

ОК, обнаружил проблему, я поставил ее ниже для других людей, которые могут столкнуться с такой же проблемой:

Замените команду CLI

minikube start --driver=hyperv --hyperv-virtual-switch=MinikubeSwitch

на:

 minikube start --driver=hyperv MinikubeSwitch 

Параметр --hyperv-virtual-switch больше не актуален.

...