Fix MAC generator (5 octets) and silence the discoverability flyout

QEMU rejects a five-byte ethernet address, so every VM would have failed
to start with 'invalid ethernet address'. Caught by booting the installer
against a scratch disk with user-mode networking: the unattended file was
picked up, image index 2 copied, and once=d handed off to the disk.
This commit is contained in:
2026-10-21 19:00:46 -04:00
parent c66b5641b6
commit a38acd3946
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -31,6 +31,11 @@ if (-not $nic) {
Set-DnsClientServerAddress -InterfaceIndex $nic.ifIndex -ServerAddresses $Config.DNS
Set-NetConnectionProfile -InterfaceIndex $nic.ifIndex -NetworkCategory Private -ErrorAction SilentlyContinue
# The IP change re-triggers the "make this PC discoverable" flyout.
New-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Network' -Force | Out-Null
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Network' `
-Name NewNetworkWindowOff -Value 1 -Type DWord
Write-Host "bootstrap: $($nic.Name) -> $($Config.IP)/$($Config.Prefix)"
}