Skip to content

[WIP] Support for additional network adapters in LabConfig - #468

Merged
Vladimír (machv) merged 1 commit into
microsoft:devfrom
machv:extra-adapters
Mar 10, 2022
Merged

Vladimír (machv) merged 1 commit into
microsoft:devfrom
machv:extra-adapters

Conversation

@machv

@machv Vladimír (machv) commented Oct 15, 2021 •

Copy link
Copy Markdown
Collaborator

Starting this pull request as work in progress to discuss further.

Sample working VM configuration using new options.

$LABConfig.VMs += @{ 
    VMName = 'Management' 
    ParentVHD = 'Win10_G2.vhdx' 
    AdditionalNetworkAdapters =
        @{
            VirtualSwitchName = 'Litware-LAN' # mandatory 
            Mac = '00-0C-29-04-8D-C6' 
            VlanId = 15 # Optional parameter if VLANs are used in the environment
            IpConfiguration = @{ # DHCP or specific IP set with Set-VMNetworkConfiguration function
               IpAddress = '172.17.1.15'
               Subnet = '255.255.255.0'
            }
        },
        @{
            VirtualSwitchName = 'Litware-LAN' # mandatory 
            IpConfiguration = @{
                IpAddress = '172.17.1.16'
                Subnet = '255.255.255.0'
            }
        }
  }

@Karl-WE

Copy link
Copy Markdown
Contributor

I would like to add following parameters for all NICs on Lab and VMs to mirror production

  • /= DHCP: DNS Server IPv4, DNS IPv6 if IP /= fe80 (default)
  • Optionally Disable NetBIOS over TCP/IP
  • Optionally Disable LMHost

@machv
Vladimír (machv) merged commit bfbef07 into microsoft:dev Mar 10, 2022
@machv
Vladimír (machv) deleted the extra-adapters branch March 10, 2022 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants