Create VHDX from ISO

Tek Info
Tek Info used Ask the Experts™
on
How can I import an ISO into Hyper V as a Virtual machine?
Or do I need to convert it first into a .vhdx and then attach or import it?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
An iso is usually a Bootable Installer of an operating system, unless it's a Live Edition of a Linux distro.

You may have a bootable Windows based PE, but it's quicker to mount the ISO and install as below

So you've got one step to create the virtual machine first by

1. Creating an empty virtual machine in Hyper-V.
2. Connect the ISO media
3. BOOT the Virtual Machine (as you would a physical computer)
4, Install (as you would a physical computer)
5. You then have your OS on a VHDX file.
Philip ElderTechnical Architect - HA/Compute/Storage

Commented:
We've not used this method in a long time since running the process indicated by Andrew only takes a few minutes on the all-flash servers we normally deploy now.

The best How-To is here: PowerShell is King – Convert WIM to VHD/VHDX with support for Gen 1 and Gen 2 (BIOS/UEFI) and then some…

I have two very thorough EE articles on all things Hyper-V:

Some Hyper-V Hardware and Software Best Practices
Practical Hyper-V Performance Expectations

Some PowerShell Guides:
PowerShell Guide - Standalone Hyper-V Server
PowerShell Guide - New VM PowerShell
PowerShell Guide - New-VM Template: Single VHDX File
PowerShell Guide - New-VM Template: Dual VHDX Files
NoahHardware Tester and Debugger

Commented:
Hi there! :)

You may refer to the following link for example instructions. You can infer from the steps if you are unsure or become stuck and I will help you from there.

Reference: https://support.citrix.com/help/XenClient/Synchronizer/5_0/en/xc-add-iso.html

Here is a video you might find useful.

Reference: https://www.youtube.com/watch?v=rK0Jq-ZiVkg

Author

Commented:
Thanks Andrew, however when I try starting the imported ISO in Hyper V I get errors regarding that it can't find a boot loadable error..

Virtual Machine Boot Summary
1. SCSI Disk (0,0)
The boot loader did not load an operating system
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
You really need to post a new question, abou issues installing an OS in Hyper-V.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial