New
#1
Updating a VM to Windows 20H2
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.
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.
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.
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.
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.
Some tutorials to get you going
Turn On or Off Hyper-V Enhanced Session Mode in Windows 10* 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.
Use Local Devices and Resources on Hyper-V Virtual Machine in WindowsEnhanced 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