-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minikube start fails with driver kvm2 on AMD Ryzen CPU #6168
Comments
I just tried a live Ubuntu 19.10 (running kernel 5.3.0-18-generic) on the same AMD desktop I have Manjaro on. I followed these steps:
That failed again with "machine didn't return an IP after 120 seconds", and the minikube VM console in Virtual Machine Manager shows the same errors as in my previous comment:
My working theory at the moment is that there may be some incompatibility between minikube right now and my CPU. I edited the name of the issue to reflect that. I'll keep investigating. |
Probably yet another systemd bug, similar to this one: |
Another data point: I just ran the same The question now is, will using a different emulated CPU impact minikube somehow? And a minor question, is there a way for me to change the default |
Ok, I managed to make it work. I tried a handful of CPUs manually and found I couldn't find any clean/elegant way to have minikube start the VM with a different CPU. So I ended up renaming #!/usr/bin/env python
import os
import sys
argv = sys.argv[:]
if "-cpu" in argv:
i = argv.index("-cpu")
if argv[i + 1] == "host":
argv[i + 1] = "kvm64"
os.execvp("qemu-system-x86_64.orig", argv) After this, This is clearly not a solution, and the bug remains somewhere in boot2docker or systemd, but at least this unblocks me and I hope it'll help others. |
I probably run into same issue, execting machine 1: Intel(R) Core(TM) i5-5200U, 4.15.0-72-generic then I upgrade both to ubuntu 19.04, now their kernel version are identical to 5.0.0-37-generic, agsin, machine 2 still run with problems while machine 1 works OK. for machine 2 Detailswyc@3600:~/go/src/k8s.io/minikube$ ./out/minikube-linux-amd64 start --iso-url=https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.6.0.iso --image-mirror-country='cn' --image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers' --registry-mirror=https://registry.docker-cn.com 💣 Unable to start VM. Please investigate and run 'minikube delete' if possible 😿 If the above advice does not help, please let us know: The output of the minikube logs command Detailswyc@3600:~/go/src/k8s.io/minikube$ ./out/minikube-linux-amd64 logs💣 command runner 😿 If the above advice does not help, please let us know: the |
I'm also new to minikube, but I had played with Virtualbox, libvirt and QEMU before, so I had an idea how to poke around to figure out what was happening. minikube's goal is to create a kubernetes cluster and set up kubectl to use it. And it has two distinct ways of doing it:
What I was trying to solve above was the second approach. If you don't mind the noise from using your real host, try If you wanna use the VM approach, then minikube can, in Linux, use KVM or VirtualBox. For KVM, the process goes like:
What I did above was to force qemu-system-x86_64 to use a different CPU, which seems to fix the incompatibility between the VM and the Ryzen CPU. I see your minikube tried to use VirtualBox. Try installing |
@ateijelo : Thanks for investigating, and coming up with a reasonable workaround in the meantime. It would be interesting to see if Boot2Docker (Docker Machine) still works properly, since it doesn't use systemd (but init) and shouldn't have the same issue. If you could verify, that would be great! @yuchengwu : Your problem sounds different, although possibly also related to the AMD CPU ? We need more verbose logs to determine why it didn't start, and that "provisioning" error text posted by libmachine is horrible ("Error configuring auth on host: OS type not recognized") |
Thanks for the advices, To avoid polluting my host env, I first tried to switch using then I consider using |
hi, the more verbose version Detailswyc@3600:~/go/src/k8s.io/minikube$ ./out/minikube-linux-amd64 delete 🙄 "minikube" profile does not exist 🙄 "minikube" cluster does not exist. Proceeding ahead with cleanup. 💔 The "minikube" cluster has been deleted. 🔥 Successfully deleted profile "minikube" wyc@3600:~/go/src/k8s.io/minikube$ ./out/minikube-linux-amd64 start --alsologtostderr -v=7 --vm-driver=virtualbox --iso-url=https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.6.0.iso --image-mirror-country='cn' --image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers' --registry-mirror=https://registry.docker-cn.com I1229 23:48:59.168485 21341 notify.go:125] Checking for updates... I1229 23:49:02.367192 21341 start.go:255] hostinfo: {"hostname":"3600","uptime":8064,"bootTime":1577626478,"procs":506,"os":"linux","platform":"ubuntu","platformFamily":"debian","platformVersion":"19.04","kernelVersion":"5.0.0-37-generic","virtualizationSystem":"kvm","virtualizationRole":"host","hostid":"e124648c-1671-4f43-8a72-9804d20188e4"} I1229 23:49:02.367929 21341 start.go:265] virtualization: kvm host 😄 minikube v1.6.2 on Ubuntu 19.04 I1229 23:49:02.368036 21341 start.go:555] selectDriver: flag="virtualbox", old= I1229 23:49:02.368056 21341 global.go:60] Querying for installed drivers using PATH=/home/wyc/.minikube/bin:/usr/local/go/bin:/home/wyc/go/bin:/home/wyc/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin I1229 23:49:02.475863 21341 global.go:68] kvm2 priority: 6, state: {Installed:true Healthy:false Error:/usr/bin/virsh domcapabilities --virttype kvm failed: error: failed to get emulator capabilities error: invalid argument: KVM is not supported by '/usr/bin/qemu-system-x86_64' on this host Fix:Follow your Linux distribution instructions for configuring KVM Doc:https://minikube.sigs.k8s.io/docs/reference/drivers/kvm2/} I1229 23:49:02.475950 21341 global.go:68] none priority: 2, state: {Installed:true Healthy:true Error: Fix: Doc:} I1229 23:49:02.517229 21341 global.go:68] virtualbox priority: 4, state: {Installed:true Healthy:true Error: Fix: Doc:} I1229 23:49:02.517281 21341 global.go:68] vmware priority: 5, state: {Installed:false Healthy:false Error:exec: "docker-machine-driver-vmware": executable file not found in $PATH Fix:Install docker-machine-driver-vmware Doc:https://minikube.sigs.k8s.io/docs/reference/drivers/vmware/} I1229 23:49:02.517298 21341 driver.go:109] requested: "virtualbox" I1229 23:49:02.517305 21341 driver.go:113] choosing "virtualbox" because it was requested I1229 23:49:02.517311 21341 driver.go:128] not recommending "none" due to priority: 2 I1229 23:49:02.517317 21341 driver.go:123] not recommending "kvm2" due to health: /usr/bin/virsh domcapabilities --virttype kvm failed: error: failed to get emulator capabilities error: invalid argument: KVM is not supported by '/usr/bin/qemu-system-x86_64' on this host I1229 23:49:02.517323 21341 driver.go:146] Picked: virtualbox I1229 23:49:02.517330 21341 driver.go:147] Alternatives: [none] ✨ Selecting 'virtualbox' driver from user configuration (alternates: [none]) I1229 23:49:02.517376 21341 start.go:297] selected driver: virtualbox I1229 23:49:02.517380 21341 start.go:585] validating driver "virtualbox" against I1229 23:49:02.559894 21341 start.go:591] status for virtualbox: {Installed:true Healthy:true Error: Fix: Doc:} I1229 23:49:02.560035 21341 start.go:650] selecting image repository for country cn ... ✅ Using image repository registry.cn-hangzhou.aliyuncs.com/google_containers I1229 23:49:02.712122 21341 downloader.go:60] Not caching ISO, using https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.6.0.iso I1229 23:49:02.712313 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy_v1.17.0 I1229 23:49:02.712333 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.1 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/pause_3.1 I1229 23:49:02.712348 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy_v1.17.0 exists I1229 23:49:02.712363 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/pause_3.1 exists I1229 23:49:02.712535 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.1 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/pause_3.1 completed in 205.603µs I1229 23:49:02.712553 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.1 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/pause_3.1 succeeded I1229 23:49:02.712581 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver_v1.17.0 I1229 23:49:02.712606 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/dashboard:v2.0.0-beta8 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/dashboard_v2.0.0-beta8 I1229 23:49:02.712595 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.6.5 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns_1.6.5 I1229 23:49:02.712316 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-scraper:v1.0.2 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-scraper_v1.0.2 I1229 23:49:02.712660 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns_1.6.5 exists I1229 23:49:02.712673 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.6.5 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns_1.6.5 completed in 101.201µs I1229 23:49:02.712685 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/coredns:1.6.5 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/coredns_1.6.5 succeeded I1229 23:49:02.712340 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler_v1.17.0 I1229 23:49:02.712709 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler_v1.17.0 exists I1229 23:49:02.712716 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler_v1.17.0 completed in 382.736µs I1229 23:49:02.712736 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler_v1.17.0 succeeded I1229 23:49:02.712322 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.4.3-0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/etcd_3.4.3-0 I1229 23:49:02.712758 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/etcd_3.4.3-0 exists I1229 23:49:02.712356 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager_v1.17.0 I1229 23:49:02.712763 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-addon-manager:v9.0.2 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-addon-manager_v9.0.2 I1229 23:49:02.712800 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager_v1.17.0 exists I1229 23:49:02.712811 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager_v1.17.0 completed in 459.866µs I1229 23:49:02.712815 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-addon-manager_v9.0.2 exists I1229 23:49:02.712802 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-scraper_v1.0.2 exists I1229 23:49:02.712852 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-scraper:v1.0.2 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-scraper_v1.0.2 completed in 534.808µs I1229 23:49:02.712871 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-scraper:v1.0.2 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-scraper_v1.0.2 succeeded I1229 23:49:02.712826 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager_v1.17.0 succeeded I1229 23:49:02.712596 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy_v1.17.0 completed in 151.952µs I1229 23:49:02.713165 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-addon-manager:v9.0.2 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-addon-manager_v9.0.2 completed in 399.146µs I1229 23:49:02.713184 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy_v1.17.0 succeeded I1229 23:49:02.713196 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/kube-addon-manager:v9.0.2 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-addon-manager_v9.0.2 succeeded I1229 23:49:02.712620 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver_v1.17.0 exists I1229 23:49:02.713216 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver_v1.17.0 completed in 853.982µs I1229 23:49:02.713230 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.17.0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver_v1.17.0 succeeded I1229 23:49:02.712636 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/dashboard_v2.0.0-beta8 exists I1229 23:49:02.713265 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/dashboard:v2.0.0-beta8 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/dashboard_v2.0.0-beta8 completed in 654.34µs I1229 23:49:02.712765 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.4.3-0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/etcd_3.4.3-0 completed in 445.717µs I1229 23:49:02.713287 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/dashboard:v2.0.0-beta8 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/dashboard_v2.0.0-beta8 succeeded I1229 23:49:02.712358 21341 cache_images.go:347] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner:v1.8.1 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner_v1.8.1 I1229 23:49:02.713308 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.4.3-0 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/etcd_3.4.3-0 succeeded I1229 23:49:02.712354 21341 profile.go:89] Saving config to /home/wyc/.minikube/profiles/minikube/config.json ... I1229 23:49:02.713459 21341 cache_images.go:353] /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner_v1.8.1 exists I1229 23:49:02.713477 21341 cache_images.go:349] CacheImage: registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner:v1.8.1 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner_v1.8.1 completed in 1.121726ms I1229 23:49:02.713516 21341 cache_images.go:89] CacheImage registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner:v1.8.1 -> /home/wyc/.minikube/cache/images/registry.cn-hangzhou.aliyuncs.com/google_containers/storage-provisioner_v1.8.1 succeeded I1229 23:49:02.713539 21341 cache_images.go:96] Successfully cached all images. I1229 23:49:02.713543 21341 lock.go:35] WriteFile acquiring /home/wyc/.minikube/profiles/minikube/config.json: {Name:mkbd64491712af7accb77961d0d4b5df4102cc8c Clock:{} Delay:500ms Timeout:1m0s Cancel:} I1229 23:49:02.713737 21341 cluster.go:97] Machine does not exist... provisioning new machine I1229 23:49:02.713747 21341 cluster.go:98] Provisioning machine with config: {Name:minikube KeepContext:false EmbedCerts:false MinikubeISO:https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.6.0.iso Memory:2000 CPUs:2 DiskSize:20000 VMDriver:virtualbox ContainerRuntime:docker HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[] InsecureRegistry:[] RegistryMirror:[https://registry.docker-cn.com] HostOnlyCIDR:192.168.99.1/24 HypervVirtualSwitch: KVMNetwork:default KVMQemuURI:qemu:///system KVMGPU:false KVMHidden:false Downloader:{} DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot:/nfsshares UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:true KubernetesConfig:{KubernetesVersion:v1.17.0 NodeIP: NodePort:8443 NodeName:minikube APIServerName:minikubeCA APIServerNames:[] APIServerIPs:[] DNSDomain:cluster.local ContainerRuntime:docker CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR:10.96.0.0/12 ImageRepository:registry.cn-hangzhou.aliyuncs.com/google_containers ExtraOptions:[] ShouldLoadCachedImages:true EnableDefaultCNI:false} HostOnlyNicType:virtio NatNicType:virtio} 🔥 Creating virtualbox VM (CPUs=2, Memory=2000MB, Disk=20000MB) ... I1229 23:49:02.714065 21341 main.go:110] libmachine: Reading certificate data from /home/wyc/.minikube/certs/ca.pem I1229 23:49:02.714089 21341 main.go:110] libmachine: Decoding PEM data... I1229 23:49:02.714106 21341 main.go:110] libmachine: Parsing certificate... I1229 23:49:02.714179 21341 main.go:110] libmachine: Reading certificate data from /home/wyc/.minikube/certs/cert.pem I1229 23:49:02.714198 21341 main.go:110] libmachine: Decoding PEM data... I1229 23:49:02.714209 21341 main.go:110] libmachine: Parsing certificate... I1229 23:49:02.714265 21341 main.go:110] libmachine: COMMAND: /usr/bin/VBoxManage --version I1229 23:49:02.738182 21341 main.go:110] libmachine: STDOUT: { 6.0.6_Ubuntur129722 } I1229 23:49:02.738199 21341 main.go:110] libmachine: STDERR: { } I1229 23:49:02.738220 21341 main.go:110] libmachine: COMMAND: /usr/bin/VBoxManage list hostonlyifs I1229 23:49:02.793595 21341 main.go:110] libmachine: STDOUT: { Name: vboxnet2 GUID: 786f6276-656e-4274-8000-0a0027000002 DHCP: Disabled IPAddress: 192.168.33.1 NetworkMask: 255.255.255.0 IPV6Address: IPV6NetworkMaskPrefixLength: 0 HardwareAddress: 0a:00:27:00:00:02 MediumType: Ethernet Wireless: No Status: Down VBoxNetworkName: HostInterfaceNetworking-vboxnet2
Details$ ./out/minikube-linux-amd64 logs 💣 command runner 😿 If the above advice does not help, please let us know: this time the previous error gone, looks like no error complains, but vm failed to connect, view the vm boot console found that the minikube vm stuck on booting. |
@yuchengwu for both KVM and VirtualBox, the standard VM console stops there, even when it's successful. The actual output goes to the serial port. For VirtualBox, you need to enable the serial port in the settings: and then connect to that port with |
@ateijelo , using this setting I got this: Details
$ telnet localhost 8888 Welcome to Buildroot 2019.02.7! [ OK ] Created slice User and Session Slice. |
Yup, it's the same issue that KVM has, but I see no way of changing the virtual CPU when using VirtualBox. All in all, this doesn't look like a minikube issue, but the systemd issue with a Ryzen CPUs that @afbjorklund pointed out. I'm gonna try the other boot2docker.iso file now and will report my findings. |
I just tried the boot2docker.iso linked above, directly with QEMU, and yes, it seems to work fine with
and got this:
So, looks like more evidence that this is the aforementioned systemd issue. |
Okay, thanks for confirming. Patching systemd will be problematic, would prefer to not have to fork Buildroot and trying to stick with the longterm version of Linux (not sure if systemd has such a concept) The patch itself is small enough: systemd/systemd@1c53d4a And there is already quite the number of patches, so maybe it could be added upstream ? I guess we should build an ISO with the fix, and try to confirm that it actually fixes the issue before doing so. https://github.com/buildroot/buildroot/tree/2019.02.x/package/systemd |
This is unfortunately the workaround, if you are unable to patch QEMU (e.g. not running KVM) and until there is an updated ISO available. Using the previous major version of the ISO (with the older systemd) might also work, but it has side effects and is not guaranteed to work with new minikube. |
@afbjorklund how can I build and/or test the iso with the patch? Edit: I found this: https://minikube.sigs.k8s.io/docs/contributing/iso/ ; am I on the right track there? |
Ok, I think I got it. I checked out branch
I tried it with VirtualBox as well, and it also worked fine. |
Excellent news, thanks for building and testing it! Then we should include it with the next ISO... |
This should be fixed in v1.7.0 beta 0 |
I just tried it, all looks good:
|
minikube fails to create a new cluster on Manjaro, using driver
kvm2
. The VM using boot2docker fails to boot properly.The exact command to reproduce the issue:
The full output of the command that failed:
The output of the
minikube logs
command:The operating system version: Manjaro 18.1.4 (Arch), running kernel 5.4.2-1-MANJARO, with QEMU 4.2
More details:
Despite the 120 seconds to get an IP, the issue doesn't seem to be related to networking. After a lot of digging around I narrowed down the problem to this command:
On a Debian system running the same QEMU on kernel 5.3.0-2-amd64, that command shows, on the VM serial console, a lot of
[ OK ]
lines up to theminikube login:
line. But in Manjaro, I get this:And the VM just stays hung there. Is there any way I could troubleshoot that boot process?
Both computers are loading the same boot2docker.iso (sha256: a24153a2e49f082d5f4a36ea5d1608cba2482d563e8642a8dffd6560c40f3ed2).
The other difference between the systems is the CPU:
The text was updated successfully, but these errors were encountered: