-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Waiting for machines to start up.. #27
Comments
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? |
I could ping the machine - however, the first out of 4 replies would say "The destination is unreachable". |
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. Seems that should be an easy repro. |
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 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. |
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. |
Thanks for the response. I have zipped both a .doc and the .rtf. |
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? |
I apologize. That was not a lot of information to go on. Let me try this again for you. 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 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 existif (-not (Test-Path $labPath)) { New-Item $labPath -ItemType Directory | Out-Null } Set-LabHostRemoting Here AL installs a lab with one domain controller and one client. The OS can be configured quite easily as well asthe 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 |
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. |
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. |
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? |
AL may sit at the "Waiting for machines to start up.." status indefinitely: On Hyper-V hosts that have preexisting internal networks. My script kept stalling here even though I had connectivity between the host and the machines that it was waiting to start up. The solution was to go into Virtual Switch Manager and remove all the other internal vSwitches.
The text was updated successfully, but these errors were encountered: