broad-train-31975
12/09/2022, 6:54 PMfast-garage-66093
12/09/2022, 6:57 PMbroad-train-31975
12/09/2022, 7:00 PMthe MAC address should be generated from a static host machine id, and the absolute path name to the VM directory.this will indeed create the same MAC address unless the VM is moved to another directory
fast-garage-66093
12/09/2022, 8:52 PMnetworks
section in lima.yaml
broad-train-31975
12/09/2022, 8:53 PMfast-garage-66093
12/09/2022, 8:54 PMnetworks:
- lima: rancher-desktop-shared
interface: rd1
- lima: rancher-desktop-bridged_en0
interface: rd0
broad-train-31975
12/09/2022, 8:56 PMfast-garage-66093
12/09/2022, 8:57 PMrd1
is always first, so they should have static MAC addresses: https://github.com/rancher-sandbox/rancher-desktop/blob/main/pkg/rancher-desktop/backend/lima.ts#L591-L603lima.yaml
file. But I just realized that if you add additional networks in override.yaml
, then they will be defined first, so take over the index from rd1
(and rd0
). So maybe don't do that (why would you need more network interfaces?) 🙂broad-train-31975
12/09/2022, 8:59 PMfast-garage-66093
12/09/2022, 9:00 PMbroad-train-31975
12/09/2022, 9:00 PMSo maybe don’t do that (why would you need more network interfaces?)I currently don’t, but for testing and other purposes, people might
fast-garage-66093
12/09/2022, 9:01 PMnetworks:
- interface: rd0
macAddress: "11:22:33:44:55:66"
- interface: rd1
macAddress: "..."
broad-train-31975
12/09/2022, 9:05 PMfast-garage-66093
12/09/2022, 9:05 PMrd0
and rd1
broad-train-31975
12/09/2022, 9:07 PMfast-garage-66093
12/09/2022, 9:07 PMrd1
always exists (if you allow sudo), because it is an internal shared network. rd0
is a bridged network, so if you are offline on a laptop, you may not have any external interface with an IPv4 address, in which case rd0
would not be created.broad-train-31975
12/09/2022, 9:08 PMfast-garage-66093
12/09/2022, 9:08 PMrd0
was first, then the MAC address of rd1
would change if rd0
could not be created. This way both MAC addresses are stable (if they exist at all)broad-train-31975
12/09/2022, 9:10 PMfast-garage-66093
12/09/2022, 9:11 PMen0
, but when you are only on wifi you may bridge through en1
.broad-train-31975
12/09/2022, 9:13 PMfast-garage-66093
12/09/2022, 9:13 PMbroad-train-31975
12/09/2022, 9:14 PMfast-garage-66093
12/09/2022, 9:15 PMlima.yaml
, then lima will assign lima0
, lima1
. etc to them. But we could still have used them for the MAC hash, so I don't knowbroad-train-31975
12/09/2022, 9:16 PMfast-garage-66093
12/09/2022, 9:16 PMbroad-train-31975
12/09/2022, 9:16 PMfast-garage-66093
12/09/2022, 9:16 PMmacAddress
if you need tobroad-train-31975
12/09/2022, 9:17 PMmacAddress
?fast-garage-66093
12/09/2022, 9:17 PMoverride.yaml
or default.yaml
lima.yaml
please! 🙂broad-train-31975
12/09/2022, 9:17 PMfast-garage-66093
12/09/2022, 9:18 PMbroad-train-31975
12/09/2022, 9:18 PMfast-garage-66093
12/09/2022, 9:19 PMlima.yaml
is edited by RD, and we cannot guarantee that we won't break your changes. That's part of the reason I created the override.yaml
mechanism to keep user changes separatebroad-train-31975
12/09/2022, 9:19 PMI haven’t tested it, but I also would expect that you can put this intoThat’s exactly where I expected it to be, thank you for confirming!override.yaml
fast-garage-66093
12/09/2022, 9:20 PMbroad-train-31975
12/09/2022, 9:21 PMoverride.yaml
, is it the case?Some settings are simply concatenatedyou probably mean merged with user settings having a higher priority… but I’m nitpicking 🙂
fast-garage-66093
12/09/2022, 9:25 PMoverride
, lima
, default
in that order, and there is no merging because they don't have a shared key.override
instead of creating a new one.override
, then settings in lima
and default
are ignore because it doesn't make sense to combine nameserver listsbroad-train-31975
12/09/2022, 9:29 PMfast-garage-66093
12/09/2022, 9:29 PM