hyperv: Method invocation is supported only on core types in this language mode.
#7,990 opened on 2020年5月4日
説明
Steps to reproduce the issue:
1.minikube start 2. 3.
Full output of failed command:
C:\windows\system32>minikube start --alsologtostderr -v=1 I0504 08:44:24.795853 5860 start.go:259] hostinfo: {"hostname":"PUN-GNAIK02","uptime":3738,"bootTime":1588558326,"procs":263,"os":"windows","platform":"Microsoft Windows 10 Enterprise","platformFamily":"Standalone Workstation","platformVersion":"10.0.18362 Build 18362","kernelVersion":"","virtualizationSystem":"","virtualizationRole":"","hostid":"754650a7-4a07-48a5-8830-1c1aff7e24db"} W0504 08:44:24.796844 5860 start.go:267] gopshost.Virtualization returned error: not implemented yet
- minikube v1.9.0 on Microsoft Windows 10 Enterprise 10.0.18362 Build 18362 I0504 08:44:24.805806 5860 driver.go:226] Setting default libvirt URI to qemu:///system W0504 08:44:24.805806 5860 start.go:547] selectDriver 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.
- Using the hyperv driver based on existing profile I0504 08:44:26.185815 5860 start.go:307] selected driver: hyperv I0504 08:44:26.186789 5860 start.go:596] validating driver "hyperv" against &{Name:minikube KeepContext:false EmbedCerts:false MinikubeISO:https://storage.googleapis.com/minikube/iso/minikube-v1.9.0.iso Memory:4000 CPUs:2 DiskSize:20000 Driver:hyperv HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio KubernetesConfig:{KubernetesVersion:v1.18.0 ClusterName: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 NodeIP: NodePort:0 NodeName:} Nodes:[{Name:m01 IP: Port:8443 KubernetesVersion:v1.18.0 ControlPlane:true Worker:true}] Addons:map[]} I0504 08:44:26.186789 5860 start.go:602] status for hyperv: {Installed:true Healthy:true Error: Fix: Doc:} I0504 08:44:26.187790 5860 start.go:946] Using suggested 4000MB memory alloc based on sys=16263MB, container=0MB I0504 08:44:26.187790 5860 iso.go:119] acquiring lock: {Name:mka7d949eb3e5814bbf3c27fa46f8ef5c69d2355 Clock:{} Delay:500ms Timeout:10m0s Cancel:} I0504 08:44:26.188808 5860 preload.go:81] Checking if preload exists for k8s version v1.18.0 and runtime docker I0504 08:44:26.188808 5860 preload.go:97] Found local preload: C:\Users\gaurav.naik.minikube\cache\preloaded-tarball\preloaded-images-k8s-v2-v1.18.0-docker-overlay2-amd64.tar.lz4 I0504 08:44:26.188808 5860 cache.go:46] Caching tarball of preloaded images I0504 08:44:26.189817 5860 preload.go:123] Found C:\Users\gaurav.naik.minikube\cache\preloaded-tarball\preloaded-images-k8s-v2-v1.18.0-docker-overlay2-amd64.tar.lz4 in cache, skipping download I0504 08:44:26.189817 5860 cache.go:49] Finished downloading the preloaded tar for v1.18.0 on docker I0504 08:44:26.189817 5860 profile.go:138] Saving config to C:\Users\gaurav.naik.minikube\profiles\minikube\config.json ... I0504 08:44:26.192815 5860 cache.go:117] Successfully downloaded all kic artifacts I0504 08:44:26.192815 5860 start.go:260] acquiring machines lock for minikube: {Name:mk9247ecc4d9f263aa04a4c3cc12607cdf59a575 Clock:{} Delay:500ms Timeout:15m0s Cancel:} I0504 08:44:26.192815 5860 start.go:264] acquired machines lock for "minikube" in 0s I0504 08:44:26.194041 5860 start.go:86] Provisioning new machine with config: {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO:https://storage.googleapis.com/minikube/iso/minikube-v1.9.0.iso Memory:4000 CPUs:2 DiskSize:20000 Driver:hyperv HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio KubernetesConfig:{KubernetesVersion:v1.18.0 ClusterName: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 NodeIP: NodePort:0 NodeName:} Nodes:[{Name:m01 IP: Port:8443 KubernetesVersion:v1.18.0 ControlPlane:true Worker:true}] Addons:map[]} {Name:m01 IP: Port:8443 KubernetesVersion:v1.18.0 ControlPlane:true Worker:true} I0504 08:44:26.194102 5860 start.go:107] createHost starting for "m01" (driver="hyperv")
- Creating hyperv VM (CPUs=2, Memory=4000MB, Disk=20000MB) ... I0504 08:44:26.197790 5860 start.go:143] libmachine.API.Create for "minikube" (driver="hyperv") I0504 08:44:26.197790 5860 client.go:169] LocalClient.Create starting I0504 08:44:26.197790 5860 main.go:110] libmachine: Reading certificate data from C:\Users\gaurav.naik.minikube\certs\ca.pem I0504 08:44:26.198800 5860 main.go:110] libmachine: Decoding PEM data... I0504 08:44:26.198800 5860 main.go:110] libmachine: Parsing certificate... I0504 08:44:26.199801 5860 main.go:110] libmachine: Reading certificate data from C:\Users\gaurav.naik.minikube\certs\cert.pem I0504 08:44:26.199801 5860 main.go:110] libmachine: Decoding PEM data... I0504 08:44:26.200793 5860 main.go:110] libmachine: Parsing certificate... I0504 08:44:26.200793 5860 main.go:110] libmachine: [executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique I0504 08:44:26.573815 5860 main.go:110] libmachine: [stdout =====>] : Hyper-V
I0504 08:44:26.573815 5860 main.go:110] libmachine: [stderr =====>] : I0504 08:44:26.574792 5860 main.go:110] libmachine: [executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(([System.Security.Principal.SecurityIdentifier]::new("S-1-5-32-578"))) I0504 08:44:26.844755 5860 main.go:110] libmachine: [stdout =====>] : I0504 08:44:26.844755 5860 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
I0504 08:44:26.845757 5860 main.go:110] libmachine: exit status 1 I0504 08:44:26.845757 5860 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") I0504 08:44:27.110982 5860 main.go:110] libmachine: [stdout =====>] : I0504 08:44:27.110982 5860 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
I0504 08:44:27.112237 5860 client.go:172] LocalClient.Create took 914.4474ms I0504 08:44:29.113540 5860 start.go:110] createHost completed in 2.919439s I0504 08:44:29.113540 5860 start.go:77] releasing machines lock for "minikube", held for 2.9197522s ! StartHost failed, but will try again: creating host: create: precreate: exit status 1 I0504 08:44:30.816387 5860 delete.go:45] couldn't inspect container "minikube" before deleting, docker-daemon might needs a restart!: inspecting container: output Error: No such object: minikube : exit status 1 I0504 08:44:30.830287 5860 delete.go:45] couldn't inspect container "minikube" before deleting, podman-daemon might needs a restart!: inspecting container: output : exec: "podman": executable file not found in %PATH% W0504 08:44:30.830577 5860 start.go:335] delete host: Docker machine "minikube" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one. I0504 08:44:35.831162 5860 start.go:260] acquiring machines lock for minikube: {Name:mk9247ecc4d9f263aa04a4c3cc12607cdf59a575 Clock:{} Delay:500ms Timeout:15m0s Cancel:} I0504 08:44:35.832008 5860 start.go:264] acquired machines lock for "minikube" in 845.8µs I0504 08:44:35.834997 5860 start.go:86] Provisioning new machine with config: {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO:https://storage.googleapis.com/minikube/iso/minikube-v1.9.0.iso Memory:4000 CPUs:2 DiskSize:20000 Driver:hyperv HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true HostOnlyNicType:virtio NatNicType:virtio KubernetesConfig:{KubernetesVersion:v1.18.0 ClusterName: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 NodeIP: NodePort:0 NodeName:} Nodes:[{Name:m01 IP: Port:8443 KubernetesVersion:v1.18.0 ControlPlane:true Worker:true}] Addons:map[]} {Name:m01 IP: Port:8443 KubernetesVersion:v1.18.0 ControlPlane:true Worker:true} I0504 08:44:35.834997 5860 start.go:107] createHost starting for "m01" (driver="hyperv")
- Creating hyperv VM (CPUs=2, Memory=4000MB, Disk=20000MB) ... I0504 08:44:35.838190 5860 start.go:143] libmachine.API.Create for "minikube" (driver="hyperv") I0504 08:44:35.838190 5860 client.go:169] LocalClient.Create starting I0504 08:44:35.838995 5860 main.go:110] libmachine: Reading certificate data from C:\Users\gaurav.naik.minikube\certs\ca.pem I0504 08:44:35.838995 5860 main.go:110] libmachine: Decoding PEM data... I0504 08:44:35.838995 5860 main.go:110] libmachine: Parsing certificate... I0504 08:44:35.840002 5860 main.go:110] libmachine: Reading certificate data from C:\Users\gaurav.naik.minikube\certs\cert.pem I0504 08:44:35.840002 5860 main.go:110] libmachine: Decoding PEM data... I0504 08:44:35.840002 5860 main.go:110] libmachine: Parsing certificate... I0504 08:44:35.840995 5860 main.go:110] libmachine: [executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @(Get-Module -ListAvailable hyper-v).Name | Get-Unique I0504 08:44:36.231995 5860 main.go:110] libmachine: [stdout =====>] : Hyper-V
I0504 08:44:36.231995 5860 main.go:110] libmachine: [stderr =====>] : I0504 08:44:36.232997 5860 main.go:110] libmachine: [executing ==>] : C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive @([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(([System.Security.Principal.SecurityIdentifier]::new("S-1-5-32-578"))) I0504 08:44:36.513996 5860 main.go:110] libmachine: [stdout =====>] : I0504 08:44:36.513996 5860 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
I0504 08:44:36.514996 5860 main.go:110] libmachine: exit status 1 I0504 08:44:36.514996 5860 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") I0504 08:44:36.788452 5860 main.go:110] libmachine: [stdout =====>] : I0504 08:44:36.788452 5860 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
I0504 08:44:36.789452 5860 client.go:172] LocalClient.Create took 950.4582ms I0504 08:44:38.790093 5860 start.go:110] createHost completed in 2.955098s I0504 08:44:38.790093 5860 start.go:77] releasing machines lock for "minikube", held for 2.955098s
- StartHost failed again: creating host: create: precreate: exit status 1
- Run: "minikube delete", then "minikube start --alsologtostderr -v=1" to try again with more logging
E0504 08:44:38.793086 5860 style.go:173] unable to parse "X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible\n": template: X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible :1: malformed character constant: 'minikube delete' - returning raw string. X Unable to start VM after repeated tries. Please try {{'minikube delete' if possible
- Error: [PRECREATE_EXIT_1] creating host: create: precreate: exit status 1
- Suggestion: The hypervisor does not appear to be configured properly. Run 'minikube start --alsologtostderr -v=1' and inspect the error code
- Related issues:
- If the above advice does not help, please let us know:
C:\windows\system32>
Full output of minikube start command used, if not already included:
C:\windows\system32>minikube start
- minikube v1.9.0 on Microsoft Windows 10 Enterprise 10.0.18362 Build 18362
- Automatically selected the hyperv driver. Other choices: docker, virtualbox
- Creating hyperv VM (CPUs=2, Memory=4000MB, Disk=20000MB) ... ! StartHost failed, but will try again: creating host: create: precreate: exit status 1
- Creating hyperv VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...
- StartHost failed again: creating host: create: precreate: exit status 1
- Run: "minikube delete", then "minikube start --alsologtostderr -v=1" to try again with more logging
Optional: Full output of minikube logs command: