Comments (2)
This is because in this case you would assign the same IP to both computers. If you do not specify an IP address for the network adapter yourself, AutomatedLab will generate one. The algorithm for calculating the next free IP address gets stuck in an infinite loop because it is designed that way. Perhaps we should interrupt the loop when a certain number of attempts have been made.
If you assign an IP yourself, you will of course not be able to reuse the network adapters as you will receive duplicate IP addresses:
17:57:03|00:00:20|00:00:10.664| - Issue: '10.10.150.1, 10.10.150.1'. Cause: The IP address 10.10.150.1 is assigned multiple times
So, reusing the data is not possible. But you can easily create new network adapter objects in a foreach-loop like this:
$labName = '1625'
New-LabDefinition -Name $labName -DefaultVirtualizationEngine HyperV
Add-LabVirtualNetworkDefinition -Name Internal -AddressSpace 10.10.150.0/24
Add-LabVirtualNetworkDefinition -Name 'Default Switch'
foreach ($i in (1..2))
{
$NICs = @()
$NICs += New-LabNetworkAdapterDefinition -VirtualSwitch Internal
$NICs += New-LabNetworkAdapterDefinition -VirtualSwitch 'Default Switch' -UseDhcp
Add-LabMachineDefinition -Name "NIC$i" -NetworkAdapter $NICs -OperatingSystem 'Windows Server 2019 Datacenter (Desktop Experience)'
}
Install-Lab
from automatedlab.
Ah that makes sense, thank you for the reply and solution @raandree
from automatedlab.
Related Issues (20)
- [New Feature]: System Drive Cleanup HOT 2
- [Bug]: VMConnect config file creation fails under SYSTEM HOT 1
- [Bug]: Cannot validate argument on parameter 'ParentPath' HOT 6
- [Bug]: Cannot Install Windows 11 Enterprise with AutomatedLab HOT 10
- [New Feature]: Disable VM Time Synchronization HOT 2
- Release Process Documentation
- [Bug]: Unknown error in 'Stop-LabVM'. Cannot call 'Stop-LabVM2' HOT 1
- [Bug]: -InstallationUserCredential mixed up in New-LabPSSession HOT 8
- [Bug]: Exchange task 'Exchange PrepareSchema' failed on 'E1Ex1' HOT 6
- Add Windows Server 2025 Product Key HOT 6
- [Bug]: WARNING: (x,y): warning CS0168: The variable 'e' is declared but never used
- [Bug]: Can not install a secondary DC (role = DC) HOT 2
- Azure outdated Windows 10 & 11 image versions HOT 1
- [Bug]: Error configuring SSRS with SQL Server 2022
- [Bug]: When removing an Azure lab, 'Get-VMSwitch' is not recognized as a name of a cmdlet, function...
- [Bug]: Azure Windows 11 Deployment Gen2 VM
- Possible to move Lab? HOT 1
- [Bug]: New-WinUserLanguageList bug HOT 1
- [Bug]: Failed to setup the lab with scenarios "Multi-AD Forest with Trusts"
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 automatedlab.