Create VM from physical machine

Page 1 of 2 12 LastLast

  1. Posts : 27
    Windows 10 x64 (b9841)
       #1

    Create VM from physical machine


    My machine has a non-clean install of win 10, which I have been using for months. I would like to do a clean install of windows 10, but I don't want to be down for days getting everything setup. So I figured I would run it in a VM on the newly installed OS while I set things up on new machine.

    I used disk2vhd to create VHDX files from my c and d drive (users folder on d). I created a VM and added the disks. But hypervisor won't recogize the disk as bootable.

    I am thinking this is because my host uses UEFI, so the VHDX's were created with a VHDX instead of mbr? I have tried booting the VM using the window install disk to do bootred /rebuildbcd, but the command fails, I am guessing because it doesn't work on UEFI disks?

    Any suggestsions?
      My Computer


  2. Posts : 17,661
    Windows 10 Pro
       #2

    By default Hyper-V creates a new vm as Generation 1 (BIOS / MBR). If your vhd file is UEFI /GPT, you need to set the new vm as Generation 2 (UEFI).

    See Part Four, step 4.4 in this tutorial: Hyper-V virtualization - Setup and Use in Windows 10 - Windows 10 Forums

    Kari
      My Computer


  3. Posts : 27
    Windows 10 x64 (b9841)
    Thread Starter
       #3

    I thought I had created a Gen 2 VM (coincidence, didn't know at the time), and that is what I was having trouble with on with the VHDX disks.

    But I just redid the images and made .VHD files, then specifcally made a gen 1 VM. That worked, but man is it slowed compared to Gen2 VM's I have made. But could be because the vhd files on an IDE, and there some services running that I don't normally run on a VM.

    Would you expect a gen 2 setup to be faster than a gen1? Or is it mainly just a feature set change?
      My Computer


  4. Posts : 1,366
    Windows 10 Pro x64
       #4

    If you plan ahead, meaning have your drivers downloaded and ready on a flash drive, it doesn't take days to do a clean install plus configuration. You can do it all in as little as 2 hours.
      My Computer


  5. Posts : 3,367
    W10 Pro x64/W7 Ultimate x64 dual boot main - W11 Triple Boot Pending
       #5

    A VM generally won't require as many if any device drivers as a rule depending on circumstances. The VM created from the upgrade install you saw will have already seen all of the necessary drivers installed by this time. The Clean install will in most case generally see the drivers needed downloaded during the installation itself. On some things however a manual check on an older hardware may requite a look at 8.1 drivers instead from the manufacturer's support site.

    Found that out fast the long time discontinued tv tuner card where I went with the update for a entirely different PCIe instead o PCI model card and simply tossed on the drivers/application for that to see working results. But for something older and extra you would want to check ahead of time for any available 8.1 if not 10 updates as DeaconFrost suggested to be prepped just in case the 10 installer has a problem locating the correct update when going to see the Clean Install take place.

    Meanwhile the attempt here to see the C on the main run as a VM wouldn't work due to size! From the 1tb host drive the tool produced a 703gb VHDX file! while it fit on the second storage drive it would simply take up too much drive space for that project. Plus I had to get two of the other three 10 VMs running to see those updated. 10 Home is on the second pc there now seeing the 14271 finally going on the main host drive's Insider installs there without logging into an MS account! The updated build was simply found waiting to go on!
      My Computers


  6. Posts : 11,247
    Windows / Linux : Arch Linux
       #6

    Hi there
    If you don't mind using vmware (Player is free) -- you'll have to disable HYPER-V -note you don't have to uninstall it - and then simply run the Vmware free converter tool from within your current Windows physical OS.

    I think this can also create HYPER-V type files too (never tried that though) so if you want to go down that route try that method.
    Note though edit your target vm settings -- you might want just the OS and applications - not all the data disks and I'd set the processor to a single processor.

    It's all in an easy GUI. You need to create an account (free) - but at least vmware doesn't nag you with loads of ads etc.

    Download VMware vCenter Converter Standalone for P2V Conversion

    If you want to reduce the size of the OS Disk in the VM - what I'd do is to create the vm first with the converter tool, then download an ISO image of GPARTED or other partitioning software, boot the VM with the ISO image as first boot device, reduce the partition size, then backup the OS with Macrium, create a new VM with the new HDD size and then restore your backed up VM image.

    Sounds complicated but actually very simple - especially if you have your VM on an SSD - won't take more than a few minutes for the backup / restore.

    Cheers
    jimbo
      My Computer


  7. Posts : 3,367
    W10 Pro x64/W7 Ultimate x64 dual boot main - W11 Triple Boot Pending
       #7

    The converter there isn't exactly what you would be using on a desktop version of Windows. I went to try that one out here and couldn't get anything done with it. It's leans more towards the server platform instead.

    The one thing I could say to you sheamus would be simply trying it a try with Generation 2 option to see how it goes. But if the Generation 1 is required you are going to be more or less stuck trying to work things out with that option instead. As for the ide drive factor you would notice a slight change in overall performance when measured but that is a result from hardware there. 5,200rpm for the top end of an ide compared to 7,200rpm on a typical sata II or III drive would be noticed to a degree.
      My Computers


  8. Posts : 11,247
    Windows / Linux : Arch Linux
       #8

    Hi there
    It worked fine for me -- choose the Stand alone converter - you don't need all the server stuff - and ensure you run it from within your actual physical running Windows system.

    I'm currently re-building my NAS box (Linux Centos 7 server) otherwise I'd post a screen shot or two.

    It's very simple and works.

    Cheers
    jimbo
      My Computer


  9. Posts : 3,367
    W10 Pro x64/W7 Ultimate x64 dual boot main - W11 Triple Boot Pending
       #9

    I ran into a bunch of account log in requirements and other things I normally would never see simply going for the latest WS 12 Player. But the real concern was the size here even if compressed down from the whopping 703gb to 500gb would still be simply too large since I run VMs about 60-80gb in size at the max except for some Linux distro down about 15gb tops for LMDE not ubuntu which will be about 8gb tops. A good number of the programs here wouldn't even run anyways being hardware dependent.
      My Computers


  10. Posts : 11,247
    Windows / Linux : Arch Linux
       #10

    Night Hawk said:
    I ran into a bunch of account log in requirements and other things I normally would never see simply going for the latest WS 12 Player. But the real concern was the size here even if compressed down from the whopping 703gb to 500gb would still be simply too large since I run VMs about 60-80gb in size at the max except for some Linux distro down about 15gb tops for LMDE not ubuntu which will be about 8gb tops. A good number of the programs here wouldn't even run anyways being hardware dependent.
    Hi there.

    I think if stuff is highly hardware dependant then using a VM probably isn't the right way to go unless you can get specialized VM's that have access to the physical hardware (Pass thru) to your actual hardware. In this case you will really need to use something like Esxi or equivalent. HYPER-V is probable even harder to use your own hardware - especially for USB and Multi-media support.

    Vmware and Vbox use "para virtualisation" so you can get limited hardware support such as installing hardware drivers on the VM for some USB devices.

    For extreme gaming / specialized graphics for instance you can only really test these properly in a VM environment if you use something like Esxi - which (Free BTW) is quite fussy over the base hardware it runs on. You will need to set up essentially a "White Box" to get it to work and you'll have to access the VM's remotely via RDP from a laptop or another computer.

    The Esxi OS is actually quite interesting -it's tiny so takes effectively ZERO Host resources which can all be given to the VM's and can easily be booted in a few seconds from a USB stik or even an SD card. Once the OS has booted you can remove the media as it's not needed again - the OS is memory resident (and tiny).

    Great fun if you've got the time and equipmenet to play with this. Note - one thing it's incredibly fussy on is for a supported LAN or Wifi NIC. If it doesn't like the Nic it won't boot. INTEL NIC's always work though.

    Cheers
    jimbo
      My Computer


 

  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 16:02.
Find Us




Windows 10 Forums