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

VMNetworkAdapter: VLAN not set on VMNetadapter ManagementOS #192

Open
Henry19877 opened this issue Mar 9, 2022 · 0 comments
Open

VMNetworkAdapter: VLAN not set on VMNetadapter ManagementOS #192

Henry19877 opened this issue Mar 9, 2022 · 0 comments
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.

Comments

@Henry19877
Copy link

Henry19877 commented Mar 9, 2022

Details of the scenario you tried and the problem that is occurring

Creating VMNetadapters for management on Managementos in specific VLAN

Verbose logs showing the problem

PS C:\DSC> Start-DscConfiguration -Path 'C:\DSC\HV' -Verbose -wait -Force
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' =
SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =                           root/Microsoft/Windows/DesiredStateConfiguration'.                                                                 VERBOSE: An LCM method call arrived from computer COL-HV-P04 with user sid                                         S-1-5-21-1065709176-4036591731-404806674-500.                                                                      VERBOSE: [COL-HV-P04]: LCM:  [ Start  Set      ]                                                                   VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[WindowsFeature]Resource0::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[WindowsFeature]Resource0::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource0::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' started: Hyper-V                                                                    VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource0::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' succeeded: Hyper-V                                                                  VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[WindowsFeature]Resource0::[WindowsFeatureSet]Hyper-V]  in      0.3280 seconds.                                                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[WindowsFeature]Resource0::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[WindowsFeature]Resource0::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[WindowsFeature]Resource1::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[WindowsFeature]Resource1::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource1::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' started: Failover-Clustering                                                        VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource1::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' succeeded: Failover-Clustering                                                      VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[WindowsFeature]Resource1::[WindowsFeatureSet]Hyper-V]  in      0.3470 seconds.                                                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[WindowsFeature]Resource1::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[WindowsFeature]Resource1::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[WindowsFeature]Resource2::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[WindowsFeature]Resource2::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource2::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' started: Multipath-IO                                                               VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource2::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' succeeded: Multipath-IO                                                             VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[WindowsFeature]Resource2::[WindowsFeatureSet]Hyper-V]  in      0.3600 seconds.                                                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[WindowsFeature]Resource2::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[WindowsFeature]Resource2::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[WindowsFeature]Resource3::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[WindowsFeature]Resource3::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource3::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' started: RSAT-Shielded-VM-Tools                                                     VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource3::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' succeeded: RSAT-Shielded-VM-Tools                                                   VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[WindowsFeature]Resource3::[WindowsFeatureSet]Hyper-V]  in      0.3590 seconds.                                                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[WindowsFeature]Resource3::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[WindowsFeature]Resource3::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[WindowsFeature]Resource4::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[WindowsFeature]Resource4::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource4::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' started: RSAT-Clustering-Powershell                                                 VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource4::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' succeeded: RSAT-Clustering-PowerShell                                               VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[WindowsFeature]Resource4::[WindowsFeatureSet]Hyper-V]  in      0.3440 seconds.                                                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[WindowsFeature]Resource4::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[WindowsFeature]Resource4::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[WindowsFeature]Resource5::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[WindowsFeature]Resource5::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource5::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' started: Hyper-V-PowerShell                                                         VERBOSE: [COL-HV-P04]:                            [[WindowsFeature]Resource5::[WindowsFeatureSet]Hyper-V] The      operation 'Get-WindowsFeature' succeeded: Hyper-V-PowerShell                                                       VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[WindowsFeature]Resource5::[WindowsFeatureSet]Hyper-V]  in      0.3440 seconds.                                                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[WindowsFeature]Resource5::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[WindowsFeature]Resource5::[WindowsFeatureSet]Hyper-V]          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[xRemoteDesktopAdmin]RemoteDesktopSettings]                     VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[xRemoteDesktopAdmin]RemoteDesktopSettings]                     VERBOSE: [COL-HV-P04]:                            [[xRemoteDesktopAdmin]RemoteDesktopSettings] RDP settings are    matching the desired state                                                                                         VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[xRemoteDesktopAdmin]RemoteDesktopSettings]  in 0.0150 seconds. VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[xRemoteDesktopAdmin]RemoteDesktopSettings]                     VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[xRemoteDesktopAdmin]RemoteDesktopSettings]                     VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[Registry]ConsentPromptBehaviorAdmin::[xUac]UAC]                VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[Registry]ConsentPromptBehaviorAdmin::[xUac]UAC]                VERBOSE: [COL-HV-P04]:                            [[Registry]ConsentPromptBehaviorAdmin::[xUac]UAC] Found registry  key value 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin' with type  'DWord' and data '5'                                                                                               VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[Registry]ConsentPromptBehaviorAdmin::[xUac]UAC]  in 0.0470     seconds.                                                                                                           VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[Registry]ConsentPromptBehaviorAdmin::[xUac]UAC]                VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[Registry]ConsentPromptBehaviorAdmin::[xUac]UAC]                VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[Registry]EnableLua::[xUac]UAC]                                 VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[Registry]EnableLua::[xUac]UAC]                                 VERBOSE: [COL-HV-P04]:                            [[Registry]EnableLua::[xUac]UAC] Found registry key value        'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA' with type 'DWord' and data '1'         VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[Registry]EnableLua::[xUac]UAC]  in 0.0470 seconds.             VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[Registry]EnableLua::[xUac]UAC]                                 VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[Registry]EnableLua::[xUac]UAC]                                 VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[Registry]PromptOnSecureDesktop::[xUac]UAC]                     VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[Registry]PromptOnSecureDesktop::[xUac]UAC]                     VERBOSE: [COL-HV-P04]:                            [[Registry]PromptOnSecureDesktop::[xUac]UAC] Found registry key  value 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\PromptOnSecureDesktop' with type 'DWord'    and data '1'                                                                                                       VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[Registry]PromptOnSecureDesktop::[xUac]UAC]  in 0.0310 seconds. VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[Registry]PromptOnSecureDesktop::[xUac]UAC]                     VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[Registry]PromptOnSecureDesktop::[xUac]UAC]                     VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[TimeZone]ServerTime]                                           VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[TimeZone]ServerTime]                                           VERBOSE: [COL-HV-P04]:                            [[TimeZone]ServerTime] Testing the time zone.                    VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[TimeZone]ServerTime]  in 0.0780 seconds.                       VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[TimeZone]ServerTime]                                           VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[TimeZone]ServerTime]                                           VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[Computer]newname]                                              VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[Computer]newname]                                              VERBOSE: [COL-HV-P04]:                            [[Computer]newname] Testing computer state for 'col-hv-p04'.     VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[Computer]newname]  in 0.0000 seconds.                          VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[Computer]newname]                                              VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[Computer]newname]                                              VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[NetAdapterAdvancedProperty]jumbophynet1]                       VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[NetAdapterAdvancedProperty]jumbophynet1]                       VERBOSE: [COL-HV-P04]:                            [[NetAdapterAdvancedProperty]jumbophynet1] Test-TargetResource:  Checking if network adapter exists or not.                                                                         VERBOSE: [COL-HV-P04]:                            [[NetAdapterAdvancedProperty]jumbophynet1] Test-TargetResource:  Checking if adapter SXB1 QR2A Port 1 '*JumboPacket' is in desired state.                                           VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[NetAdapterAdvancedProperty]jumbophynet1]  in 0.0780 seconds.   VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[NetAdapterAdvancedProperty]jumbophynet1]                       VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[NetAdapterAdvancedProperty]jumbophynet1]                       VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[xVMSwitch]ExternalSwitch]                                      VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[xVMSwitch]ExternalSwitch]                                      VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Checking if Switch 'ECP' is          'Present' ...                                                                                                      VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Switch 'ECP' is Present              VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Checking if Switch 'ECP' has correct  NetAdapterInterfaces ...                                                                                          VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Switch 'ECP' has a correct list of   network adapters                                                                                                   VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Checking switch 'ECP'                AllowManagementOS ...                                                                                              VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Switch 'ECP' AllowManagementOS is    correctly set                                                                                                      VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Checking if Switch 'ECP' has correct  LoadBalancingAlgorithm ...                                                                                        VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Switch 'ECP' has correct             LoadBalancingAlgorithm                                                                                             VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Checking if Switch 'ECP' has correct  EnableEmbeddedTeaming ...                                                                                         VERBOSE: [COL-HV-P04]:                            [[xVMSwitch]ExternalSwitch] Switch 'ECP' has correct             EnableEmbeddedTeaming or it does not apply to this OS                                                              VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[xVMSwitch]ExternalSwitch]  in 1.6560 seconds.                  VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[xVMSwitch]ExternalSwitch]                                      VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[xVMSwitch]ExternalSwitch]                                      VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[xVMNetworkAdapter]Managementnet]                               VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[xVMNetworkAdapter]Managementnet]                               VERBOSE: [COL-HV-P04]:                            [[xVMNetworkAdapter]Managementnet] Getting VM Network Adapter    information.                                                                                                       VERBOSE: [COL-HV-P04]:                            [[xVMNetworkAdapter]Managementnet] VM Network Adapter exists     with requested configuration. No action needed.                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[xVMNetworkAdapter]Managementnet]  in 0.3910 seconds.           VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[xVMNetworkAdapter]Managementnet]                               VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[xVMNetworkAdapter]Managementnet]                               VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[xVMNetworkAdapter]Managementnet2]                              VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[xVMNetworkAdapter]Managementnet2]                              VERBOSE: [COL-HV-P04]:                            [[xVMNetworkAdapter]Managementnet2] Getting VM Network Adapter   information.                                                                                                       VERBOSE: [COL-HV-P04]:                            [[xVMNetworkAdapter]Managementnet2] VM Network Adapter exists    with requested configuration. No action needed.                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[xVMNetworkAdapter]Managementnet2]  in 0.2650 seconds.          VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[xVMNetworkAdapter]Managementnet2]                              VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[xVMNetworkAdapter]Managementnet2]                              VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[xVMNetworkAdapter]ClusterAdapter]                              VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[xVMNetworkAdapter]ClusterAdapter]                              VERBOSE: [COL-HV-P04]:                            [[xVMNetworkAdapter]ClusterAdapter] Getting VM Network Adapter   information.                                                                                                       VERBOSE: [COL-HV-P04]:                            [[xVMNetworkAdapter]ClusterAdapter] VM Network Adapter exists    with requested configuration. No action needed.                                                                    VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[xVMNetworkAdapter]ClusterAdapter]  in 0.2500 seconds.          VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[xVMNetworkAdapter]ClusterAdapter]                              VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[xVMNetworkAdapter]ClusterAdapter]                              VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[IPAddress]NewIPv4AddressMGMT]                                  VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[IPAddress]NewIPv4AddressMGMT]                                  VERBOSE: [COL-HV-P04]:                            [[IPAddress]NewIPv4AddressMGMT] Test-TargetResource: Checking    the IP Address.                                                                                                    VERBOSE: [COL-HV-P04]:                            [[IPAddress]NewIPv4AddressMGMT] Test-TargetResource: IP Address  is in desired state.                                                                                               VERBOSE: [COL-HV-P04]:                            [[IPAddress]NewIPv4AddressMGMT] Test-TargetResource: Prefix      Length is in desired state.                                                                                        VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[IPAddress]NewIPv4AddressMGMT]  in 0.0780 seconds.              VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[IPAddress]NewIPv4AddressMGMT]                                  VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[IPAddress]NewIPv4AddressMGMT]                                  VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[DnsServerAddress]PrimaryAndSecondary]                          VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[DnsServerAddress]PrimaryAndSecondary]                          VERBOSE: [COL-HV-P04]:                            [[DnsServerAddress]PrimaryAndSecondary] Test-TargetResource:     Checking the DNS server addresses.                                                                                 VERBOSE: [COL-HV-P04]:                            [[DnsServerAddress]PrimaryAndSecondary]
Get-DnsClientServerStaticAddress: Getting staticly assigned DNS server IPv4 address for interface alias 'vEthernet
 (Management)'.
