https://rancher.com/ logo
Title
b

better-fountain-25714

08/01/2022, 3:44 PM
I posted before about not being able to run
docker pull xyz
.. i was getting timeouts. it looked like DNS wasn’t happy and i fixed it , but now I’m having a different problem. It looks like
limactl
is talking to a different install of lima.. is that possible? I’m assuming
limactl
using a socket to work similar to
docker
.. I say this because rancher started up a lima vm, which i can see with this
ps aux | grep qemu
shows that vm is listening on
-netdev user,id=net0,net=192.168.5.0/24,dhcpstart=192.168.5.15,hostfwd=tcp:127.0.0.1:54931-:22
when i try to ssh to that it asks for a password. Is this the lima vm ?
the
serial.log
file shows this at the end, which seems wrong
lima-rancher-desktop login:
w

wide-mechanic-33041

08/01/2022, 3:48 PM
you may need to adjust your LIMA_HOME variable as you swap between the two sceanrios
b

better-fountain-25714

08/01/2022, 3:49 PM
if using rancher’s lima.. where is that ?
currently, i was using ~/.lima
looksl ike ~/Library/Application\ Support/rancher-desktop/lima/
w

wide-mechanic-33041

08/01/2022, 3:50 PM
~/Library/Application\ Support/rancher-desktop/lima/0
yup
guessing .lima is superseding what rancher is doing
b

better-fountain-25714

08/01/2022, 3:51 PM
now I’m really confused 🙃 when i change to that, it doenst show anything running
w

wide-mechanic-33041

08/01/2022, 3:51 PM
if you run rdctl shell what happens
b

better-fountain-25714

08/01/2022, 3:52 PM
i shell into
lima-rancher-desktop
what is this voodoo ?
w

wide-mechanic-33041

08/01/2022, 3:52 PM
well thats their app to make some of the background stuff easier
b

better-fountain-25714

08/01/2022, 3:52 PM
and also, thanks for pointing me to that
b

better-fountain-25714

08/01/2022, 3:53 PM
so that the vm .. i dont understand why
limactl ls
doesnt show the vm thats running
w

wide-mechanic-33041

08/01/2022, 3:53 PM
you mean set the env variable?
b

better-fountain-25714

08/01/2022, 3:54 PM
$ echo $LIMA_HOME
~/Library/Application Support/rancher-desktop/lima/_config/0

$ ./limactl ls
WARN[0000] No instance found. Run `limactl start` to create an instance.
NAME    STATUS    SSH    ARCH    CPUS    MEMORY    DISK    DIR
w

wide-mechanic-33041

08/01/2022, 3:55 PM
hmm thinking
b

better-fountain-25714

08/01/2022, 3:55 PM
oh wait..
trying to “fix things” .. i’ve got 2 rancher-desktop installed.. 1.2.1 and 1.3.0 is there a chance there’s a different LIMA_HOME from
1.3.0
?? mabe ~/.rd
hmm, doenst seem like it
rdctl is rancher 1.3.0 rdctl
w

wide-mechanic-33041

08/01/2022, 3:58 PM
so seeing something diff
limactl ls
NAME       STATUS     SSH            ARCH      CPUS    MEMORY    DISK      DIR
default    Stopped    127.0.0.1:0    x86_64    4       4GiB      100GiB
b

better-fountain-25714

08/01/2022, 3:58 PM
what’s your LIMA_HOME ?
w

wide-mechanic-33041

08/01/2022, 3:59 PM
LIMA_HOME=~/Library/Application\ Support/rancher-desktop/lima limactl ls 
NAME    STATUS     SSH                ARCH      CPUS    MEMORY    DISK      DIR
0       Stopped    127.0.0.1:51339    x86_64    2       4GiB      100GiB
now i don’t know if rancher will respect the env var, but I have a ~/.lima and RD seems to find it’s lima config correctly
b

better-fountain-25714

08/01/2022, 4:22 PM
rdctl
- i dont know what exactly its doing but thats what i’ve been looking for for 2 days. thank you @wide-mechanic-33041 for the pointer. i appreciate it
w

wide-mechanic-33041

08/01/2022, 4:44 PM
yeah ideally you shouldn’t need to use limactl directly for RD stuff
b

better-fountain-25714

08/01/2022, 11:56 PM
Agree, but dns entries aren't resolving so would like to change lima.yaml and can't when I don't know where ite coming from