Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMware TCPIP Optimizations failed #171

Closed
matthias-schlimm opened this issue Jan 4, 2020 · 4 comments
Closed

VMware TCPIP Optimizations failed #171

matthias-schlimm opened this issue Jan 4, 2020 · 4 comments

Comments

@matthias-schlimm
Copy link
Collaborator

@matthias-schlimm matthias-schlimm commented Jan 4, 2020

+ Starting VMWare TCPIP Optimizations
Get-NetAdapter : Der Parametersatz kann mit den angegebenen benannten Parametern nicht aufgelöst werden.
In C:\Program Files (x86)\Base Image Script Framework (BIS-F)\framework\SubCall\Preparation\52_PrepBISF_VMWareTCPIPOptimizations.ps1:321 Zeichen:23
+             if (($netAdapter | Get-NetAdapter).Enabled -eq $false) {
+                                ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (MSFT_NetAdapter...r.edu-bgld.at"):PSObject) [Get-NetAdapter], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Get-NetAdapter
        > RSS Enabled Results:
        >
Name                                            : Ethernet0
InterfaceDescription                            : vmxnet3 Ethernet Adapter
Enabled                                         : True
NumberOfReceiveQueues                           : 2
Profile                                         : Closest
BaseProcessor: [Group:Number]                   : 0:1
MaxProcessor: [Group:Number]                    : 0:3
MaxProcessors                                   : 2
RssProcessorArray: [Group:Number/NUMA Distance] : 0:1/0  0:2/0  0:3/0
IndirectionTable: [Group:Number]                :
        > Configuring TCPAckFrequency...
        > Configuring TCPAckFrequency on the Network Adapters : vmxnet3 Ethernet Adapter
        > TCPAckFrequency was configured.
@matthias-schlimm

This comment has been minimized.

Copy link
Collaborator Author

@matthias-schlimm matthias-schlimm commented Jan 4, 2020

Debuging it with the following script and wait for response

Start-transcript "c:\windows\LOGS\test.log"
Write-Debug "Get-NetAdapter"
Get-NetAdapter

Write-Debug "======================================================"
Write-Debug "Get-NetAdapter | sort -Property InterfaceDescription"
$NetAdapters = Get-NetAdapter | sort -Property InterfaceDescription
Get-NetAdapter | sort -Property InterfaceDescription
Write-Debug "======================================================"
Write-Debug "Running ForEach"
foreach ($netAdapter in $netAdapters) {
	Write-debug "===== Processing $netAdapter ====="
	Write-Debug "$netAdapter | Get-NetAdapter"
	$netAdapter | Get-NetAdapter
	Write-Debug "Check Adapter if enabled or not"
	if ((($netAdapter | Get-NetAdapter).Enabled).Enabled -eq $false) {Write-debug "Adapter $netadapter is NOT enabled“} ELSE {Write-debug "Adapter $netadapter is enabled“}
}

Stop-transcript


@matthias-schlimm

This comment has been minimized.

Copy link
Collaborator Author

@matthias-schlimm matthias-schlimm commented Jan 4, 2020

manually test it on a Win 10 1809 english only and got the same issue

This is related to the script https://github.com/EUCweb/BIS-F/blob/develop/Framework/SubCall/Preparation/52_PrepBISF_VMWareTCPIPOptimizations.ps1

PS C:\Users\Matthias> get-netadapter

Name                      InterfaceDescription                    ifIndex Status       MacAddress             LinkSpeed
----                      --------------------                    ------- ------       ----------             ---------
Ethernet                  Nutanix VirtIO Ethernet Adapter               6 Up           50-6B-8D-B8-A0-9F        10 Gbps


PS C:\Users\Matthias> ("ethernet" | get-netadapter)
Get-NetAdapter : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:15
+ ("ethernet" | get-netadapter)
+               ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (ethernet:String) [Get-NetAdapter], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Get-NetAdapter

I think in line 321 of script 52_PrepBISF_VMWareTCPIPOptimizations.ps1 is the bug

old:
if (($netAdapter | Get-NetAdapter).Enabled -eq $false) {

new:
if (($netAdapter | Get-NetAdapterRSS).Enabled -eq $false) {

@matthias-schlimm matthias-schlimm added this to In progress in 7.1912.1 Jan 5, 2020
@matthias-schlimm

This comment has been minimized.

Copy link
Collaborator Author

@matthias-schlimm matthias-schlimm commented Jan 5, 2020

@matthias-schlimm matthias-schlimm moved this from In progress to Done in 7.1912.1 Jan 5, 2020
@matthias-schlimm

This comment has been minimized.

Copy link
Collaborator Author

@matthias-schlimm matthias-schlimm commented Jan 5, 2020

Transcript output now from customer


	> RSS Enabled Results:
	> 

Name                                            : Ethernet0
InterfaceDescription                            : vmxnet3 Ethernet Adapter
Enabled                                         : True
NumberOfReceiveQueues                           : 1
Profile                                         : Closest
BaseProcessor: [Group:Number]                   : 0:0
MaxProcessor: [Group:Number]                    : 0:0
MaxProcessors                                   : 1
RssProcessorArray: [Group:Number/NUMA Distance] : 0:0/0  
IndirectionTable: [Group:Number]                :
	> Configuring TCPAckFrequency...
	> TCPAckFrequency was already set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
7.1912.1
  
Done
1 participant
You can’t perform that action at this time.