Open dhanesh opened 2 years ago
RD should spin up Lima VM and connect to it after K3s is setup allowing nerdctl to spin up containers on the VM
Now install lima using brew install lima Install lima-gui by downloading it from https://github.com/afbjorklund/lima-gui
brew install lima
Install RD 1.6.2 on MacOS Ventura
Open the lima-gui window and keep refreshing while you do the below step
Start RD until it is setup which due to the issue takes anywhere between 20 - 25 minutes to respond with the below error
All throughout the 20 - 25 mins you'll see no VM getting created but if you do the same through the lima-gui, it creates the VM
RD stating that it is starting the VM
RD moving ahead to deployment of k3s and waiting for services
Lima still not showing an VMs
Successful login to a VM created externally with Lima (but no RD created VM in sight yet)
VM created and k3s deployed for containerd and moby
lima.log
{"name":"0","status":"Stopped","dir":"/Users/dhanesh/Library/Application Support/rancher-desktop/lima/0","arch":"aarch64","cpuType":"host","cpus":2,"memory":4294967296,"disk":107374182400,"network":[{"lima":"rancher-desktop-shared","macAddress":"52:55:55:20:4f:05","interface":"rd1"},{"lima":"rancher-desktop-bridged_en0","macAddress":"52:55:55:3e:d8:63","interface":"rd0"}],"sshLocalPort":60216} 2022-12-01T07:02:45.318Z: > limactl list --json {"name":"0","status":"Stopped","dir":"/Users/dhanesh/Library/Application Support/rancher-desktop/lima/0","arch":"aarch64","cpuType":"host","cpus":2,"memory":4294967296,"disk":107374182400,"network":[{"lima":"rancher-desktop-shared","macAddress":"52:55:55:20:4f:05","interface":"rd1"},{"lima":"rancher-desktop-bridged_en0","macAddress":"52:55:55:3e:d8:63","interface":"rd0"}],"sshLocalPort":65319} 2022-12-01T07:02:45.604Z: > limactl sudoers %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: /bin/mkdir -m 775 -p /private/var/run # Manage "host" network daemons %everyone ALL=(daemon:everyone) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_switch --pidfile=/private/var/run/host_switch.pid --sock=/private/var/run/host.ctl --group=everyone --dirmode=0770 --nostdin, \ /usr/bin/pkill -F /private/var/run/host_switch.pid %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_vmnet --pidfile=/private/var/run/host_vmnet.pid --vde-group=everyone --vmnet-mode=host --vmnet-gateway=192.168.206.1 --vmnet-dhcp-end=192.168.206.254 --vmnet-mask=255.255.255.0 /private/var/run/host.ctl, \ /usr/bin/pkill -F /private/var/run/host_vmnet.pid # Manage "rancher-desktop-bridged_bridge0" network daemons %everyone ALL=(daemon:everyone) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_switch --pidfile=/private/var/run/rancher-desktop-bridged_bridge0_switch.pid --sock=/private/var/run/rancher-desktop-bridged_bridge0.ctl --group=everyone --dirmode=0770 --nostdin, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_bridge0_switch.pid %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_vmnet --pidfile=/private/var/run/rancher-desktop-bridged_bridge0_vmnet.pid --vde-group=everyone --vmnet-mode=bridged --vmnet-interface=bridge0 /private/var/run/rancher-desktop-bridged_bridge0.ctl, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_bridge0_vmnet.pid # Manage "rancher-desktop-bridged_en0" network daemons %everyone ALL=(daemon:everyone) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_switch --pidfile=/private/var/run/rancher-desktop-bridged_en0_switch.pid --sock=/private/var/run/rancher-desktop-bridged_en0.ctl --group=everyone --dirmode=0770 --nostdin, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en0_switch.pid %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_vmnet --pidfile=/private/var/run/rancher-desktop-bridged_en0_vmnet.pid --vde-group=everyone --vmnet-mode=bridged --vmnet-interface=en0 /private/var/run/rancher-desktop-bridged_en0.ctl, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en0_vmnet.pid # Manage "rancher-desktop-bridged_en4" network daemons %everyone ALL=(daemon:everyone) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_switch --pidfile=/private/var/run/rancher-desktop-bridged_en4_switch.pid --sock=/private/var/run/rancher-desktop-bridged_en4.ctl --group=everyone --dirmode=0770 --nostdin, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en4_switch.pid %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_vmnet --pidfile=/private/var/run/rancher-desktop-bridged_en4_vmnet.pid --vde-group=everyone --vmnet-mode=bridged --vmnet-interface=en4 /private/var/run/rancher-desktop-bridged_en4.ctl, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en4_vmnet.pid # Manage "rancher-desktop-bridged_en5" network daemons %everyone ALL=(daemon:everyone) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_switch --pidfile=/private/var/run/rancher-desktop-bridged_en5_switch.pid --sock=/private/var/run/rancher-desktop-bridged_en5.ctl --group=everyone --dirmode=0770 --nostdin, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en5_switch.pid %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_vmnet --pidfile=/private/var/run/rancher-desktop-bridged_en5_vmnet.pid --vde-group=everyone --vmnet-mode=bridged --vmnet-interface=en5 /private/var/run/rancher-desktop-bridged_en5.ctl, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en5_vmnet.pid # Manage "rancher-desktop-bridged_en6" network daemons %everyone ALL=(daemon:everyone) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_switch --pidfile=/private/var/run/rancher-desktop-bridged_en6_switch.pid --sock=/private/var/run/rancher-desktop-bridged_en6.ctl --group=everyone --dirmode=0770 --nostdin, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en6_switch.pid %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_vmnet --pidfile=/private/var/run/rancher-desktop-bridged_en6_vmnet.pid --vde-group=everyone --vmnet-mode=bridged --vmnet-interface=en6 /private/var/run/rancher-desktop-bridged_en6.ctl, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en6_vmnet.pid # Manage "rancher-desktop-bridged_en7" network daemons %everyone ALL=(daemon:everyone) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_switch --pidfile=/private/var/run/rancher-desktop-bridged_en7_switch.pid --sock=/private/var/run/rancher-desktop-bridged_en7.ctl --group=everyone --dirmode=0770 --nostdin, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en7_switch.pid %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_vmnet --pidfile=/private/var/run/rancher-desktop-bridged_en7_vmnet.pid --vde-group=everyone --vmnet-mode=bridged --vmnet-interface=en7 /private/var/run/rancher-desktop-bridged_en7.ctl, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-bridged_en7_vmnet.pid # Manage "rancher-desktop-shared" network daemons %everyone ALL=(daemon:everyone) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_switch --pidfile=/private/var/run/rancher-desktop-shared_switch.pid --sock=/private/var/run/rancher-desktop-shared.ctl --group=everyone --dirmode=0770 --nostdin, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-shared_switch.pid %everyone ALL=(root:wheel) NOPASSWD:NOSETENV: \ /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/vde/bin/vde_vmnet --pidfile=/private/var/run/rancher-desktop-shared_vmnet.pid --vde-group=everyone --vmnet-mode=shared --vmnet-gateway=192.168.205.1 --vmnet-dhcp-end=192.168.205.254 --vmnet-mask=255.255.255.0 /private/var/run/rancher-desktop-shared.ctl, \ /usr/bin/pkill -F /private/var/run/rancher-desktop-shared_vmnet.pid 2022-12-01T07:02:45.829Z: > limactl list --json {"name":"0","status":"Stopped","dir":"/Users/dhanesh/Library/Application Support/rancher-desktop/lima/0","arch":"aarch64","cpuType":"host","cpus":2,"memory":4294967296,"disk":107374182400,"network":[{"lima":"rancher-desktop-shared","macAddress":"52:55:55:20:4f:05","interface":"rd1"},{"lima":"rancher-desktop-bridged_en0","macAddress":"52:55:55:3e:d8:63","interface":"rd0"}],"sshLocalPort":65319} 2022-12-01T07:03:08.645Z: > limactl start --tty=false 0 time="2022-12-01T12:32:45+05:30" level=info msg="Using the existing instance \"0\"" time="2022-12-01T12:32:45+05:30" level=info msg="Starting vde_vmnet daemon for \"rancher-desktop-shared\" network" time="2022-12-01T12:32:46+05:30" level=warning msg="[hostagent] field `firmware.legacyBIOS` is not supported for architecture \"aarch64\", ignoring" time="2022-12-01T12:32:46+05:30" level=warning msg="[hostagent] vdeVMNet is deprecated, use socketVMNet instead (See docs/network.md)" time="2022-12-01T12:32:46+05:30" level=warning msg="[hostagent] vdeVMNet is deprecated, use socketVMNet instead (See docs/network.md)" time="2022-12-01T12:32:46+05:30" level=info msg="[hostagent] Starting QEMU (hint: to watch the boot progress, see \"/Users/dhanesh/Library/Application Support/rancher-desktop/lima/0/serial.log\")" time="2022-12-01T12:32:46+05:30" level=info msg="SSH Local Port: 65319" time="2022-12-01T12:32:46+05:30" level=info msg="[hostagent] Waiting for the essential requirement 1 of 5: \"ssh\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] The essential requirement 1 of 5 is satisfied" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Waiting for the essential requirement 2 of 5: \"user session is ready for ssh\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] The essential requirement 2 of 5 is satisfied" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Waiting for the essential requirement 3 of 5: \"sshfs binary to be installed\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] The essential requirement 3 of 5 is satisfied" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Waiting for the essential requirement 4 of 5: \"/etc/fuse.conf (/etc/fuse3.conf) to contain \\\"user_allow_other\\\"\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] The essential requirement 4 of 5 is satisfied" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Waiting for the essential requirement 5 of 5: \"the guest agent to be running\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] The essential requirement 5 of 5 is satisfied" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Mounting \"/Users/dhanesh/Library/Caches/rancher-desktop/k3s\" on \"/Users/dhanesh/Library/Caches/rancher-desktop/k3s\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Mounting \"/Users/dhanesh/Library/Logs/rancher-desktop\" on \"/Users/dhanesh/Library/Logs/rancher-desktop\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Mounting \"/Users/dhanesh\" on \"/Users/dhanesh\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Mounting \"/tmp/rancher-desktop\" on \"/tmp/rancher-desktop\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Waiting for the final requirement 1 of 1: \"boot scripts must have finished\"" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Forwarding \"/var/run/docker.sock\" (guest) to \"/Users/dhanesh/.rd/docker.sock\" (host)" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] Forwarding \"/run/lima-guestagent.sock\" (guest) to \"/Users/dhanesh/Library/Application Support/rancher-desktop/lima/0/ga.sock\" (host)" time="2022-12-01T12:33:08+05:30" level=info msg="[hostagent] The final requirement 1 of 1 is satisfied" time="2022-12-01T12:33:08+05:30" level=info msg="READY. Run `limactl shell 0` to open the shell." 2022-12-01T07:03:08.850Z: > limactl shell --workdir=. 0 /usr/local/bin/k3s --version k3s version v1.25.4+k3s1 (0dc63334) go version go1.19.3 2022-12-01T07:03:11.870Z: > limactl list --json {"name":"0","status":"Running","dir":"/Users/dhanesh/Library/Application Support/rancher-desktop/lima/0","arch":"aarch64","cpuType":"host","cpus":2,"memory":4294967296,"disk":107374182400,"network":[{"lima":"rancher-desktop-shared","macAddress":"52:55:55:20:4f:05","interface":"rd1"},{"lima":"rancher-desktop-bridged_en0","macAddress":"52:55:55:3e:d8:63","interface":"rd0"}],"sshLocalPort":65319,"hostAgentPID":16356,"qemuPID":16448} 2022-12-01T07:03:11.910Z: > limactl shell --workdir=. 0 sudo /bin/sh -c if [ -e /etc/init.d/k3s ]; then /sbin/rc-service --ifstarted k3s stop; fi 2022-12-01T07:03:12.043Z: > limactl shell --workdir=. 0 /usr/local/bin/k3s --version k3s version v1.25.4+k3s1 (0dc63334) go version go1.19.3 2022-12-01T07:03:12.107Z: > limactl copy /Applications/Rancher Desktop.app/Contents/Resources/resources/scripts/profile 0:~/.profile 2022-12-01T07:03:12.146Z: > limactl shell --workdir=. 0 sudo mkdir -p /etc/cni/net.d 2022-12-01T07:03:12.204Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-10-flannel.conflist-GxqjLd/10-flannel.conflist 0:/tmp/rd-10-flannel.conflist-GxqjLd.10-flannel.conflist 2022-12-01T07:03:12.241Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-10-flannel.conflist-GxqjLd.10-flannel.conflist 2022-12-01T07:03:12.279Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-10-flannel.conflist-GxqjLd.10-flannel.conflist /etc/cni/net.d/10-flannel.conflist 2022-12-01T07:03:12.320Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-10-flannel.conflist-GxqjLd.10-flannel.conflist 2022-12-01T07:03:12.377Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-config.toml-2TW6S4/config.toml 0:/tmp/rd-config.toml-2TW6S4.config.toml 2022-12-01T07:03:12.415Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-config.toml-2TW6S4.config.toml 2022-12-01T07:03:12.454Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-config.toml-2TW6S4.config.toml /etc/containerd/config.toml 2022-12-01T07:03:12.499Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-config.toml-2TW6S4.config.toml 2022-12-01T07:03:12.566Z: > limactl shell --workdir=. 0 sudo /sbin/rc-service --ifnotstarted containerd start * /var/log/containerd.log: creating file * Starting Container Daemon ... [ ok ] 2022-12-01T07:03:12.665Z: > limactl shell --workdir=. 0 /usr/local/bin/k3s --version k3s version v1.25.4+k3s1 (0dc63334) go version go1.19.3 2022-12-01T07:03:12.706Z: > limactl shell --workdir=. 0 mkdir -p bin 2022-12-01T07:03:12.763Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-install-k3s-2TiYDB/install-k3s 0:/tmp/rd-install-k3s-2TiYDB.install-k3s 2022-12-01T07:03:12.802Z: > limactl shell --workdir=. 0 chmod a+x /tmp/rd-install-k3s-2TiYDB.install-k3s 2022-12-01T07:03:12.863Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-install-k3s-2TiYDB.install-k3s bin/install-k3s 2022-12-01T07:03:12.905Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-install-k3s-2TiYDB.install-k3s 2022-12-01T07:03:12.949Z: > limactl shell --workdir=. 0 sudo bin/install-k3s v1.25.4+k3s1 /Users/dhanesh/Library/Caches/rancher-desktop/k3s 2022-12-01T07:03:13.007Z: > limactl copy /Applications/Rancher Desktop.app/Contents/Resources/resources/scripts/profile 0:~/.profile 2022-12-01T07:03:13.047Z: > limactl shell --workdir=. 0 ip --family inet addr show rd0 4: rd0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 inet 192.168.52.167/21 scope global rd0 valid_lft forever preferred_lft forever 2022-12-01T07:03:13.048Z: Using 192.168.52.167 on bridged network rd0 2022-12-01T07:03:13.112Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-cri-dockerd-HNQjsI/cri-dockerd 0:/tmp/rd-cri-dockerd-HNQjsI.cri-dockerd 2022-12-01T07:03:13.151Z: > limactl shell --workdir=. 0 chmod 755 /tmp/rd-cri-dockerd-HNQjsI.cri-dockerd 2022-12-01T07:03:13.190Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-cri-dockerd-HNQjsI.cri-dockerd /etc/init.d/cri-dockerd 2022-12-01T07:03:13.228Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-cri-dockerd-HNQjsI.cri-dockerd 2022-12-01T07:03:13.287Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-cri-dockerd-lVmAp2/cri-dockerd 0:/tmp/rd-cri-dockerd-lVmAp2.cri-dockerd 2022-12-01T07:03:13.324Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-cri-dockerd-lVmAp2.cri-dockerd 2022-12-01T07:03:13.365Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-cri-dockerd-lVmAp2.cri-dockerd /etc/conf.d/cri-dockerd 2022-12-01T07:03:13.406Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-cri-dockerd-lVmAp2.cri-dockerd 2022-12-01T07:03:13.524Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-k3s-6iiET1/k3s 0:/tmp/rd-k3s-6iiET1.k3s 2022-12-01T07:03:13.564Z: > limactl shell --workdir=. 0 chmod 755 /tmp/rd-k3s-6iiET1.k3s 2022-12-01T07:03:13.605Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-k3s-6iiET1.k3s /etc/init.d/k3s 2022-12-01T07:03:13.659Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-k3s-6iiET1.k3s 2022-12-01T07:03:13.734Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-k3s-rtGiri/k3s 0:/tmp/rd-k3s-rtGiri.k3s 2022-12-01T07:03:13.775Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-k3s-rtGiri.k3s 2022-12-01T07:03:13.824Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-k3s-rtGiri.k3s /etc/conf.d/k3s 2022-12-01T07:03:13.868Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-k3s-rtGiri.k3s 2022-12-01T07:03:13.924Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-k3s-Mmyie1/k3s 0:/tmp/rd-k3s-Mmyie1.k3s 2022-12-01T07:03:13.959Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-k3s-Mmyie1.k3s 2022-12-01T07:03:13.997Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-k3s-Mmyie1.k3s /etc/logrotate.d/k3s 2022-12-01T07:03:14.036Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-k3s-Mmyie1.k3s 2022-12-01T07:03:14.104Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-buildkitd-TnyGYr/buildkitd 0:/tmp/rd-buildkitd-TnyGYr.buildkitd 2022-12-01T07:03:14.146Z: > limactl shell --workdir=. 0 chmod 755 /tmp/rd-buildkitd-TnyGYr.buildkitd 2022-12-01T07:03:14.187Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-buildkitd-TnyGYr.buildkitd /etc/init.d/buildkitd 2022-12-01T07:03:14.229Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-buildkitd-TnyGYr.buildkitd 2022-12-01T07:03:14.287Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-buildkitd-4pU7qR/buildkitd 0:/tmp/rd-buildkitd-4pU7qR.buildkitd 2022-12-01T07:03:14.325Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-buildkitd-4pU7qR.buildkitd 2022-12-01T07:03:14.362Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-buildkitd-4pU7qR.buildkitd /etc/conf.d/buildkitd 2022-12-01T07:03:14.408Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-buildkitd-4pU7qR.buildkitd 2022-12-01T07:03:14.471Z: > limactl shell --workdir=. 0 ip route list eth0 default via 192.168.5.2 dev eth0 metric 202 default via 192.168.205.1 dev rd1 metric 203 default via 192.168.48.1 dev rd0 metric 204 2022-12-01T07:03:14.536Z: > limactl shell --workdir=. 0 sudo mkdir -p /etc/rancher/desktop 2022-12-01T07:03:14.546Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-qemu-binfmt-Qgo09y/qemu-binfmt 0:/tmp/rd-qemu-binfmt-Qgo09y.qemu-binfmt 2022-12-01T07:03:14.562Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-rancher-desktop-guestagent-8pMwmx/rancher-desktop-guestagent 0:/tmp/rd-rancher-desktop-guestagent-8pMwmx.rancher-desktop-guestagent 2022-12-01T07:03:14.564Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-rancher-desktop-guestagent-tyj5Iq/rancher-desktop-guestagent 0:/tmp/rd-rancher-desktop-guestagent-tyj5Iq.rancher-desktop-guestagent 2022-12-01T07:03:14.620Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-qemu-binfmt-Qgo09y.qemu-binfmt 2022-12-01T07:03:14.636Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-rancher-desktop-guestagent-8pMwmx.rancher-desktop-guestagent 2022-12-01T07:03:14.638Z: > limactl shell --workdir=. 0 chmod 755 /tmp/rd-rancher-desktop-guestagent-tyj5Iq.rancher-desktop-guestagent 2022-12-01T07:03:14.689Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-credfwd-se6N3z/credfwd 0:/tmp/rd-credfwd-se6N3z.credfwd 2022-12-01T07:03:14.691Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-qemu-binfmt-Qgo09y.qemu-binfmt /etc/conf.d/qemu-binfmt 2022-12-01T07:03:14.708Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-rancher-desktop-guestagent-8pMwmx.rancher-desktop-guestagent /etc/conf.d/rancher-desktop-guestagent 2022-12-01T07:03:14.716Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-rancher-desktop-guestagent-tyj5Iq.rancher-desktop-guestagent /etc/init.d/rancher-desktop-guestagent 2022-12-01T07:03:14.751Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-credfwd-se6N3z.credfwd 2022-12-01T07:03:14.753Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-qemu-binfmt-Qgo09y.qemu-binfmt 2022-12-01T07:03:14.774Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-rancher-desktop-guestagent-8pMwmx.rancher-desktop-guestagent 2022-12-01T07:03:14.778Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-rancher-desktop-guestagent-tyj5Iq.rancher-desktop-guestagent 2022-12-01T07:03:14.823Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-credfwd-se6N3z.credfwd /etc/rancher/desktop/credfwd 2022-12-01T07:03:14.888Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-credfwd-se6N3z.credfwd 2022-12-01T07:03:14.933Z: > limactl copy /Applications/Rancher Desktop.app/Contents/Resources/resources/linux/internal/rancher-desktop-guestagent 0:./rancher-desktop-guestagent 2022-12-01T07:03:15.029Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-docker-credential-rancher-desktop-BqkJbE/docker-credential-rancher-desktop 0:/tmp/rd-docker-credential-rancher-desktop-BqkJbE.docker-credential-rancher-desktop 2022-12-01T07:03:15.104Z: > limactl shell --workdir=. 0 chmod 755 /tmp/rd-docker-credential-rancher-desktop-BqkJbE.docker-credential-rancher-desktop 2022-12-01T07:03:15.108Z: > limactl shell --workdir=. 0 sudo mv ./rancher-desktop-guestagent /usr/local/bin/rancher-desktop-guestagent 2022-12-01T07:03:15.110Z: > limactl shell --workdir=. 0 sudo /sbin/rc-service qemu-binfmt restart * Caching service dependencies ... [ ok ] * Unregistering QEMU binaries in binfmt misc ... [ ok ] * Registering QEMU binaries in binfmt misc ... [ ok ] 2022-12-01T07:03:15.162Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-docker-credential-rancher-desktop-BqkJbE.docker-credential-rancher-desktop /usr/local/bin/docker-credential-rancher-desktop 2022-12-01T07:03:15.214Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-docker-credential-rancher-desktop-BqkJbE.docker-credential-rancher-desktop 2022-12-01T07:03:15.218Z: > limactl shell --workdir=. 0 sudo /sbin/rc-service rancher-desktop-guestagent restart * Starting Rancher Desktop Guest Agent ... [ ok ] 2022-12-01T07:03:15.284Z: > limactl shell --workdir=. 0 sudo cat /root/.docker/config.json { "auths": { "https://index.docker.io/v1/": {} }, "credsStore": "rancher-desktop" } 2022-12-01T07:03:15.382Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-config.json-xjkv9j/config.json 0:/tmp/rd-config.json-xjkv9j.config.json 2022-12-01T07:03:15.432Z: > limactl shell --workdir=. 0 chmod 644 /tmp/rd-config.json-xjkv9j.config.json 2022-12-01T07:03:15.487Z: > limactl copy /Applications/Rancher Desktop.app/Contents/Resources/resources/linux/internal/trivy 0:./trivy 2022-12-01T07:03:15.494Z: > limactl shell --workdir=. 0 sudo mv /tmp/rd-config.json-xjkv9j.config.json /root/.docker/config.json 2022-12-01T07:03:15.538Z: > limactl shell --workdir=. 0 sudo rm -f /tmp/rd-config.json-xjkv9j.config.json 2022-12-01T07:03:15.672Z: > limactl shell --workdir=. 0 sudo mv ./trivy /usr/local/bin/trivy 2022-12-01T07:03:19.854Z: > limactl shell --workdir=. 0 sudo /bin/sh -c rm -f /usr/local/share/ca-certificates/rd-*.crt 2022-12-01T07:03:19.959Z: > limactl copy /var/folders/k3/d8rtp9qx3cv9qzxt_v9pzjvr0000gn/T/rd-ca-qFdzkR/certs.tar 0:/tmp/certs.tar 2022-12-01T07:03:20.001Z: > limactl shell --workdir=. 0 sudo tar xf /tmp/certs.tar -C /usr/local/share/ca-certificates/ 2022-12-01T07:03:20.104Z: > limactl shell --workdir=. 0 sudo update-ca-certificates WARNING: Skipping duplicate certificate in file ca-cert-rd-100.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-30.pem WARNING: Skipping duplicate certificate in file ca-cert-Hellenic_Academic_and_Research_Institutions_ECC_RootCA_2015.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-130.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-113.pem WARNING: Skipping duplicate certificate in file ca-cert-COMODO_ECC_Certification_Authority.pem WARNING: Skipping duplicate certificate in file ca-cert-QuoVadis_Root_CA_3_G3.pem WARNING: Skipping duplicate certificate in file ca-cert-Actalis_Authentication_Root_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-DigiCert_Global_Root_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-Secure_Global_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-Microsoft_RSA_Root_Certificate_Authority_2017.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-58.pem WARNING: Skipping duplicate certificate in file ca-cert-Entrust_Root_Certification_Authority_-_EC1.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-101.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-50.pem WARNING: Skipping duplicate certificate in file ca-cert-Network_Solutions_Certificate_Authority.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-93.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-40.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-138.pem WARNING: Skipping duplicate certificate in file ca-cert-Amazon_Root_CA_1.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-159.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-135.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-71.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-43.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-146.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-29.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-75.pem WARNING: Skipping duplicate certificate in file ca-cert-T-TeleSec_GlobalRoot_Class_2.pem WARNING: Skipping duplicate certificate in file ca-cert-GDCA_TrustAUTH_R5_ROOT.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-67.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-35.pem WARNING: Skipping duplicate certificate in file ca-cert-Starfield_Services_Root_Certificate_Authority_-_G2.pem WARNING: Skipping duplicate certificate in file ca-cert-OISTE_WISeKey_Global_Root_GC_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-Hongkong_Post_Root_CA_3.pem WARNING: Skipping duplicate certificate in file ca-cert-Buypass_Class_3_Root_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-XRamp_Global_CA_Root.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-24.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-104.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-26.pem WARNING: Skipping duplicate certificate in file ca-cert-Staat_der_Nederlanden_EV_Root_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-certSIGN_Root_CA_G2.pem WARNING: Skipping duplicate certificate in file ca-cert-DigiCert_Trusted_Root_G4.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-64.pem WARNING: Skipping duplicate certificate in file ca-cert-GlobalSign_Root_CA_-_R6.pem WARNING: Skipping duplicate certificate in file ca-cert-DigiCert_Global_Root_G3.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-59.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-106.pem WARNING: Skipping duplicate certificate in file ca-cert-GlobalSign_Root_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-USERTrust_RSA_Certification_Authority.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-65.pem WARNING: Skipping duplicate certificate in file ca-cert-CFCA_EV_ROOT.pem WARNING: Skipping duplicate certificate in file ca-cert-NAVER_Global_Root_Certification_Authority.pem WARNING: Skipping duplicate certificate in file ca-cert-SSL.com_EV_Root_Certification_Authority_ECC.pem WARNING: Skipping duplicate certificate in file ca-cert-TrustCor_RootCert_CA-2.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-13.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-72.pem WARNING: Skipping duplicate certificate in file ca-cert-Izenpe.com.pem WARNING: Skipping duplicate certificate in file ca-cert-Starfield_Root_Certificate_Authority_-_G2.pem WARNING: Skipping duplicate certificate in file ca-cert-SSL.com_Root_Certification_Authority_ECC.pem WARNING: Skipping duplicate certificate in file ca-cert-OISTE_WISeKey_Global_Root_GB_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-62.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-112.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-124.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-126.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-1.pem WARNING: Skipping duplicate certificate in file ca-cert-SwissSign_Silver_CA_-_G2.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-125.pem WARNING: Skipping duplicate certificate in file ca-cert-GlobalSign_Root_CA_-_R3.pem WARNING: Skipping duplicate certificate in file ca-cert-AffirmTrust_Premium.pem WARNING: Skipping duplicate certificate in file ca-cert-certSIGN_ROOT_CA.pem WARNING: ca-certificates.crt does not contain exactly one certificate or CRL: skipping WARNING: Skipping duplicate certificate in file ca-cert-Hongkong_Post_Root_CA_1.pem WARNING: Skipping duplicate certificate in file ca-cert-IdenTrust_Public_Sector_Root_CA_1.pem WARNING: Skipping duplicate certificate in file ca-cert-Comodo_AAA_Services_root.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-34.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-92.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-77.pem WARNING: Skipping duplicate certificate in file ca-cert-Certainly_Root_E1.pem WARNING: Skipping duplicate certificate in file ca-cert-Entrust.net_Premium_2048_Secure_Server_CA.pem WARNING: Skipping duplicate certificate in file ca-cert-AffirmTrust_Networking.pem WARNING: Skipping duplicate certificate in file ca-cert-Amazon_Root_CA_2.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-52.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-143.pem WARNING: Skipping duplicate certificate in file ca-cert-DigiCert_Global_Root_G2.pem WARNING: Skipping duplicate certificate in file ca-cert-ePKI_Root_Certification_Authority.pem WARNING: Skipping duplicate certificate in file ca-cert-QuoVadis_Root_CA_2_G3.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-87.pem WARNING: Skipping duplicate certificate in file ca-cert-Certigna.pem WARNING: Skipping duplicate certificate in file ca-cert-COMODO_RSA_Certification_Authority.pem WARNING: Skipping duplicate certificate in file ca-cert-USERTrust_ECC_Certification_Authority.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-44.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-127.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-53.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-117.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-121.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-151.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-2.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-83.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-123.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-102.pem WARNING: Skipping duplicate certificate in file ca-cert-AffirmTrust_Premium_ECC.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-28.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-140.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-107.pem WARNING: Skipping duplicate certificate in file ca-cert-IdenTrust_Commercial_Root_CA_1.pem WARNING: Skipping duplicate certificate in file ca-cert-COMODO_Certification_Authority.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-147.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-78.pem WARNING: Skipping duplicate certificate in file ca-cert-HARICA_TLS_RSA_Root_CA_2021.pem WARNING: Skipping duplicate certificate in file ca-cert-rd-150.pem 2022-12-01T07:03:20.260Z: > limactl shell --workdir=. 0 sudo /sbin/rc-update --update * Caching service dependencies ... [ ok ] 2022-12-01T07:03:25.780Z: > limactl shell --workdir=. 0 sudo /sbin/rc-service --ifnotstarted k3s start * checkpath: chown: Permission denied * checkpath: chown: Permission denied * /Users/dhanesh/Library/Logs/rancher-desktop/k3s.log: creating file * /Users/dhanesh/Library/Logs/rancher-desktop/k3s.log: correcting owner * /Users/dhanesh/Library/Logs/rancher-desktop/k3s.log: correcting owner unpacking docker.io/rancher/mirrored-metrics-server:v0.6.1 (sha256:efc0293152da945bd5921e9e22017fa0c17e16049c62ad6bdcd3034ab4991d28)...done unpacking docker.io/rancher/mirrored-pause:3.6 (sha256:8d94e670ae981726f56f290339ef7af872b88d84c084773109ea113d863bdaab)...done unpacking docker.io/rancher/klipper-helm:v0.7.3-build20220613 (sha256:b1252b21115f940f784bc66fdf70b30d3621067ecac68db67a84c905e36ceced)...done unpacking docker.io/rancher/klipper-lb:v0.3.5 (sha256:32b374f61ad6a2fd34132683c65ead168ed07871ce1390f28ee6463fcd44530e)...done unpacking docker.io/rancher/local-path-provisioner:v0.0.23 (sha256:7a52e7fb11833b20b65de87db737812db919f8fd16aff25b39e4287d6e2122c4)...done unpacking docker.io/rancher/mirrored-coredns-coredns:1.9.4 (sha256:63d4f8c1288d28cfee8c06ab7c4157b057e2085519b01ad7b3ef3c095017f7dc)...done unpacking docker.io/rancher/mirrored-library-busybox:1.34.1 (sha256:3f48127794a86bd704001b262e035d1c44845de1cadcac22676b4e7f7104f852)...done unpacking docker.io/rancher/mirrored-library-traefik:2.9.4 (sha256:2aed9491d42275b57de932892571e7fa9d7c3336643e6b0068c9e39cff61e7d3)...done * Starting k3s ... [ ok ] 2022-12-01T07:03:51.767Z: > limactl shell --workdir=. 0 ls /etc/rancher/k3s/k3s.yaml /etc/rancher/k3s/k3s.yaml 2022-12-01T07:03:51.811Z: > limactl shell --workdir=. 0 sudo cat /etc/rancher/k3s/k3s.yaml apiVersion: v1 clusters: - cluster: certificate-authority-data: <redacted> server: https://127.0.0.1:6443 name: default contexts: - context: cluster: default user: default name: default current-context: default kind: Config preferences: {} users: - name: default user: client-certificate-data: <redacted> client-key-data: <redacted> 2022-12-01T07:11:51.242Z: Error starting lima: Error: connect ETIMEDOUT 127.0.0.1:6443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1161:16) { errno: -60, code: 'ETIMEDOUT', syscall: 'connect', address: '127.0.0.1', port: 6443 }
1.6.2
1.25.4
containerd (nerdctl)
macOS
macOS Ventura 13.0.1
arm64 (Apple Silicon)
No response
Rancher Desktop uses a modified version of lima, which you can find at https://github.com/rancher-sandbox/lima-and-qemu
Actual Behavior
RD should spin up Lima VM and connect to it after K3s is setup allowing nerdctl to spin up containers on the VM
Steps to Reproduce
Now install lima using
brew install lima
Install lima-gui by downloading it from https://github.com/afbjorklund/lima-guiInstall RD 1.6.2 on MacOS Ventura
Open the lima-gui window and keep refreshing while you do the below step
Start RD until it is setup which due to the issue takes anywhere between 20 - 25 minutes to respond with the below error
All throughout the 20 - 25 mins you'll see no VM getting created but if you do the same through the lima-gui, it creates the VM
Result
RD stating that it is starting the VM
RD moving ahead to deployment of k3s and waiting for services
Lima still not showing an VMs
Successful login to a VM created externally with Lima (but no RD created VM in sight yet)
Expected Behavior
VM created and k3s deployed for containerd and moby
Additional Information
lima.log
Rancher Desktop Version
1.6.2
Rancher Desktop K8s Version
1.25.4
Which container engine are you using?
containerd (nerdctl)
What operating system are you using?
macOS
Operating System / Build Version
macOS Ventura 13.0.1
What CPU architecture are you using?
arm64 (Apple Silicon)
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response