https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_HL_Tools_%E2%80%93_Part_2_%E2%80%93_Create_a_nested_hypervisor&feed=atom&action=historyPowerCLI: HL Tools – Part 2 – Create a nested hypervisor - Revision history2024-03-28T14:35:12ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.vi-toolkit.com/index.php?title=PowerCLI:_HL_Tools_%E2%80%93_Part_2_%E2%80%93_Create_a_nested_hypervisor&diff=1252&oldid=prevWila: Created page with "=== Create a nested hypervisor === author: Luc Dekens ==== Description ==== From Luc's Home Lab series, the script to create a nested hypervisor VM. This will let you create ..."2013-07-23T22:24:16Z<p>Created page with "=== Create a nested hypervisor === author: Luc Dekens ==== Description ==== From Luc's Home Lab series, the script to create a nested hypervisor VM. This will let you create ..."</p>
<p><b>New page</b></p><div>=== Create a nested hypervisor ===<br />
author: Luc Dekens<br />
==== Description ====<br />
From Luc's Home Lab series, the script to create a nested hypervisor VM.<br />
This will let you create a ESX or HyperV hypervisor VM for your lab so that you can experiment as much as you'd want without breaking anything important.<br />
<br />
==== Usage ====<br />
the following example (from his page) displays how-to create 3 nested ESX VM's and boot them after creation.<br />
$esx = Get-VMHost -Name MyLab<br />
$pgName = "Internal"<br />
$pgObj = Get-VirtualPortGroup -Name $pgName<br />
$pg = 1..4 | %{$pgObj}<br />
<br />
$nestedParams = @{<br />
Name = $null<br />
VMHost = $esx<br />
DiskGB = 8<br />
NumCpu = 2<br />
MemoryGB = 8<br />
Portgroup = $pg<br />
CD = $true<br />
ISOPath = "[datastore1] ISO/VMware-VMvisor-Installer-5.1.0-799733.x86_64.iso"<br />
ESXi = $true<br />
} <br />
<br />
1..3 | %{<br />
$nestedParams.Name = "ESX$($_)"<br />
$newesx = New-NestedHypervisor @nestedParams<br />
Start-VM -VM $newesx -Confirm:$false<br />
}<br />
<br />
==== Location ====<br />
<br />
http://www.lucd.info/2013/07/12/hl-tools-part-2-create-a-nested-hypervisor/<br />
<br />
[[Category: PowerCLI]] [[Category: VM Management]]</div>Wila