Updating a VM to Windows 20H2

Page 1 of 2 12 LastLast

  1. Posts : 1,775
    Windows 10 Pro
       #1

    Updating a VM to Windows 20H2


    How do I do that from a USB drive?
      My Computers


  2. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #2

    Why not just download the ISO, mount it, and run setup?
      My Computer


  3. Posts : 31,692
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #3

    x509 said:
    How do I do that from a USB drive?

    What sort of VM? Hyper-V? VMWare? Easiest is to download an ISO an mount that as a DVD drive for the VM as steve108 suggests..

    If that's not practical, you could create a .vhd virtual drive, mount in in your host machine and copy the USB to it. Then dismount it from the host and mount it in the VM. as a second drive.


    If the VM has a network connection, you could share the USB from the host and connect to the share from the VM.
      My Computers


  4. Posts : 1,746
    Windows 10 Pro x64 22H2
       #4

    Booting directly from USB I think is not possible, but like Bree suggested you can add another VHD drive to ISCI controller in your VM settings, copy USB contents to it and boot from that, this is in essence equivalent to booting from USB.

    You could then upgrade or reinstall your original guest OS and remove newly added VHD afterwards.
      My Computer


  5. Posts : 31,692
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #5

    The 'updating' in the title implies an upgrade to 20H2 rather than a clean install, so you'd not need to be able to boot. Just be able to see the contents of the USB (via sharing, or a VHD copy) so that you could run Setup from within the VM's Windows.
      My Computers


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

    zebal said:
    Booting directly from USB I think is not possible, but like Bree suggested you can add another VHD drive to ISCI controller in your VM settings, copy USB contents to it and boot from that, this is in essence equivalent to booting from USB.

    You could then upgrade or reinstall your original guest OS and remove newly added VHD afterwards.
    Hi folks

    If you have KVM/QEMU as your virtualisation system then you CAN boot from a USB drive.

    For other virtualisation systems why not just set the iso as a DVD image in the "add hardware" of your VM, and then set in the VM to boot into firmware, set the iso as the boot device and then run the appropriate setup.exe file.

    @zebal

    @x509

    If you have VMWare player the boot into firmware doesn't exist in the menu but you can enable it once when you need it -- it only works for that boot but if you need it again just repeat the process.

    In your config file for the VM edit with notepad and add this line :

    bios.forceSetupOnce = "TRUE"

    also to give you more time at boot options add this line to the .vmx file

    bios.bootDelay = "xxxx"

    "xxxx" is time in millisecs.


    Cheers
    jimbo
    Last edited by jimbo45; 22 Nov 2020 at 09:57.
      My Computer


  7. Posts : 18,433
    Windows 11 Pro
       #7

    x509 said:
    Updating a VM to Windows 20H2

    How do I do that from a USB drive?
    Well, it can be done, but it isn't easy. If we are talking about Windows Hyper-V. You have to make the USB drive available to the Hyper-V hypervisor. In order to do that you need to set it to offline using diskpart. If the USB drive is detected by Windows as a removable drive, then you need to create a custom driver for the drive so that it is recognized as a fixed drive, then you can set it to offline with diskpart.

    Once you have the USB drive set to offline, then you can attach it to a SCSI controller for the VM. Then the USB drive should get a drive letter in your running VM and you can use it to upgrade the VM to 20H2.

    If it were I, though....I'd just attach a 20H2 ISO file to the VM as a DVD drive. Way easier.
      My Computer


  8. Posts : 15,499
    Windows10
       #8

    NavyLCDR said:
    Well, it can be done, but it isn't easy. If we are talking about Windows Hyper-V. You have to make the USB drive available to the Hyper-V hypervisor. In order to do that you need to set it to offline using diskpart. If the USB drive is detected by Windows as a removable drive, then you need to create a custom driver for the drive so that it is recognized as a fixed drive, then you can set it to offline with diskpart.

    Once you have the USB drive set to offline, then you can attach it to a SCSI controller for the VM. Then the USB drive should get a drive letter in your running VM and you can use it to upgrade the VM to 20H2.

    If it were I, though....I'd just attach a 20H2 ISO file to the VM as a DVD drive. Way easier.
    If Hyper-V vm is any version of Windows except Home/Home SL i.e. supports rdp server, you can access it in enhanced mode and it will recognise usb drives directly.

    Of course, as you say, the iso approach is the easiest provided you do not want to modify any iso files.
      My Computer


  9. Posts : 18,433
    Windows 11 Pro
       #9

    cereberus said:
    If Hyper-V vm is any version of Windows except Home/Home SL i.e. supports rdp server, you can access it in enhanced mode and it will recognise usb drives directly.

    Of course, as you say, the iso approach is the easiest provided you do not want to modify any iso files.
    I did not know that....time for some testing!
      My Computer


  10. Posts : 31,692
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #10

    NavyLCDR said:
    I did not know that....time for some testing!

    Some tutorials to get you going


    * The Hyper-V host (ex: your PC) must have Enhanced session mode policy and Enhanced session mode settings turned on.
    * The Hyper-V virtual machine (guest) must have Remote Desktop Services enabled and run Windows Server 2012 R2, Windows Server 2016, Windows 8.1, or Windows 10 as the guest operating system.
    * Enhanced session mode isn't available for generation 1 (unless Windows 10 Pro, Education, or Enterprise) virtual machines or for virtual machines that run non-Windows operating systems.
    Turn On or Off Hyper-V Enhanced Session Mode in Windows 10

    Enhanced session mode provides the following new capabilities for Virtual Machine Connection sessions:

    • Display Configuration
    • Audio redirection
    • Printer redirection
    • Full clipboard support (improved over limited prior-generation clipboard support)
    • Smart Card support
    • USB Device redirection
    • Drive redirection
    • Redirection for supported Plug and Play devices
    Use Local Devices and Resources on Hyper-V Virtual Machine in Windows
      My Computers


 

  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 21:47.
Find Us




Windows 10 Forums