# QEMU flags shared between various Nix expressions. { qemuNICFlags = nic: net: machine: "-net nic,vlan=${toString nic},macaddr=52:54:00:12:${toString net}:${toString machine},model=virtio " + # Use 232.0.1. as the multicast address to connect VMs on # the same vlan, but allow it to be overriden using the # $QEMU_MCAST_ADDR_ environment variable. The test driver # sets this variable to prevent collisions between parallel # builds. "-net socket,vlan=${toString nic},mcast=" + "\${QEMU_MCAST_ADDR_${toString net}:-232.0.1.${toString net}:1234} "; }