Setting up a Hyper-V Server 2019 or Hyper-V Server 2016 to boot and run from a USB stick is actually easy to accomplish with the steps shown below.
The most important thing is you need a fast USB 3.0 stick that offers fast random access speeds and high throughput at a good price. One such device is SanDisk Ultra 64GB and larger, with a USB 3.0 connection.
You will need:
- A computer running Windows 8.1 or Windows Server 2012 or later
- The ISO files of Hyper-V Server 2019 or 2016 or 2012 downloaded from Microsoft’s Evaluation center or from here.
- A USB stick or hard drive, ideally USB 3.0. SanDisk Ultra 64GB costs less than $20 and works really well. 32GB is the absolute minimum. A USB 3.0 external hard drive might be a better choice if you need a lot of space and want to also run several VMs.
- Rufus, download from our mirror or from their website
Run Rufus to Prepare the USB Stick
Select the USB stick and the ISO image file you downloaded. Important: Select Windows to Go. If you don’t see that option you are not running Rufus on Windows 8.1 or later or the ISO is not the correct one.
Click start and let it do its magic.
Preparing the USB Stick to Boot Hyper-V Server 2019 from USB 3.0
If you use the Hyper-V Server 2019 (or older versions), there is one additional step necessary after finishing the Rufus installation process. You need to open the Registry Editor and click on “HKEY_LOCAL_MACHINE”. From the main menu click File and Load Hive.
Then navigate to the stick’s file system and select the file X:\Windows\System32\Config\System, where X: is the example drive letter of the USB stick or drive you are using. The registry editor will then ask for a name for a new key to load the hive to. In our example below we used “testttt”:
Then open the newly created node ‘testttt’ and navigate to ControlSet001 then Control and set BootConfigFlags to 1c as shown above. Repeat the steps in ControlSet002. Then go back to the node ‘testttt’ and select unload hive from the main menu. The change is necessary to configure Hyper-V Server to boot from USB and load the drivers at boot time.
Once booted, the Windows installation will finish as usual and ask for a admin password.
Boot Settings to Run Hyper-V Server from a USB Stick
Now the USB stick is ready to boot Hyper-V Server but you need to tell the BIOS that you want to boot from USB.
During the Power On Self Test procedure when the computer boots, most BIOS developers use some F-key or ESC or DEL as a signal that you want to enter the BIOS.
Inside the BIOS change the boot order to try to boot from USB first, before the usual boot device. This will automatically give preference to the USB stick if it is plugged in.
Naturally, the BIOS has to support booting from USB, otherwise the stick won’t boot, but most modern motherboards today support USB boot.
How Well Does it Work?
Generally it works very well but only with the right hardware. We found that some USB sticks are much faster than others. Some sticks are good for copying large files and achieve really fast speeds; however, with many sticks we found random access speeds to be horrible. SanDisk Ultra is a fast stick at a very low price. The next best choice would be a USB 3.0 external drive, ideally SSD if you plan to run several VMs on it. While this kind of a setup is probably not the perfect choice for production systems, it’s a great strategy for software developers, testers, and system integrators who need to run through certain test procedures quickly and painlessly without having to swap hard drives. These USB sticks are also very useful as bootable recovery systems, when your main hard drive fails to boot. You can install BackupChain on the bootable Hyper-V Server stick as well and run disk backups, Hyper-V backups, and even restore cloud backups with it.
Do You Have Hyper-V Backup Software for Your Hyper-V Servers?
Now that you have set up a portable Hyper-V Server, you will definitely want to protect your virtual machines and use our backup solution for Hyper-V, which also backs up physical disks. BackupChain can also clone system disks as well as the disks with your VMs, live from disk to disk, while the system is running without any interference.
Download BackupChain, It’s Fully Functional on Hyper-V Servers
Download BackupChain and give it a test run. It runs on all versions of Windows, including Core installations and Hyper-V Servers.
BackupChain OverviewThe Best Backup Software in 2021 Download BackupChain®
The all-in-one Backup Solution for
Disk Image Backup
Drive Cloning and Disk Copy
Hyper-V Backup and VHD File Backups
VirtualBox Backup and VDI File Backups
VMware Backup and VMDK Backups
FTP Backup and Secure FTPS Backups
Cloud Backup and Remote Backups
File Server Backup and Data Backups
- 18 Hyper-V Tips & Strategies You Need to Know
- Best Practices for Server Backups
- NAS Backup: Buffalo, Drobo, Synology
- How to use BackupChain for Cloud and Remote
- How to Back up Windows 10 Hyper-V VMs
- DriveMaker: Map FTP Site as a Drive Letter (Freeware)