adamant-kite-43734
02/06/2024, 4:55 PMfast-garage-66093
02/06/2024, 5:07 PMrd1
interface instead then; I'm not sure that IPv6 is going to work.sparse-salesclerk-23026
02/06/2024, 5:07 PMsparse-salesclerk-23026
02/06/2024, 5:08 PMfast-garage-66093
02/06/2024, 5:08 PMrd0
interface is a bridged interface to your local LAN, and some networks don't allow multiple IP addresses on a single interfacefast-garage-66093
02/06/2024, 5:08 PMrd1
interface is local to your host, so not routable from outside your machinesparse-salesclerk-23026
02/06/2024, 5:08 PM3: rd1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:55:55:8f:14:e0 brd ff:ff:ff:ff:ff:ff
inet6 fd1e:407f:9b33:4797:5055:55ff:fe8f:14e0/64 scope global dynamic flags 100
valid_lft 2591959sec preferred_lft 604759sec
inet6 fe80::5055:55ff:fe8f:14e0/64 scope link
valid_lft forever preferred_lft forever
sparse-salesclerk-23026
02/06/2024, 5:09 PMfast-garage-66093
02/06/2024, 5:10 PMrd
uses 192.168.206.0/24
sparse-salesclerk-23026
02/06/2024, 5:12 PMis there a conflict with an existing subnetI'm not sure. Do you know how I would check?
sparse-salesclerk-23026
02/06/2024, 5:12 PMinet 192.168.5.15/24
fast-garage-66093
02/06/2024, 5:13 PMsparse-salesclerk-23026
02/06/2024, 5:14 PMfast-garage-66093
02/06/2024, 5:14 PMsparse-salesclerk-23026
02/06/2024, 5:16 PM{"type":"vz","useRosetta":true,"socketVMNet":true,"mount":{"type":"virtiofs","9p":{"securityModel":"none","protocolVersion":"9p2000.L","msizeInKib":128,"cacheMode":"mmap"}},"networkingTunnel":false,"proxy":{"enabled":false,"address":"","password":"","port":3128,"username":"","noproxy":["0.0.0.0/8","10.0.0.0/8","127.0.0.0/8","169.254.0.0/16","172.16.0.0/12","192.168.0.0/16","224.0.0.0/4","240.0.0.0/4"]}}}} -> {}
sparse-salesclerk-23026
02/06/2024, 5:16 PMfast-garage-66093
02/06/2024, 5:17 PMsocket_vmnet
is a separate daemon process that writes logs somewhere elsefast-garage-66093
02/06/2024, 5:18 PM~/Library/Application Support/rancher-desktop/lima/_networks
fast-garage-66093
02/06/2024, 5:18 PMfast-garage-66093
02/06/2024, 5:19 PMsparse-salesclerk-23026
02/06/2024, 5:19 PMsparse-salesclerk-23026
02/06/2024, 5:21 PM❯ ls -al
total 8
drwxr-xr-x@ 8 jjolley staff 256 Feb 6 09:10 .
drwxr-xr-x@ 5 jjolley staff 160 Feb 5 15:21 ..
-rw-r--r--@ 1 jjolley staff 0 Feb 6 09:10 rancher-desktop-bridged_en0_socket_vmnet.stderr.log
-rw-r--r--@ 1 jjolley staff 0 Feb 6 09:10 rancher-desktop-bridged_en0_socket_vmnet.stdout.log
-rw-r--r--@ 1 jjolley staff 0 Feb 6 08:50 rancher-desktop-bridged_en7_socket_vmnet.stderr.log
-rw-r--r--@ 1 jjolley staff 294 Feb 6 08:56 rancher-desktop-bridged_en7_socket_vmnet.stdout.log
-rw-r--r--@ 1 jjolley staff 0 Feb 6 09:10 rancher-desktop-shared_socket_vmnet.stderr.log
-rw-r--r--@ 1 jjolley staff 0 Feb 6 09:10 rancher-desktop-shared_socket_vmnet.stdout.log
~/Library/Application Support/rancher-desktop/lima/_networks
❯ cat rancher-desktop-bridged_en7_socket_vmnet.stdout.log
Initializing vmnet.framework (mode 1002)
Using network interface "en7"
* vmnet_mtu: 1500
* vmnet_interface_id: 6639729A-D67B-4FE8-92CC-F0C6B0665FCC
* vmnet_max_packet_size: 1514
* vmnet_mac_address: 36:40:45:db:0a:72
Accepted a connection (fd 6)
Closing a connection (fd 6)
Received signal 15
sparse-salesclerk-23026
02/06/2024, 5:21 PMfast-garage-66093
02/06/2024, 5:24 PMsignal 15
, but that can happen when Rancher Desktop stopssparse-salesclerk-23026
02/06/2024, 5:24 PMsparse-salesclerk-23026
02/06/2024, 5:24 PMfast-garage-66093
02/06/2024, 5:25 PMfast-garage-66093
02/06/2024, 5:26 PMsparse-salesclerk-23026
02/06/2024, 5:26 PMfast-garage-66093
02/06/2024, 5:27 PMsparse-salesclerk-23026
02/06/2024, 5:27 PMsparse-salesclerk-23026
02/06/2024, 5:27 PMfast-garage-66093
02/06/2024, 5:30 PMnetstat -rn | grep 192.168.2
and see if it shows any routes in the 192.168.205.0/24
subnet (I wrote 206
above, which was a mistake)sparse-salesclerk-23026
02/06/2024, 5:41 PM# Before connecting to VPN
~/Library/Application Support/rancher-desktop/lima/_networks
❯ netstat -rn | grep 192.168.2
# After connecting to VPN
~/Library/Application Support/rancher-desktop/lima/_networks
❯ netstat -rn | grep 192.168.2
# After disconnecting from VPN and starting rancher-desktop
❯ netstat -rn | grep 192.168.2
192.168.205 link#24 UC bridge100 !
192.168.205.1 5e.e9.1e.e7.a4.64 UHLWIi lo0
192.168.205.255 ff.ff.ff.ff.ff.ff UHLWbI bridge100 !
sparse-salesclerk-23026
02/06/2024, 5:42 PM❯ rdctl shell ip a show rd0
4: rd0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:55:55:f4:41:2b brd ff:ff:ff:ff:ff:ff
inet6 fe80::5055:55ff:fef4:412b/64 scope link
valid_lft forever preferred_lft forever
~/Library/Application Support/rancher-desktop/lima/_networks
❯ rdctl shell ip a show rd1
3: rd1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:55:55:8f:14:e0 brd ff:ff:ff:ff:ff:ff
inet6 fd1e:407f:9b33:4797:5055:55ff:fe8f:14e0/64 scope global dynamic flags 100
valid_lft 2591994sec preferred_lft 604794sec
inet6 fe80::5055:55ff:fe8f:14e0/64 scope link
valid_lft forever preferred_lft forever
fast-garage-66093
02/06/2024, 5:42 PMrd1
?sparse-salesclerk-23026
02/06/2024, 5:43 PMfast-garage-66093
02/06/2024, 5:43 PMfast-garage-66093
02/06/2024, 5:43 PMsparse-salesclerk-23026
02/06/2024, 5:44 PMsparse-salesclerk-23026
02/06/2024, 5:44 PMfast-garage-66093
02/06/2024, 7:09 PM/var/db/dhcpd_leases
and check if you have any entries from name=lima-0
in there.fast-garage-66093
02/06/2024, 7:10 PMfast-garage-66093
02/06/2024, 7:13 PMsparse-salesclerk-23026
02/13/2024, 6:52 PMquaint-memory-32205
02/14/2024, 12:54 PMquaint-memory-32205
02/14/2024, 12:55 PMfast-garage-66093
02/14/2024, 4:57 PMquaint-memory-32205
02/14/2024, 6:39 PMTESTCONTAINERS_HOST_OVERRIDE
to the IP it was set before which worked.
I then did a factory-reset
to see if it helps. But since then the "hack" also doesn't work anymore.
I checked with some users in our company and got mixed results. For users that run 14.3 it still seems to work. With some users running 14.3.1 also. But some users running 14.3.1 also have the same issue.
$ rdctl shell ip a show vznat
3: vznat: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:55:55:c0:20:94 brd ff:ff:ff:ff:ff:ff
inet6 fdd0:fddf:f57b:2dc5:5055:55ff:fec0:2094/64 scope global dynamic flags 100
valid_lft 2591972sec preferred_lft 604772sec
inet6 fe80::5055:55ff:fec0:2094/64 scope link
valid_lft forever preferred_lft forever
$ cat /var/db/dhcpd_leases
{
name=lima-0
ip_address=192.168.205.2
hw_address=1,52:55:55:c0:20:94
identifier=1,52:55:55:c0:20:94
lease=0x65cdf9a4
}
{
name=lima-0
ip_address=192.168.106.3
hw_address=1,52:55:55:c0:20:94
identifier=1,52:55:55:c0:20:94
lease=0x65b7d515
}
{
name=colima
ip_address=192.168.106.2
hw_address=1,52:55:55:e4:8a:8f
identifier=1,52:55:55:e4:8a:8f
lease=0x658d806d
}
fast-garage-66093
02/14/2024, 6:43 PMfast-garage-66093
02/14/2024, 6:45 PMcolima
, does it have the same issue?quaint-memory-32205
02/14/2024, 6:47 PMrdctl shell ip a show vznat
?fast-garage-66093
02/14/2024, 6:47 PMcolima
? I don't know, but I'll try to find out 🙂fast-garage-66093
02/14/2024, 6:49 PM{
name=lima-0
ip_address=192.168.106.3
hw_address=1,52:55:55:c0:20:94
identifier=1,52:55:55:c0:20:94
lease=0x65b7d515
}
fast-garage-66093
02/14/2024, 6:51 PMhost
subnet (which isn't used by Rancher Desktop, but would also be in the 192.168.206.0/24
range if it was used via Rancher Desktop
).fast-garage-66093
02/14/2024, 6:56 PMcolima
with colima start --network-address
to get a routable network address. You can then check the address with:
$ colima ssh ip a show col0
3: col0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 52:55:55:88:a5:c7 brd ff:ff:ff:ff:ff:ff
altname enp0s3
inet 192.168.106.3/24 metric 100 brd 192.168.106.255 scope global dynamic col0
valid_lft 86366sec preferred_lft 86366sec
inet6 fd41:7e08:f19:ac03:5055:55ff:fe88:a5c7/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 2591985sec preferred_lft 604785sec
inet6 fe80::5055:55ff:fe88:a5c7/64 scope link
valid_lft forever preferred_lft forever
fast-garage-66093
02/14/2024, 6:57 PMhost
network address that was also in your leases file: 192.168.106.3
fast-garage-66093
02/14/2024, 6:58 PMfast-garage-66093
02/14/2024, 6:58 PMcolima
right now, so I'm curious if you have the same IPv4 issue with colima
on this machine.quaint-memory-32205
02/14/2024, 6:59 PM$ colima ssh ip a show col0
3: col0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 52:55:55:e4:8a:8f brd ff:ff:ff:ff:ff:ff
altname enp0s3
inet6 fdae:811c:424c:a982:5055:55ff:fee4:8a8f/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 2591988sec preferred_lft 604788sec
inet6 fe80::5055:55ff:fee4:8a8f/64 scope link
valid_lft forever preferred_lft forever
fast-garage-66093
02/14/2024, 7:06 PM~/Library/Application\ Support/rancher-desktop/lima/0/serial.log
to see if there are any errors from DHCP in there?fast-garage-66093
02/14/2024, 7:11 PM~/.lima/colima/serial*.log
fast-garage-66093
02/14/2024, 7:12 PM* eth0 ...udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.5.15, server 192.168.5.2
udhcpc: lease of 192.168.5.15 obtained from 192.168.5.2, lease time 86400
[ ok ]
* rd1 ...udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.205.2, server 192.168.205.1
udhcpc: lease of 192.168.205.2 obtained from 192.168.205.1, lease time 86400
[ ok ]
* rd0 ...udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.18.119, server 192.168.17.1
udhcpc: lease of 192.168.18.119 obtained from 192.168.17.1, lease time 86400
[ ok ]
fast-garage-66093
02/14/2024, 7:16 PMcolima
log location was for an older version; it is now at ~/.colima/_lima/colima/serial.log
and looks different because colima
switched to Ubuntu and cloud-initfast-garage-66093
02/14/2024, 7:17 PMquaint-memory-32205
02/14/2024, 7:18 PM~/Library/Application\ Support/rancher-desktop/lima/0/serial.log
quaint-memory-32205
02/14/2024, 7:18 PM$ colima --version
colima version 0.6.8
fast-garage-66093
02/14/2024, 7:20 PMfast-garage-66093
02/14/2024, 7:21 PM~/Library/Application Support/rancher-desktop/lima/_networks
and check if any are non-emptyquaint-memory-32205
02/14/2024, 7:22 PMrdctl start --experimental.virtual-machine.type qemu
fast-garage-66093
02/14/2024, 7:22 PMquaint-memory-32205
02/14/2024, 7:23 PMfast-garage-66093
02/14/2024, 7:23 PMfast-garage-66093
02/14/2024, 7:27 PMfast-garage-66093
02/14/2024, 7:28 PMserialp.log
. I need to figure out why these are not using consistent namesquaint-memory-32205
02/14/2024, 7:30 PMquaint-memory-32205
02/14/2024, 7:31 PMudhcpc
* Starting networking ... * lo ... [ ok ]
* eth0 ...udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.5.15, server 192.168.5.2
udhcpc: lease of 192.168.5.15 obtained from 192.168.5.2, lease time 86400
fast-garage-66093
02/14/2024, 7:32 PMquaint-memory-32205
02/14/2024, 7:35 PM* Starting networking ... * lo ... [ ok ]
* eth0 ...udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.5.15, server 192.168.5.2
udhcpc: lease of 192.168.5.15 obtained from 192.168.5.2, lease time 86400
[ ok ]
* rd1 ...udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc failed to get a DHCP lease
udhcpc: no lease, forking to background
[ ok ]
* rd0 ...udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.178.118, server 192.168.178.1
udhcpc: lease of 192.168.178.118 obtained from 192.168.178.1, lease time 864000
fast-garage-66093
02/14/2024, 7:36 PMrd0
but not for rd1
now?quaint-memory-32205
02/14/2024, 7:37 PM$ rdctl shell ip a show rd0
4: rd0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:55:55:0b:1c:1a brd ff:ff:ff:ff:ff:ff
inet 192.168.178.118/24 brd 192.168.178.255 scope global rd0
valid_lft forever preferred_lft forever
inet6 fe80::5055:55ff:fe0b:1c1a/64 scope link
valid_lft forever preferred_lft forever
fast-garage-66093
02/14/2024, 7:38 PMrd1
is only used when rd0
doesn't have an address.fast-garage-66093
02/14/2024, 7:42 PMquaint-memory-32205
02/14/2024, 7:44 PMfast-garage-66093
02/15/2024, 2:21 AM/etc/bootpd.plist
(or share it with me) to see if there is something interesting there on the machines that don't support IPv4?fast-garage-66093
02/15/2024, 2:22 AM/etc/bootpd.plist
on macOS, not the VM.quaint-memory-32205
02/15/2024, 7:47 AM<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "<http://www.apple.com/DTDs/PropertyList-1.0.dtd>">
<plist version="1.0">
<dict>
<key>Subnets</key>
<array>
<dict>
<key>_creator</key>
<string>com.apple.NetworkSharing</string>
<key>allocate</key>
<true/>
<key>dhcp_domain_name_server</key>
<array>
<string>192.168.205.1</string>
</array>
<key>dhcp_router</key>
<string>192.168.205.1</string>
<key>interface</key>
<string>bridge100</string>
<key>lease_max</key>
<integer>86400</integer>
<key>lease_min</key>
<integer>86400</integer>
<key>name</key>
<string>192.168.205/24</string>
<key>net_address</key>
<string>192.168.205.0</string>
<key>net_mask</key>
<string>255.255.255.0</string>
<key>net_range</key>
<array>
<string>192.168.205.2</string>
<string>192.168.205.254</string>
</array>
</dict>
</array>
<key>bootp_enabled</key>
<false/>
<key>detect_other_dhcp_server</key>
<array>
<string>bridge100</string>
</array>
<key>dhcp_enabled</key>
<array>
<string>bridge100</string>
</array>
<key>dhcp_ignore_client_identifier</key>
<true/>
<key>ignore_allow_deny</key>
<array>
<string>bridge100</string>
</array>
<key>use_server_config_for_dhcp_options</key>
<true/>
</dict>
</plist>
fast-garage-66093
02/15/2024, 7:49 AMquaint-memory-32205
02/15/2024, 7:52 AMrdctl shell ip a show rd0
returned 192.168.205.2
which is in
<key>net_range</key>
<array>
<string>192.168.205.2</string>
<string>192.168.205.254</string>
</array>
Now I get 192.168.178.118
fast-garage-66093
02/15/2024, 7:54 AM192.168.205.2
is from the "shared" network subnet which would be used by rd1
. 192.168.178.118
should be from your local LAN DHCPfast-garage-66093
02/15/2024, 7:56 AMfast-garage-66093
02/15/2024, 7:56 AMfast-garage-66093
02/15/2024, 7:57 AMquaint-memory-32205
02/15/2024, 7:59 AM192.168.205.2
was from rd1
. Sorry but I'm not very experienced with the network stuff. what is the difference between rd0 and rd1?fast-garage-66093
02/15/2024, 8:00 AMrd0
is a bridged network and rd1
is a local shared network with a NAT gateway. We only defined rd1
because rd0
sometimes doesn't get an IPv4 address. E.g. some networks don't allow multiple IP addresses on a single MAC address.fast-garage-66093
02/15/2024, 8:01 AMquaint-memory-32205
02/15/2024, 8:02 AMfast-garage-66093
02/15/2024, 8:02 AM192.168.205.0/24
instead of 192.168.105.0/24
for the shared network to be separate from other Lima instancesfast-garage-66093
02/15/2024, 8:04 AMrd0
to not get an IP address. But you should always get one for rd1
(or for vznat
when using VZ).fast-garage-66093
02/15/2024, 8:05 AMfast-garage-66093
02/15/2024, 8:07 AMfast-garage-66093
02/15/2024, 8:08 AMquaint-memory-32205
02/15/2024, 8:09 AM