VERBOSE: [COL-HV-P04]:                            [[DnsServerAddress]PrimaryAndSecondary]
Get-DnsClientServerStaticAddress: Statically assigned DNS server IPv4 address for interface alias 'vEthernet
(Management)' is '10.111.0.231'.
VERBOSE: [COL-HV-P04]:                            [[DnsServerAddress]PrimaryAndSecondary] Test-TargetResource: DNS
 server addresses are set correctly.
VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[DnsServerAddress]PrimaryAndSecondary]  in 0.0940 seconds.
VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[DnsServerAddress]PrimaryAndSecondary]
VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[DnsServerAddress]PrimaryAndSecondary]
VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[DefaultGatewayAddress]SetDefaultGateway]
VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[DefaultGatewayAddress]SetDefaultGateway]
VERBOSE: [COL-HV-P04]:                            [[DefaultGatewayAddress]SetDefaultGateway] Test-TargetResource:
Checking the Default Gateway Address.
VERBOSE: [COL-HV-P04]:                            [[DefaultGatewayAddress]SetDefaultGateway] Test-TargetResource:
Default gateway is correct.
VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[DefaultGatewayAddress]SetDefaultGateway]  in 0.0630 seconds.
VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[DefaultGatewayAddress]SetDefaultGateway]
VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[DefaultGatewayAddress]SetDefaultGateway]
VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[IPAddress]NewIPv4AddressCluster]
VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[IPAddress]NewIPv4AddressCluster]
VERBOSE: [COL-HV-P04]:                            [[IPAddress]NewIPv4AddressCluster] Test-TargetResource: Checking
 the IP Address.
