Minikube keeps failing on creation : StartHost failed, but will try again: creating host: create host timed out in 120.000000 seconds

I've created a Switch in Hyper-V Manager :

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

enter image description here

And then :

enter image description here

After hitting in CLI (under Administrator in 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 tried to delete the old minikube and reinstall it.

Any idea how to fix it ?


OK , found the problem , I put it below for other people whom might encounter the same problem :

Replace the CLI command

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

with :

 minikube start --driver=hyperv MinikubeSwitch 

The param --hyperv-virtual-switch is not relevant anymore.