GithubHelp home page GithubHelp logo

Comments (12)

raandree avatar raandree commented on May 22, 2024

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.

justinturnerMSFT avatar justinturnerMSFT commented on May 22, 2024

I could ping the machine - however, the first out of 4 replies would say "The destination is unreachable".

from automatedlab.

justinturnerMSFT avatar justinturnerMSFT commented on May 22, 2024

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.

raandree avatar raandree commented on May 22, 2024

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.

MrCCG avatar MrCCG commented on May 22, 2024

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.

raandree avatar raandree commented on May 22, 2024

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.

MrCCG avatar MrCCG commented on May 22, 2024

Thanks for the response. I have zipped both a .doc and the .rtf.

ALErrors.zip

from automatedlab.

raandree avatar raandree commented on May 22, 2024

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.

MrCCG avatar MrCCG commented on May 22, 2024

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.

MrCCG avatar MrCCG commented on May 22, 2024

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.

justinturnerMSFT avatar justinturnerMSFT commented on May 22, 2024

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.

raandree avatar raandree commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.