Невозможно запустить миникуб в Windows 10 с помощью Hyper-V - PullRequest
1 голос
/ 28 апреля 2019

minikube не запускается с ошибкой «vswitch not found», даже если виртуальный коммутатор доступен

Операционная система: Windows 10 Гипервизор: Гипер-V Версия Minikube: v1.0.0

Доступные виртуальные коммутаторы:

PS C:\WINDOWS\system32> Get-VMSwitch

Name           SwitchType NetAdapterInterfaceDescription
----           ---------- ------------------------------
DockerNAT      Internal
MinikubeVS     External   Intel(R) Dual Band Wireless-AC 7265
Default Switch Internal

Ошибка:

λ minikube start --vm-driver hyperv --hyperv-virtual-switch "MinikubeVS" --v 99
o   minikube v1.0.0 on windows (amd64)
$   Downloading Kubernetes v1.14.0 images in the background ...
>   Creating hyperv VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
@   Downloading Minikube ISO ...
 142.88 MB / 142.88 MB [============================================] 100.00% 0s
Creating CA: C:\Users\sudhi\.minikube\certs\ca.pem
Creating client certificate: C:\Users\sudhi\.minikube\certs\cert.pem
[executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique
[stdout =====>] : Hyper-V

[stderr =====>] :
[executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("S-1-5-32-578")
[stdout =====>] : False

[stderr =====>] :
[executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")
[stdout =====>] : True

[stderr =====>] :
[executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive [Console]::OutputEncoding = [Text.Encoding]::UTF8; (Hyper-V\Get-VMSwitch).Name
[stdout =====>] :
[stderr =====>] : Hyper-V\Get-VMSwitch : The operation on computer 'LAPTOP-CLH1EQAJ' failed: The specified service does not exist as an installed service.
At line:1 char:53
+ ... ::OutputEncoding = [Text.Encoding]::UTF8; (Hyper-V\Get-VMSwitch).Name
+                                                ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-VMSwitch], VirtualizationException
    + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.GetVMSwitch



!   Unable to start VM: create: precreate: vswitch "MinikubeVS" not found

*   Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
-   https://github.com/kubernetes/minikube/issues/new

1 Ответ

0 голосов
/ 08 мая 2019

Были подобные ситуации пару раз.Особенно после игры с созданием / удалением / повторным использованием hyperv-virtual-switch.

Я могу предложить вам удалить C:\Users\%USERNAME%\.minikube и попробовать запустить Minikube снова.

Это помогает во многих случаях.

...