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

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

Merged
merged 1 commit into from
Mar 10, 2022
Merged

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

merged 1 commit into from
Mar 10, 2022

Conversation

machv
Copy link
Collaborator

@machv machv commented Oct 15, 2021

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'
            }
        }
  }

@machv machv self-assigned this Oct 15, 2021
@Karl-WE
Copy link
Contributor

Karl-WE commented Jan 9, 2022

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 machv merged commit bfbef07 into microsoft:dev Mar 10, 2022
@machv 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