-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Mon, Apr 22, 2024 at 07:20:08PM -0000, qubist wrote: > Hi, > > Which particular code is responsible for ensuring that 2 or more VMs > can never have the same IP (or IPv6) address?
They are generated by default based on qubes VM ID (qid)[1], which are unique. You can see it on `qvm-ls -O name,qid,ip`. But you can also set the IP explicitly (via qvm-prefs), and then it's up to you to avoid conflicts. BTW, it's also possible hide VM's "real" IP from the VM itself using a bit of NAT magic. You can set it with `qvm-features VMNAME net.fake-ip 1.2.3.4` (or any other IP). See qvm-features man page for details. The VM will see own address as 1.2.3.4. Address set this way does not need to be unique - you can have a set of VMs that all think they have the same IP (but still, the address set in the "ip" property needs to be unique). [1] https://github.com/QubesOS/qubes-core-admin/blob/main/qubes/vm/mix/net.py#L192 - -- Best Regards, Marek Marczykowski-Górecki Invisible Things Lab -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmYmu+EACgkQ24/THMrX 1yzM1QgAio17EE6Vyh2Q5cbbbWewEcKzslW7WugCHlciSr9Z7BU2JWnDv6lLvvp3 4u1wXpkWHK8Ug90MTwzoOykX7f7hHBxtZBu5Z0iewKzKzZiMNBhPIGE6lcdva8Dx Arl+wdoXN+DPjhAxkC/DRlMHA6gKSNEZSQXw8G2cjpxTGVpp/Gpjmt9R08EFFlbh MR9RLPxT/nugz5nhKl2TTdsko+pC2FZlBGpk6czVErkbE24iAnyxG6gr1WX3/qk1 chXi3BOSQgNUUp52tc3BXPhgOcCFfwLLkxKN/IEjSXl8D7fkvinTpvHs1Kyzs/9x zyT5JTduRDmIYHGNQ+rYsBQH7cUmEg== =HCu4 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "qubes-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-devel/Zia74U6xixfKfR9D%40mail-itl.