Hyper-V - Create and Use VHD of Windows 10 with Disk2VHD  

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 575
    Windows 11 Pro
       #10

    Kari, have you tried this tutorial lately? I am getting an error at step 3.2 when I try to mount the created vhdx file.

    Hyper-V - Create and Use VHD of Windows 10 with Disk2VHD-vhdx-mount.jpg

    I am using Windows 14393.953 on a UEFI/GPT configuration. It shows to be offline in Disk Management.

    Hyper-V - Create and Use VHD of Windows 10 with Disk2VHD-dm-vhdx-mount.jpg

    Thought maybe vhdx file didn't create properly so I tried creating twice more with the same results.
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #11

    tracit99 said:
    Thought maybe vhdx file didn't create properly so I tried creating twice more with the same results.
    I'll check and update tutorial today (Sunday). I've been up all night testing various unattended install scenarios and am now simply too tired (it's 6:30 AM my local time), I have to sleep a few hours first.

    I promise a solution later today :)

    Kari
      My Computer


  3. Posts : 15,441
    Windows10
       #12

    Kari said:
    I'll check and update tutorial today (Sunday). I've been up all night testing various unattended install scenarios and am now simply too tired (it's 6:30 AM my local time), I have to sleep a few hours first.

    I promise a solution later today :)

    Kari
    Hi Kari,

    I hope you do not take offence at this but I am sure many users here do not want you to "burn out" by overdoing things late at night, especially given you are currently having some health issues. We can wait for answers :).

    cheers

    M.
      My Computer


  4. Posts : 575
    Windows 11 Pro
       #13

    Kari said:
    I'll check and update tutorial today (Sunday). I've been up all night testing various unattended install scenarios and am now simply too tired (it's 6:30 AM my local time), I have to sleep a few hours first.

    I promise a solution later today :)
    Kari
    I am in no rush. Take your time. I am learning about VMs and happened across your tut. Thank you for your response and the time and the work you put in for us all here at WTF.
      My Computer


  5. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #14

    @tracit99, the tutorial is apart of Part One totally re-written. There is no need to mount your DISK2VHD virtual hard disks, I guess your VHD is OK and ready to be used in Hyper-V. GPT to MBR conversion is not required.

    The issue you had is because disk ID conflict. Each disk has a unique disk ID; when you used Disk2VHD you basically cloned your existing HDD, with its ID. Windows cannot cope with two disks with same ID, therefore the VHD was offline. If you right click the disk header (left most column in Disk Manager) and select Online, system creates a new unique disk ID for that VHD and it will be mounted.

    Kari
      My Computer


  6. Posts : 575
    Windows 11 Pro
       #15

    @Kari, Thanks for the tut rewrite. Very well done. I was able to create a new VM without any problems.
    Last edited by tracit99; 23 Mar 2017 at 08:36.
      My Computer


  7. Posts : 15,441
    Windows10
       #16

    Hi Kari,Great re-write.I wonder if you can answer a hopefully simple question.I remember at the back of my mind trying this with a 1TB main drive and 1 TB secondary drive.The main drive had two partitions 250GB and 750GB approx with the OS+progs on 250GB (100GB used) and 750GB mostly empty (720+GB free).As I recall it, when I created the vhd using disk2vhd, it appeared to configure it internally as a 1TB drive even though I did not select the 750 GB partition i.e it had apparently had a 250GB drive and 750 GB of unallocated space. The actual vhd was only about 100 GB and on secondary drive with over 500 GB free). I know this as I managed to copy the vhd to a third 2TB drive on another PC, and when I loaded it it showed the 250GB drive and 750GB unallocated! To answer the obvious question, I did create a dynamically expanding vhd as the actual vhd would not have fitted on secondary drive if fixed.The problem was when I tried to run it in Hyper-V, it would not run it saying it did not have enough space i.e it would not let me use it if it could not reserve 1TB space on secondary drive.I then replaced 1TB drive with a smaller 160GB drive, cloning from 1TB drive using good old Macrium Reflect, then tried using disk2vhd and it worked fine.So my simple questions iso you know if you (still?) need to have enough spare capacity on secondary drive to hold space equivalent to the WHOLE of primary drive?I could not see any option with disk2VHD to limit maximum siz of vhd.If that is true, you might wish to add a warning?
      My Computer


  8. Posts : 1
    Windows 10
       #17

    Easier method in capturing the Windows 10 Image including EFI


    Kari said:
    Note   Note
    The tutorial has been updated today (13-JUN-2016) and now also covers how to make a Hyper-V vm from a UEFI based, GPT partitioned host system with Disk2VHD.

    Part Three in tutorial is new, written today.

    Please post all your questions about this process in this thread.

    Kari
    Hi Kari, I had the same problem and did not have time to download the Windows 10 Install ISO, so I did some investigation and google searching. I found a simpler way to achieve a "True" full capture of the physical machine.

    You need to run the command mountvol (as elevated administrator) using the following command:


    mountvol DRIVE: /S - where DRIVE needs to be replaced with any available drive letter eg

    mountvol E: /S

    this mounts the EFI partition with a drive letter so that disk2vhd will be able to see and capture it.

    Now all you need to do is run Disk2VHD and you will have an extra entry available to capture.

    Once captured, copy the VHDX file to your Hyper-V server and create a standard Gen2 (UEFI compatible) machine and attach the file as the Hard Drive.

    Start the machine and away you go!

    I just completed these steps to capture a Lenovo laptop straight out of the box, and booting into a WinPE rescue disk.

    I then ran the steps above to mount the EFI and captured with D2VHD, and the machine is now booting!

    Now I am able to emulate and test any settings on a VM rather than having to re-image a physical machine which takes up lots of time!

    This is running as of 11th June 2021 on a new Lenovo ThinkBook 13s.

    Credit where credit is due. My solution was developed after reviewing this post:

    DiskToVhd generated VHD is not bootable - Super User
      My Computer


  9. Posts : 6
    Windows 10
       #18

    Hello @Kari
    Thanks for the great information

    I am using Disk2vhd to convert a physical server running windows 10 to a virtual machine. , select the C drive and go to create but after a few minutes of "Snapshotting volumes..." I get the error "Unable to open disk 0."

    any help please by the way I'm using the latest version of disk2vhd
      My Computer


  10. Posts : 15,441
    Windows10
       #19

    I gave up using disk2vhd a long time ago as it was too unreliable.

    I just simply make a Macrium Reflect image backup of host and restore image in HyperV to a vhd. Far more reliable and easy to do.

    In fact, you can use Macrium Viboot to open a reflect image as a virtual machine in HyperV or Virtualbox now.
      My Computer


 

Tutorial Categories

Hyper-V - Create and Use VHD of Windows 10 with Disk2VHD Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:44.
Find Us




Windows 10 Forums