My first blog post is also one of my most successful Lab-V, nesting Hyper-V creating your own lab
I thought it is about time I make a proper post out of that one. I can’t even remember how many times I have battled the really useful feature of nesting hypervisors. Follow my vlog and you will learn the awesome stuff you can do with nested hypervisors.
We will start by nesting Hyper-V on Hyper-V for those of you that just want to get familiar with nesting on the Microsoft platform. Microsoft Hyper-V has some limited functionality that enables you to nest Hyper-V.
Nesting Hyper-V on Hyper-V:
- Download and install the Windows assessment and deployment kit for Windows 8.1 Update
Select your installation folder
Choose wheter or not to participate in the CEIP
Accept the License Agreement
Select the features you want to install:
We only need this feature for this exercise.
- Mount and copy the content of your Windows 2012 R2 ISO to a folder. In my case C:\TempInst\Win2012R2.Lab-V
- Open a command prompt and enter the command
dism /get-ImageInfo /ImageFile:C:\TempInst\Win2012R2.Lab-V\sources\install.wim
Choose witch version you’d like to edit
- Create a empty folder on to whish you will execute your imagedism /Mount-Image /ImageFile:C:\TempInst\Win2012R2.Lab-V\sources\install.wim /Index:4 /MountDir:C:\TempInst\Lab-V
To get a list of features run the command
dism /Image:C:\TempInst\Lab-V /Get-features /Format:List
- We will enable the Hyper-V feature
dism /Image:C:\TempInst\Lab-V /Enable-Feature:Microsoft-Hyper-V
- Save the changes and unmount the image
dism /Unmount-Image /mountdir:C:\TempInst\Lab-V /commit
Now create a ISO of the folder C:\TempInst\Win2012R2.Lab-V and use it to install a VM in your environment and voila a woring Hyper-V inside your Hyper-V.
Now to the not so god part, you can create VMs inside the nested Hyper-V but you cannot start them. I have debated several hours regarding the usefulness of this, but for now that’s the way it is.
To be able to do so you must use another hypervisor. But that is my next blog post, stay tuned