Comments (9)
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.
can you include entire config pls?
from mslab.
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.
Why do I consider this to be a problem?
-
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)
-
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.
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.
"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.
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.
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.
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
Watch out on the screenshot i Node 2 is left Node 1 is on the right.
from mslab.
@jaromirk know you are busy. Have you had any time to understand what is happening?
from mslab.
Related Issues (20)
- Get-VM : Cannot validate argument on parameter 'Id' HOT 2
- Deploy VMM to Management Machine? HOT 2
- DownloadLatestCUs not working for Windows 10 HOT 2
- Adding support for deploying ASDK with MSLab HOT 8
- Adaption of scenario scripts for 1-node clusters HOT 6
- Powerpoint files show wrong url? HOT 5
- AD SCCM Installation Scenario to MS-LAB HOT 1
- This repo is missing important files HOT 1
- Add try catch for stale / mounted WindowsImages
- Poor Documentation for Scenarios HOT 2
- DownloadLatestCUs doesn't show Azure Stack HCI 23H2 HOT 2
- HCI 22H2 : CreateParentDisks.ps1 failed with error "Method invocation failed because [System.Char] does not contain a method named 'contains'." HOT 1
- Updating from Server 2022 to Server 2025 fails due to limited RAM HOT 3
- New build does not contain latest changes from github HOT 1
- mslab 24.04 Hydration of DC fails after first reboot when Parent OS and VM OS is Windows Server 2025 HOT 3
- mslab 24.04 - Importing hydrated DC VM fails to boot if the VM OS is WS 2025 HOT 1
- mslab 24.04 - djoin blob might erratically fail with WS2025 VMs HOT 2
- MSlab 24.04 - known issue - MSlab Sending Telemetry fails HOT 2
- No network adapter found during Scenarios/Hyper-V with Shared Storage/Scenario.ps1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mslab.