Git Product home page Git Product logo

Comments (9)

jaromirk avatar jaromirk commented on September 22, 2024 1

You are overcomplicating it :) ... Here is the example you need https://github.com/microsoft/MSLab/blob/master/Scenarios/AzSHCI%20and%20NetATC/LabConfig.ps1

from mslab.

jaromirk avatar jaromirk commented on September 22, 2024 1

can you include entire config pls?

from mslab.

Karl-WE avatar Karl-WE commented on September 22, 2024

Log output
Node 1
Adding Adapter SMB1 with IP 172.16.1.1
Success
Adding Adapter SMB2 with IP 172.16.2.1
Success
Adding Adapter SMB1 with IP 172.16.1.1
Success
Adding Adapter SMB2 with IP 172.16.2.1

Node 2
Configuring Additional networks
Adding Adapter SMB1 with IP 172.16.1.2
Success
Adding Adapter SMB2 with IP 172.16.2.2
Success
Adding Adapter SMB1 with IP 172.16.1.2
Success
Adding Adapter SMB2 with IP 172.16.2.2
Success

Logfile
Deploy.log

from mslab.

Karl-WE avatar Karl-WE commented on September 22, 2024

Why do I consider this to be a problem?

  1. why the MSLab is creating 2 SMB NICs on each node, trying to assign the same IP Address (which will fail and leaving the second without any -> APIPA)

  2. The IP and Netadapter Name assignment does not follow a predictable pattern and is not even the same on Node 1 and Node 2, so following Lab scripts would fail, when trying to use these template lab VMs with https://github.com/DellGEOS/AzureStackHOLs/blob/main/lab-guides/08-DeployAzureStackHCICluster-DeploymentTool, Task 5 Step 2

While of course altering the config in this step, to reflect the separate storage networks. In the default the scenario is fully converged.

"HostNetwork": {
                    "Intents": [
                        {
                            "Name": "Compute_Management",
                            "TrafficType": [
                                "Compute",
                                "Management"
                            ],
                            "Adapter": [
                                "Ethernet",
                                "Ethernet 2"
                            ],
                            "OverrideVirtualSwitchConfiguration": false,
                            "VirtualSwitchConfigurationOverrides": {
                                "EnableIov": "",
                                "LoadBalancingAlgorithm": ""
                            },
                            "OverrideQoSPolicy": false,
                            "QoSPolicyOverrides": {
                                "PriorityValue8021Action_Cluster": "",
                                "PriorityValue8021Action_SMB": "",
                                "BandwidthPercentage_SMB": ""
                            },
                            "OverrideAdapterProperty": true,
                            "AdapterPropertyOverrides": {
                                "NetworkDirect": "0",
                            }
                        }
{
                            "Name": "Storage",
                            "TrafficType": [
                                "Storage"
                            ],
                            "Adapter": [
                                "Ethernet 3",
                                "Ethernet 4"
                            ],
                            "OverrideVirtualSwitchConfiguration": false,
                            "VirtualSwitchConfigurationOverrides": {
                                "EnableIov": "",
                                "LoadBalancingAlgorithm": ""
                            },
                            "OverrideQoSPolicy": false,
                            "QoSPolicyOverrides": {
                                "PriorityValue8021Action_Cluster": "",
                                "PriorityValue8021Action_SMB": "",
                                "BandwidthPercentage_SMB": ""
                            },
                            "OverrideAdapterProperty": true,
                            "AdapterPropertyOverrides": {
                                "NetworkDirect": "0",
                            }
                        }
                    ],
                    "StorageNetworks": [
                        {
                            "Name": "SMB1",
                            "NetworkAdapterName": "Ethernet 3",
                            "VlanId": 711
                        },
                        {
                            "Name": "SMB2",
                            "NetworkAdapterName": "Ethernet 4",
                            "VlanId": 712
                        }
                    ]

from mslab.

Karl-WE avatar Karl-WE commented on September 22, 2024

Thank you for the hint. Also that I have learned about the min of 4 vCores for RSS. Interesting. Have not read about it in the docs.

Could you be bothered to look into the reported issue, as it should be reproducible and I believe there is a problem with the counter in the loop or the order when things are created.

Thank you, it will help not only my scenario.

The NetATC scenario might not be fitting or I need to combine it with the one using Microsoft cloud deployment kit.

I will give it a try today.

from mslab.

Karl-WE avatar Karl-WE commented on September 22, 2024

"Your labconfig is wrong. You kept additional networks in 1..2 loop. It has to be separate."

1..2 | ForEach-Object {$LABConfig.VMs += @{ VMName = "ASNode$_" ; Configuration = 'S2D' ; ParentVHD = 'AzSHCI22H2_G2.vhdx' ; SSDNumber = 5 ; SSDSize= 2TB ; MemoryStartupBytes= 6144MB; VMProcessorCount=12 ; vTPM=$true ; Unattend="NoDjoin" ; NestedVirt=$true ; AdditionalNetworks=$true }}
#region additional networks
    
$LABConfig.AdditionalNetworksConfig += @{ 
                NetName = 'SMB1';                            # Network Name
                NetAddress='172.16.1.';                      # Network Addresses prefix. (starts with 1), therefore first VM with Additional network config will have IP 172.16.1.1
                NetVLAN='711';                                 # VLAN tagging
                Subnet='255.255.255.0'                       # Subnet Mask
        }
    
$LABConfig.AdditionalNetworksConfig += @{ 
                NetName = 'SMB2';                        # Network Name
                NetAddress='172.16.2.';                      # Network Addresses prefix. (starts with 1), therefore first VM with Additional network config will have IP 172.16.1.1
                NetVLAN='712';                                 # VLAN tagging
                Subnet='255.255.255.0'                       # Subnet Mask
        }
    
    #endregion additional networks

like that?

from mslab.

jaromirk avatar jaromirk commented on September 22, 2024

I need to get into PC :). Ill send you example and will test it. I think it's wrong. Need to validate. :). Here is scenario where I use it. https://github.com/microsoft/MSLab/blob/master/Scenarios/AzSHCI%20and%20Stretch%20Cluster/LabConfig.ps1

from mslab.

Karl-WE avatar Karl-WE commented on September 22, 2024

Hi Jaromir,
putting the additional network configs outside the for each loop did the trick, well partly*, and solves the problem (Layer 8) of duplicate NICs.

*Still the order of NetworkAdapter name and IP does not match on both nodes, which would cause subsequent problems for scenarios, MS Cloud Deployment Toolkit and eventually even NetworkATC.

image

image

I really wonder where this comes from, the cause must be in the order how NICs are added to the VM

Expected order with increasing MAC Addresses
Node 1

26 = Ethernet, Management 1, IP 10.0.0.12
27 = Ethernet #2, Management 2, IP 10.0.0.13
28 = Ethernet #3, IP 172.16.1.1
29 = Ethernet #4, IP 172.16.2.1


Node 2
2A = Ethernet, Management 1, IP 10.0.0.14
2B = Ethernet #2, Management 2, IP 10.0.0.15
2C = Ethernet #3, SMB 1, IP 172.16.1.2
2D = Ethernet #4, SMB 2, IP 172.16.2.2

LabConfig.zip

Watch out on the screenshot i Node 2 is left Node 1 is on the right.

from mslab.

Karl-WE avatar Karl-WE commented on September 22, 2024

@jaromirk know you are busy. Have you had any time to understand what is happening?

from mslab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.