Comments (12)
I am running many labs in parallel and have 7 internal vSwitches right now. Installing another lab was not a problem. Were you be able to ping the machine? Was it possible to create a new session to it using "New-LabPSSession"?
Can you still repro the issue?
from automatedlab.
I could ping the machine - however, the first out of 4 replies would say "The destination is unreachable".
from automatedlab.
Ok, I think I figured out what the issue was: I had another vSwitch that was on the same address space as one of the new adapter.
preexisting adapter on hyper-v host: 192.168.40.254/24
new adapter on hyper-v host: 192.168.40.1/16
Seems that should be an easy repro.
from automatedlab.
In one of the new commits I have extended the verification of subnets also to overlapping ones. Installing a lab should no longer work if an overlapping subnet is defined on another virtual switch.
Can you run a test please and close the issue if the fix is as expected?
from automatedlab.
I have having the same issue when starting labs. AL will hang at "- Waiting for machines to start up". I have tested this with simple, one machine labs on multiple operating systems and I keep getting the same result. I have gone through and deleted all of my Hyper-V virtual switches, but I am still getting the same results.
Hyper-V will boot the systems, but they are not getting the unattended answer file. Each time the machine starts up it will hang waiting for input with the OOBE.
The PS output errors of "Illegal characters in path." I have attached the error output. Any assistance would be greatly appreciated!
AL-errors-MrCCG.txt
from automatedlab.
So that sounds like that you are not be able to deploy labs at all, right? The problem seems to be this: Cannot find drive. A drive with the name ' ' does not exist.
Can you please use the ISE with verbose logging? You can enable verbose logging like this:
$VerbosePreference = 2
Can you paste all the console output into a word or rich-text doc and send it over. Plain text works as well but thanks to the colors in a Word doc it is much easier to navigate.
from automatedlab.
Thanks for the response. I have zipped both a .doc and the .rtf.
from automatedlab.
Thanks. Which OS are you running AutomatedLab on? What is the PowerShell version? Which version of AL do you use?
Can you work around the issue when specifying the parameter New-LabDefinition::VmPath?
from automatedlab.
I apologize. That was not a lot of information to go on. Let me try this again for you.
Basic info:
I am running AL v3.8.0.10 on a windows 10 pro laptop (build 10586) with powershell version 5.0.10586.672.
The laptop has limited space on the hard drive so my current config has the LabSources location on an external USB3 drive. (currently A:) The module correctly identifies this location when I call
Get-LabSourcesLocation. I am running the VMs in a folder off the root of my C: drive. C:\ALVMs
The lab I have been using for testing is the Introduction sample script #3 which I have modified to always use the that VmPath. I am assigning the name with a mandatory parameter.
Here is the guts of that modified script.
LabName will be a required parameter when running the script. The labsource and vmdrive will be hard coded for now.
$labSources = Get-LabSourcesLocation
$vmDrive = 'C:\ALVMs' #this is the drive where to create the VMs
Create the folder path for the lab using Join-Path
$labPath = Join-Path -Path $vmDrive -ChildPath $labName
Create the target directory if it does not exist
if (-not (Test-Path $labPath)) { New-Item $labPath -ItemType Directory | Out-Null }
Set-LabHostRemoting
New-LabDefinition -Path $labPath -VmPath $labPath -Name $labName -DefaultVirtualizationEngine HyperV
Here AL installs a lab with one domain controller and one client. The OS can be configured quite easily as well as
the domain name or memory. AL takes care about network settings like in the previous samples.
Add-LabMachineDefinition -Name DC1 -Memory 1GB -OperatingSystem 'Windows Server 2012 R2 SERVERDATACENTER' -Roles RootDC -DomainName contoso.com
Add-LabMachineDefinition -Name Client1 -Memory 1GB -OperatingSystem 'Windows 7 PROFESSIONAL' -DomainName contoso.com
Install-Lab
Show-LabInstallationTime
from automatedlab.
Wow... that was ugly. I guess that's what I get for not using the preview. I have attached the script as a .txt as well.
script.txt
from automatedlab.
In one of the new commits I have extended the verification of subnets also to overlapping ones. Installing a lab should no longer work if an overlapping subnet is defined on another virtual switch.
Can you run a test please and close the issue if the fix is as expected?
I've tested this with the latest build and it detects this condition properly now. Thank you.
from automatedlab.
MrCCG, this issue is closed but I am not sure if it was connected to your problem. I have tested the script that you have provided and it worked on my machine. Do you still have the problem that AL is not being able to contact the machines?
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
- [Bug]: Cannot reuse NetworkAdapter Objects HOT 2
- 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?
- [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.