VERBOSE: [COL-HV-P04]:                            [[IPAddress]NewIPv4AddressCluster] Test-TargetResource: IP
Address is in desired state.
VERBOSE: [COL-HV-P04]:                            [[IPAddress]NewIPv4AddressCluster] Test-TargetResource: Prefix
Length is in desired state.
VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[IPAddress]NewIPv4AddressCluster]  in 0.0620 seconds.
VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[IPAddress]NewIPv4AddressCluster]
VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[IPAddress]NewIPv4AddressCluster]
VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[NetAdapterAdvancedProperty]jumbophynet2]
VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[NetAdapterAdvancedProperty]jumbophynet2]
VERBOSE: [COL-HV-P04]:                            [[NetAdapterAdvancedProperty]jumbophynet2] Test-TargetResource:
Checking if network adapter exists or not.
VERBOSE: [COL-HV-P04]:                            [[NetAdapterAdvancedProperty]jumbophynet2] Test-TargetResource:
Checking if adapter SXB1 QR2A Port 2 '*JumboPacket' is in desired state.
VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[NetAdapterAdvancedProperty]jumbophynet2]  in 0.0790 seconds.
VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[NetAdapterAdvancedProperty]jumbophynet2]
VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[NetAdapterAdvancedProperty]jumbophynet2]
VERBOSE: [COL-HV-P04]: LCM:  [ Start  Resource ]  [[NetAdapterAdvancedProperty]jumbovnetcluster]
VERBOSE: [COL-HV-P04]: LCM:  [ Start  Test     ]  [[NetAdapterAdvancedProperty]jumbovnetcluster]
VERBOSE: [COL-HV-P04]:                            [[NetAdapterAdvancedProperty]jumbovnetcluster]
Test-TargetResource: Checking if network adapter exists or not.
VERBOSE: [COL-HV-P04]:                            [[NetAdapterAdvancedProperty]jumbovnetcluster]
Test-TargetResource: Checking if adapter vEthernet (Cluster-NIC) '*JumboPacket' is in desired state.
VERBOSE: [COL-HV-P04]: LCM:  [ End    Test     ]  [[NetAdapterAdvancedProperty]jumbovnetcluster]  in 0.0620
seconds.
VERBOSE: [COL-HV-P04]: LCM:  [ Skip   Set      ]  [[NetAdapterAdvancedProperty]jumbovnetcluster]
VERBOSE: [COL-HV-P04]: LCM:  [ End    Resource ]  [[NetAdapterAdvancedProperty]jumbovnetcluster]
VERBOSE: [COL-HV-P04]: LCM:  [ End    Set      ]
VERBOSE: [COL-HV-P04]: LCM:  [ End    Set      ]    in  5.8480 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 6.375 seconds

Suggested solution to the issue

check module? why vlanid is not set when it is an managementos interface

The DSC configuration that is used to reproduce the issue (as detailed as possible)

xVMNetworkAdapter Managementnet {
            Id = 'Management'
            Name = 'Management'
            VlanId = '10'
            SwitchName = 'switchname'
            VMName = 'ManagementOS'
            Ensure = 'Present'
        }

The operating system the target node is running

OsName : Microsoft Windows Server 2022 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage : en-US
OsMuiLanguages : {en-US}

Version and build of PowerShell the target node is running

Name Value


PSVersion 5.1.20348.320
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.320
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Version of the DSC module that was used

3.17.0

@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels Jun 12, 2022
@johlju johlju changed the title xVMNetworkAdapter: VLAN not set on VMNetadapter ManagementOS VMNetworkAdapter: VLAN not set on VMNetadapter ManagementOS Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants