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:
@@ -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)"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user