File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2222 "path": "sysprep/sysprep_uninstall.ps1"
2323 },
2424 "releaseNotes": [
25+ "3.27.0 - Update instance_setup.ps1 to only disable LSO for GVNIC for driver versions less than 2.0 (GQ)"
2526 "3.26.0 - Updated activate_instance.ps1 to to support Server 2025",
2627 "3.25.0 - Updated instance_setup.ps1 to 169.254.169.254 instead of metadata.google.internal",
2728 "3.24.0 - Updating activate_instance.ps1 to detect PAYG licenses.",
Original file line number Diff line number Diff line change @@ -139,6 +139,12 @@ function Change-InstanceProperties {
139139 $interface = $gvnic
140140 Write-Log ' gVNIC network adapter detected.'
141141
142+ $gvnicVersion = " 0.0"
143+ $gvnicDriver = " $env: SystemRoot \System32\drivers\gvnic.sys"
144+ if (Test-Path $gvnicDriver ) {
145+ $gvnicVersion = (Get-Item $gvnicDriver ).VersionInfo.FileVersion
146+ }
147+
142148 # Disable IPv4 Large Send Offload (LSO) on Win 10, 11, and server 2022.
143149 $productMajorVersion = [Environment ]::OSVersion.Version.Major
144150 $productMinorVersion = [Environment ]::OSVersion.Version.Minor
@@ -147,7 +153,7 @@ function Change-InstanceProperties {
147153
148154 $isWin10ClientOrLater = ($productMajorVersion -eq 10 -and $productMinorVersion -eq 0 -and $productBuildNumber -ge 10240 -and $productType -notmatch ' server' )
149155 $isWinServer2022OrLater = ($productMajorVersion -eq 10 -and $productMinorVersion -eq 0 -and $productBuildNumber -gt 17763 -and $productType -match ' server' )
150- if ($isWin10ClientOrLater -or $isWinServer2022OrLater ) {
156+ if (( $isWin10ClientOrLater -or $isWinServer2022OrLater ) -and $gvnicVersion -lt 2.0 ) {
151157 Write-Log ' Disabling GVNIC IPv4 Large Send Offload (LSO)'
152158 Set-NetAdapterAdvancedProperty - InterfaceDescription ' Google Ethernet Adapter' - RegistryKeyword ' *LSOV2Ipv4' - RegistryValue 0
153159
You can’t perform that action at this time.
0 commit comments