Booting a Windows VM from Real physical disc or a physical EXT USB

Page 1 of 2 12 LastLast

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

    Booting a Windows VM from Real physical disc or a physical EXT USB


    Hi folks
    Not sure if this works on HYPER-V but using KVM/QEMU you can boot a Windows VM from a real physical HDD or a Windows to Go stored on an external USB.

    This means that you can say backup an image of your REAL Windows system and then attach the disk to the VM and then set it as the boot device

    Most of the drivers should be fine !!! and you should be able to get as near native speed as makes no difference -- the main problem I'd imagine for users here is the graphics as a lot here won't have a spare graphics port (separate graphics outlet - not simply "dual monitor support" from one card). However you can still paravirtualize the graphics -- you'll need to install the appropriate graphics driver -- the one to use is from the REDHAT / FEDORA Win virtio iso --works on other distros such as ubuntu / debian / arch linux etc.

    Those without dual NIC's can also share the single NIC for networking.

    Cheers
    jimbo
      My Computer


  2. Posts : 60
    Win11
       #2

    I'd like to tell you about Disk2vhd. It's a lightweight tool that you run on your host-machine. It creates a vhd/vhdx-file which will be a complete copy of your host-machine. You can then send this vhd/vhdx-file anywhere and use it to boot VMs with.
      My Computer


  3. Posts : 11,247
    Windows / Linux : Arch Linux
    Thread Starter
       #3

    hajen said:
    I'd like to tell you about Disk2vhd. It's a lightweight tool that you run on your host-machine. It creates a vhd/vhdx-file which will be a complete copy of your host-machine. You can then send this vhd/vhdx-file anywhere and use it to boot VMs with.
    Hi there
    another OK solution - but using any sort of "Non native" file system / I/O will decrease the performance of the VM -- the idea is to get the VM to perform as near possible to Native speed -- having VHD/VHDX files means that essentially the I/O algorithms take longer to execute because you have to map the vhd/vhdx structure to the OS underlying file system .

    Assuming enough RAM in the system the biggest bottleneck to Virtual Machines is within the Disk I/O subsystem -- actually most consumer grade computers suffer from poorish Disks as well !!

    Commercial servers Virtualize cloud and other servers by using things like SAS- Fibre etc for extremely fast I/O -- for a lot of servers --themselves running as Virtual machines - graphics isn't an issue as that can be done on the remote clients.

    At a consumer level Disks are still the most important part -- get those right and the rest will usually follow. __Most CPU's on home computers these days are perfectly capable of running certainly up to 3 VM's concurrently - depending on your RAM availbility they could run more.

    Remotely accessing the VM (even on a LAN) with a machine with good graphics will yield an even better performance --assuming your LAN is nice and fast --Graphics in my laptop is far superior to that on the HOST SERVER and so I use krdc to access the Windows VM on my main server.

    Cheers
    jimbo
      My Computer


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

    hajen said:
    I'd like to tell you about Disk2vhd. It's a lightweight tool that you run on your host-machine. It creates a vhd/vhdx-file which will be a complete copy of your host-machine. You can then send this vhd/vhdx-file anywhere and use it to boot VMs with.
    I've written a tutorial about Disk2VHD: Hyper-V - Create and Use VHD of Windows 10 with Disk2VHD

    Kari
      My Computer


  5. Posts : 11,247
    Windows / Linux : Arch Linux
    Thread Starter
       #5

    Kari said:
    I've written a tutorial about Disk2VHD: Hyper-V - Create and Use VHD of Windows 10 with Disk2VHD

    Kari
    Hi there
    great tutorial and it works !!! but of course the two problems I have with this

    1) you aren´t using Native I/O for the Vitrual machines I/O
    2) remote connection to a HYPER-V type VM is still via RDP which is HIDEOUS

    However you can IMO get better throughput (and better mouse etc control) is to connect to a VM created with HYPER-V from a Linux machine and use something like rdesktop or krdc -- seems to be a lot snappier !!!

    Another problem with HYPER-V VM's is that dynamic re-direction of USB devices doesn't work very well (if at all) and booting from actual physical devices --well it seems they will boot from an iso file but not for example if you want to plug a physical usb in -so doing a macrium restore is hard --you can't dynamically attach (re-direct) say another HDD where the image is on after you've bought up the VM.

    What I'm trying to do is to make the VM almost indistinguishable performance wise from the "Native" system -- I'm about 95% there !!! --using Free OS's and VM software. I don't need to try and mess around with ESXI --trying to run away as fast as possible from VMWare as it always seems to break after every major Linux or Windows update (and please pay xxxx to get the next VMWare release ) !!. I'm getting too old to continue to keep playing that type of game.

    KVM actually is a really good HYPERVISOR since once the VM is up it really doesn't use a lot of overhead from the HOST OS (provided you avoid the paravirtualisation stuff and pass thru as much hardware as possible) -- and things like Windows VM's etc can be installed on servers which don't even have an OS GUI --just CLI so you access the VM's remotely via a laptop etc.

    These days with fast connections even a HOME LAN should provide a 1Gb/s connection --fast enough for any Windows system logged on to via another machine.

    KVM stands for Kernel Virtual Machine -- and since Linux kernels are quite small the OS overhead of these hypervisors is fairly minimal !!!

    Cheers
    jimbo
    Last edited by jimbo45; 03 Aug 2020 at 07:38. Reason: Added more info about KVM HYPERVISOR
      My Computer


  6. Posts : 7
    Debian
       #6

    kvm-qemu lets you get crazy with block devices. You can for example boot a windows machine to linux. Make a tmpfs ramdisk. Make a qcow write layer in the ramdisk with the physical machine hd as base. Mount that to qemu-nbd service. And on another machine, boot the remote machines hard drive. This would leave no trace on the host system that it had ever been booted if you do it right. I could do a write up if there is interest but it is super niche use case. Think digital forensics.
      My Computer


  7. Posts : 1,325
    Windows 11 Pro 64-bit
       #7

    jimbo45 said:
    Hi folks
    Not sure if this works on HYPER-V but using KVM/QEMU you can boot a Windows VM from a real physical HDD or a Windows to Go stored on an external USB.
    This means that you can say backup an image of your REAL Windows system and then attach the disk to the VM and then set it as the boot device
    Yes this works in Hyper-V. You can boot a backup image, from physical disk.
    I changed my system SSD drive lately and had the old one around, put it in a USB3 portable case and added it to VM...
    Booting a Windows VM from Real physical disc or a physical EXT USB-test-usb-disk-boot.png
    The disk has to be offline and then can it be added, in this case via the SCSI controller.

    Boots straight to my old desktop.

    I couldn't add a usb flash stick to boot though since this cannot be set offline in diskmgmt.

    You also have Macrium Reflect's VIboot to boot an image directly in Hyper-V or have it cloned on physical disk to boot as I mentioned.
      My Computers


  8. Posts : 4,190
    Windows 11 Pro, 22H2
       #8

    I also like this related tutorial from @Kari:

    Native boot Virtual Hard Disk - How to upgrade Windows

    Specifically, the video right at the start of that tutorial. I wrote myself a little program that fully automates that process. Works like a charm!
      My Computers


  9. Posts : 11,247
    Windows / Linux : Arch Linux
    Thread Starter
       #9

    Hopachi said:
    Yes this works in Hyper-V. You can boot a backup image, from physical disk.
    I changed my system SSD drive lately and had the old one around, put it in a USB3 portable case and added it to VM...
    Booting a Windows VM from Real physical disc or a physical EXT USB-test-usb-disk-boot.png
    The disk has to be offline and then can it be added, in this case via the SCSI controller.

    Boots straight to my old desktop.

    I couldn't add a usb flash stick to boot though since this cannot be set offline in diskmgmt.

    You also have Macrium Reflect's VIboot to boot an image directly in Hyper-V or have it cloned on physical disk to boot as I mentioned.
    Hi there
    QEMU/KVM Virtual machines can also boot from USB devices -- although if you do that they need to be added to the VM config before re-boot.

    After booting USB re-direction allows hot plugging of USB devices -- which IMO is a lot better than HYPER-V.

    The other thing about using a "Virtual hard drive" as native boot - you need to use a VHDX format -- QEMU/KVM allows you to use a bog standard Windows NTFS formatted drive as the boot drive .

    Cheers
    jimbo

    Cheers
    jimbo
      My Computer


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

    Moriarty said:
    kvm-qemu lets you get crazy with block devices. You can for example boot a windows machine to linux. Make a tmpfs ramdisk. Make a qcow write layer in the ramdisk with the physical machine hd as base. Mount that to qemu-nbd service. And on another machine, boot the remote machines hard drive. This would leave no trace on the host system that it had ever been booted if you do it right. I could do a write up if there is interest but it is super niche use case. Think digital forensics.
    Hi there
    Nice things to play with

    Do you work for the CIA for example !!!!!!! or N.Korean Hackers fraternity !!!!!

    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 17:08.
Find Us




Windows 10 Forums