GithubHelp home page GithubHelp logo

Error creating VM about automatedlab HOT 4 CLOSED

Flyslinger2 avatar Flyslinger2 commented on June 3, 2024
Error creating VM

from automatedlab.

Comments (4)

nyanhp avatar nyanhp commented on June 3, 2024

@Flyslinger2 while I can guess the problem from the wall of output, a friendly text explaining things in the description section would be appreciated for your next issue 👍

The steps to reproduce are unfortunately not enough to reproduce the issue and result in a different error, since you omitted the rest of the lab script.

I assume that you have a cmdlet called Get-Cluster coming from a different module. I'll ensure that Get-Cluster is only called if it is coming from the module FailoverClusters

from automatedlab.

Flyslinger2 avatar Flyslinger2 commented on June 3, 2024

I was using this: https://www.youtube.com/watch?v=lrPlRvFR5fA

I believe you created the video.

I followed the steps exactly as you demonstrated.

from automatedlab.

Flyslinger2 avatar Flyslinger2 commented on June 3, 2024

My commands:

Install-Module -Name AutomatedLab
New-LabSourcesFolder -DriveLetter "E"
New-LabDefinition -Name MyFirstLab -DefaultVirtualizationEngine HyperV
Add-LabMachineDefinition -Name MyFirstVM -OperatingSystem 'Windows Server 2019 Datacenter Evaluation (Desktop Experience)'

The results:

PS C:\Users\MarkSigsbee\Downloads\wolfssl> Add-LabMachineDefinition -Name MyFirstLab -Memory 4GB -OperatingSystem 'Windows Server 2019 Datacenter Evaluation (Desktop Experience)'
12:59:51|00:00:08|00:00:00.000| - Adding Hyper-V machine definition 'MyFirstLab'
12:59:51|00:00:09|00:00:00.346| - No virtual networks specified. Creating a network automatically
12:59:51|00:00:09|00:00:00.427| - Creating network 'MyFirstLab' with address space '192.168.11.0/24'
Get-VM : 10/10/2023 12:59:51 PM Get-VM You are not currently connected to any servers. Please connect first using a Connect cmdlet.
At C:\Users\MarkSigsbee\OneDrive - ZTI Solutions, LLC\Documents\WindowsPowerShell\Modules\AutomatedLabWorker\5.49.0\AutomatedLabWorker.psm1:6174
char:21

  • [object[]]$vm = Get-VM @param
    
  •                 ~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (:) [Get-VM], ViServerConnectionException
    • FullyQualifiedErrorId : Core_BaseCmdlet_NotConnectedError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

Get-Cluster : 10/10/2023 12:59:51 PM Get-Cluster You are not currently connected to any servers. Please connect first using a Connect cmdlet.

Why is it trying Vmware instead of HyperV?

from automatedlab.

Flyslinger2 avatar Flyslinger2 commented on June 3, 2024

Below is my most recent attempt.

This was a completely new profile on Win10. All new VS Code, AutomatedLab-5.49.8, etc. installs. I used the start 3 line script from your website. I get errors:

AutomatedLab error 5-49-8

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.