adamant-kite-43734
12/09/2022, 6:54 PMfast-garage-66093
12/09/2022, 6:57 PMfast-garage-66093
12/09/2022, 6:58 PMfast-garage-66093
12/09/2022, 6:59 PMfast-garage-66093
12/09/2022, 7:00 PMbroad-train-31975
12/09/2022, 7:00 PMbroad-train-31975
12/09/2022, 7:01 PMbroad-train-31975
12/09/2022, 7:02 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
broad-train-31975
12/09/2022, 7:19 PMfast-garage-66093
12/09/2022, 8:52 PMnetworks section in lima.yamlfast-garage-66093
12/09/2022, 8:53 PMbroad-train-31975
12/09/2022, 8:53 PMbroad-train-31975
12/09/2022, 8:54 PMfast-garage-66093
12/09/2022, 8:54 PMnetworks:
- lima: rancher-desktop-shared
interface: rd1
- lima: rancher-desktop-bridged_en0
interface: rd0fast-garage-66093
12/09/2022, 8:55 PMbroad-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-L603fast-garage-66093
12/09/2022, 8:59 PMlima.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
broad-train-31975
12/09/2022, 9:01 PMfast-garage-66093
12/09/2022, 9:01 PMfast-garage-66093
12/09/2022, 9:05 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 rd1broad-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 PMfast-garage-66093
12/09/2022, 9:12 PMen0, but when you are only on wifi you may bridge through en1.fast-garage-66093
12/09/2022, 9:13 PMbroad-train-31975
12/09/2022, 9:13 PMfast-garage-66093
12/09/2022, 9:13 PMbroad-train-31975
12/09/2022, 9:14 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.yamlfast-garage-66093
12/09/2022, 9:17 PMlima.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 PMfast-garage-66093
12/09/2022, 9:20 PMbroad-train-31975
12/09/2022, 9:21 PMoverride.yaml, is it the case?broad-train-31975
12/09/2022, 9:22 PMSome 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.fast-garage-66093
12/09/2022, 9:26 PMoverride instead of creating a new one.fast-garage-66093
12/09/2022, 9:27 PMoverride, then settings in lima and default are ignore because it doesn't make sense to combine nameserver listsfast-garage-66093
12/09/2022, 9:28 PMbroad-train-31975
12/09/2022, 9:29 PMfast-garage-66093
12/09/2022, 9:29 PM