rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
6.01k stars 283 forks source link

Error starting virtual machine on Intel Mac #3021

Open austinjw opened 2 years ago

austinjw commented 2 years ago

Actual Behavior

Upon installing Rancher Desktop it reports that it has failed to start the virtual machine and shows an error dialogue. This behavior persists after restarting Rancher Desktop, factory resetting it, and after factory resetting / reinstalling it.

Steps to Reproduce

Download and install Rancher Desktop for Intel Macs, selecting automatic path configuration during the installation. Manual configuration was not attempted.

Result

Screen Shot 2022-09-26 at 4 55 59 PM

Expected Behavior

For Rancher Desktop to finish initialization and run normally.

Additional Information

The error dialogue directs attention to ha.stderr.log which contains the following:


{"level":"debug","msg":"Creating iso file /Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/cidata.iso","time":"2022-09-26T16:34:18-07:00"}
{"level":"debug","msg":"Using /var/folders/nv/9r0w79vn6hd9k1_gj_sl_32w1c2_h2/T/diskfs_iso1916705666 as workspace","time":"2022-09-26T16:34:18-07:00"}
{"level":"debug","msg":"OpenSSH version 7.9.1 detected","time":"2022-09-26T16:34:19-07:00"}
{"level":"info","msg":"Starting QEMU (hint: to watch the boot progress, see \"/Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/serial.log\")","time":"2022-09-26T16:34:19-07:00"}
{"level":"debug","msg":"Start tcp server listening on: 127.0.0.1:49895","time":"2022-09-26T16:34:19-07:00"}
{"level":"debug","msg":"Start udp server listening on: 127.0.0.1:63017","time":"2022-09-26T16:34:19-07:00"}
{"level":"debug","msg":"qCmd.Args: [/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/qemu-system-x86_64 -m 6144 -cpu host -machine q35,accel=hvf -smp 2,sockets=1,cores=2,threads=1 -boot order=d,splash-time=0,menu=on -drive file=/Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/basedisk,media=cdrom,readonly=on -drive file=/Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/diffdisk,if=virtio -cdrom /Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/cidata.iso -netdev user,id=net0,net=192.168.5.0/24,dhcpstart=192.168.5.15,hostfwd=tcp:127.0.0.1:49839-:22 -device virtio-net-pci,netdev=net0,mac=52:55:55:69:d7:76 -netdev vde,id=net1,sock=/private/var/run/rancher-desktop-shared.ctl -device virtio-net-pci,netdev=net1,mac=52:55:55:88:7c:24 -netdev vde,id=net2,sock=/private/var/run/rancher-desktop-bridged_en0.ctl -device virtio-net-pci,netdev=net2,mac=52:55:55:b8:8a:fa -device virtio-rng-pci -display none -device virtio-vga -device virtio-keyboard-pci -device virtio-mouse-pci -device qemu-xhci,id=usb-bus -parallel none -chardev socket,id=char-serial,path=/Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/serial.sock,server=on,wait=off,logfile=/Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/serial.log -serial chardev:char-serial -chardev socket,id=char-qmp,path=/Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/qmp.sock,server=on,wait=off -qmp chardev:char-qmp -name lima-0 -pidfile /Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/qemu.pid]","time":"2022-09-26T16:34:19-07:00"}
{"level":"info","msg":"Waiting for the essential requirement 1 of 5: \"ssh\"","time":"2022-09-26T16:34:19-07:00"}
{"level":"debug","msg":"executing script \"ssh\"","time":"2022-09-26T16:34:19-07:00"}
{"level":"debug","msg":"qemu[stderr]: qemu-system-x86_64: -netdev vde,id=net1,sock=/private/var/run/rancher-desktop-shared.ctl: Could not open vde: No such file or directory","time":"2022-09-26T16:34:19-07:00"}
{"level":"debug","msg":"executing ssh for script \"ssh\": /usr/bin/ssh [ssh -F /dev/null -o IdentityFile=\"/Users/ambgowa/Library/Application Support/rancher-desktop/lima/_config/user\" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o User=ambgowa -o ControlMaster=auto -o ControlPath=\"/Users/ambgowa/Library/Application Support/rancher-desktop/lima/0/ssh.sock\" -o ControlPersist=5m -p 49839 127.0.0.1 -- /bin/bash]","time":"2022-09-26T16:34:19-07:00"}
{"error":"exit status 1","level":"info","msg":"QEMU has exited","time":"2022-09-26T16:34:19-07:00"}
{"level":"debug","msg":"stdout=\"\", stderr=\"ssh: connect to host 127.0.0.1 port 49839: Connection refused\\r\\n\", err=failed to execute script \"ssh\": stdout=\"\", stderr=\"ssh: connect to host 127.0.0.1 port 49839: Connection refused\\r\\n\": exit status 255","time":"2022-09-26T16:34:19-07:00"}

### Rancher Desktop Version

1.5.1

### Rancher Desktop K8s Version

1.25.0

### Which container engine are you using?

moby (docker cli)

### What operating system are you using?

macOS

### Operating System / Build Version

macOS Catalina 10.15.1

### What CPU architecture are you using?

x64

### Linux only: what package format did you use to install Rancher Desktop?

_No response_

### Windows User Only

_No response_
austinjw commented 2 years ago

For the reference of anyone who is curious, and in case it matters: we uninstalled Rancher Desktop and are now just running Lima directly. While we obviously now lack a local Kubernetes cluster, this still allows us to work with containers, and leads me to believe the error with Lima is in some way caused by Rancher Desktop.