Home hyper-v-tool
Post
Cancel

hyper-v-tool

My tool to create vm’s in my lab

https://github.com/Lubenz007/hyper-v-tool

Utilizing a standalone Hyper-V server and generating VMs from a golden image might be considered an older approach, but it’s one I personally prefer. Over the years, I’ve diligently maintained a tool for crafting VMs on my Hyper-V host within the lab environment. I employ SSH to connect to the Hyper-V host and initiate the VM creation process. This tool provides a streamlined menu system that automatically configures the VM, allowing me to promptly begin using it.

  • All config is done in the vm_menu.ps1

  • You can find the oscdimg.exe in the Windows 11 22h2 ADK:
  • https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install
  • Kit “C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\arm64\Oscdimg”

  • $global:oscdimgPath = “$global:StartupFolder\tools\oscdimg.exe”

  • #Template location
  • $global:template = “$global:StartupFolder\template”

  • #template vhd name / windows is sysprep / Ubuntu cloud-init / modify for your template.
  • $global:2022core = “W2022C.vhdx”
  • $global:2022stand = “W2022S_OS.vhdx”
  • $global:2022data = “W2022D_OS.vhdx”
  • $global:Ubuntu = “Ubuntu_OS.vhd”

image image image image image image image

This post is licensed under CC BY 4.0 by the author.