Hyper-V – Windows Blog by Brink

Hyper-V

Enable or Disable BSOD Crash on Ctrl+Scroll Lock in Hyper-V

A BSOD (blue screen of death) error (also called a stop error) can occur if a problem causes your PC to shut down or restart unexpectedly (aka: crash). When you experience this type of error, you won’t be able to see things like the Start menu or the taskbar on the screen when your PC is turned on. Instead you might see a blue screen with a message that your PC ran into a problem and needs to restart.

Windows has a hidden feature that you can enable to be able to manually force a BSOD by holding down the rightmost Ctrl key, and press the Scroll Lock key twice while in a Hyper-V gen 1 or gen 2 virtual machine (guest OS)..

When used, the system calls KeBugCheck and issues bug check 0xE2 (MANUALLY_INITIATED_CRASH). Unless crash dumps have been disabled, a crash dump file is written at this point.

This tutorial will show you how to enable or disable the ability to manually force a BSOD crash on Ctrl+Scroll Lock in a Hyper-V virtual machine on a Windows 10 and Windows 11 computer.

Read more…

Change Automatic Stop Action of Hyper-V Virtual Machine in Windows 11

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems can be used and managed just as if they were physical computer systems, however they exist in virtualized and isolated environment. Special software called a hypervisor manages access between the virtual systems and the physical hardware resources. Virtualization enables quick deployment of computer systems, a way to quickly restore systems to a previously known good state, and the ability to migrate systems between physical hosts.

Hyper-V is only available on 64-bit versions of Windows 10/11 Pro, Enterprise, and Education. Hyper-V is not available on the Home edition.

The default automatic stop action is to save the state of virtual machines at the shut down or restart of the Hyper-V host. It means that if a VM was running before a shut down or restart, Hyper-V will start it automatically at the next startup. The automatic stop action is configured for each VM individually.

There are three options available to manage the automatic stop action of a Hyper-V virtual machine (VM):

  • Save the virtual machine state = Hyper-V will reserve disk space equal to the amount of memory used by the virtual machine when it is running so that memory can be written to disk when the physical computer shuts down or restarts. At the next startup, the virtual machine will automatically start and continue as it was.
  • Turn off the virtual machine = This option will pull the plug on the virtual machine. No state information is saved. The guest OS will act as if the virtual machine lost power if/when it is started up again. You can use this option if you don’t care about the state of a virtual machine and you need a quicker host shutdown.
  • Shut down the guest operating system = The guest OS of the virtual machine will be gracefully shut down when before the host will be shut down or restarted. No state is saved. The downside is that the guest OS and its services will take time to start up when the host restarts. You should consider delaying and ordering the start up of virtual machines if you select this option.

This tutorial will show you how to change the automatic stop of action of a Hyper-V virtual machine for your account in Windows 10 and Windows 11.

Read more…

Enable or Disable Hyper-V in Windows 11

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems can be used and managed just as if they were physical computer systems, however they exist in virtualized and isolated environment. Special software called a hypervisor manages access between the virtual systems and the physical hardware resources. Virtualization enables quick deployment of computer systems, a way to quickly restore systems to a previously known good state, and the ability to migrate systems between physical hosts.

When Hyper-V is enabled, each account can use Hyper-V Manager (virtmgmt.msc) to manage their own virtual machines.

This tutorial will show you how to enable or disable the Hyper-V feature for all users in Windows 10 and Windows 11.

Read more…

Create Shortcut of Hyper-V Virtual Machine in Windows 11

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems can be used and managed just as if they were physical computer systems, however they exist in virtualized and isolated environment. Special software called a hypervisor manages access between the virtual systems and the physical hardware resources. Virtualization enables quick deployment of computer systems, a way to quickly restore systems to a previously known good state, and the ability to migrate systems between physical hosts.

Hyper-V is only available on 64-bit versions of Windows 10/11 Pro, Enterprise, and Education. Hyper-V is not available on the Home edition.

You can create a shortcut of a Hyper-V virtual machine to make it easier to directly connect and start the virtual machine. You can Pin to taskbar, Pin to Start, add to All apps, assign a keyboard shortcut to, or move this shortcut to where you like for easy use.

This tutorial will show you how to create a shortcut of a Hyper-V virtual machine in Windows 10 and Windows 11.

Read more…

Automatically Run Hyper-V Virtual Machines at Startup in Windows 11

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems can be used and managed just as if they were physical computer systems, however they exist in virtualized and isolated environment. Special software called a hypervisor manages access between the virtual systems and the physical hardware resources. Virtualization enables quick deployment of computer systems, a way to quickly restore systems to a previously known good state, and the ability to migrate systems between physical hosts.

Hyper-V is only available on 64-bit versions of Windows 10/11 Pro, Enterprise, and Education. Hyper-V is not available on the Home edition.

You can configure Hyper-V virtual machines to automatically run at startup when you boot or restart the computer (host OS).

By default, a Hyper-V host saves the state of virtual machines when restarted. It means that if a VM was running before a restart, Hyper-V will start it automatically. Automatic startup settings are configured for each VM individually.

There are three options available to manage the automatic startup of a Hyper-V virtual machine (VM):

  • Nothing = When a computer (host) boots, the virtual machine will not automatically run at startup (regardless of its state before the host shutdown or restart).
  • Automatically start if it was running when the service stopped = The virtual machine will automatically run at startup only if it has been running when the computer (host) shutdown or restart.
  • Always start this virtual machine automatically= The virtual machine will always run at startup when the computer (host) boots.
    • Automatic start delay = Specify a startup delay for the virtual machine in seconds. You can use the delay to manage the boot order of virtual machines, and reduce the load contention between virtual machines.

This tutorial will show you how to manage running Hyper-V virtual machines at startup for your account in Windows 10 and Windows 11.

Read more…

Create Windows 11 Virtual Machine with Hyper-V

Windows 11 has all the power and security of Windows 10 with a redesigned and refreshed look. It also comes with new tools, sounds, and apps. Every detail has been considered. All of it comes together to bring you a refreshing experience on your PC.

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems can be used and managed just as if they were physical computer systems, however they exist in virtualized and isolated environment. Special software called a hypervisor manages access between the virtual systems and the physical hardware resources. Virtualization enables quick deployment of computer systems, a way to quickly restore systems to a previously known good state, and the ability to migrate systems between physical hosts.

Hyper-V is available on 64-bit versions of Windows 10 Pro, Enterprise, and Education. It is not available on the Home edition.

This tutorial will show you how to set up and create a Windows 11 virtual machine with Hyper-V on a Windows 10 PC.

Read more…

How to Add Hyper-V Manager to Control Panel in Windows 10

Whether you are a software developer, an IT professional, or a technology enthusiast, many of you need to run multiple operating systems. Hyper-V lets you run multiple operating systems as virtual machines on Windows.

Hyper-V specifically provides hardware virtualization. That means each virtual machine runs on virtual hardware. Hyper-V lets you create virtual hard drives, virtual switches, and a number of other virtual devices all of which can be added to virtual machines.

Hyper-V is only available on 64-bit versions of Windows 10 Pro, Enterprise, and Education. It is not available on the Home edition.

Hyper-V Manager provides management access to your virtualization platform.

This tutorial will show you how to add a Hyper-V Manager applet to the Control Panel for all users in Windows 10.

Read more…

How to Create and Set Up New VHD or VHDX File in Windows 10

VHD (Virtual Hard Disk) is a file format which represents a virtual hard disk drive (HDD). It may contain what is found on a physical HDD, such as disk partitions and a file system, which in turn can contain files and folders. It is typically used as the hard disk of a virtual machine.

VHDX is a Hyper-V virtual hard disk file format. VHDX has a much larger 64 TB storage capacity than the older VHD format 2TB limit. It also provides data corruption protection during power failures and optimizes structural alignments of dynamic and differencing disks to prevent performance degradation on new, large-sector physical disks.

You can choose to have a fixed size or dynamically expanding VHD or VHDX file.

  • Fixed size = This type of disk provides better performance. The virtual hard disk file is allocated to its maximum size when the virtual hard disk is created.
  • Dynamically expanding = This type of disk provides better use of physical storage space. The virtual hard disk file grows to its maximum size as data is written to the virtual hard disk.

Once you have the new .vhd or .vhdx file created and setup, you can copy or move it to any Windows 10 PC you want to mount it on.

When you mount a .vhd or .vhdx file in Windows, it will be added as a drive in This PC to open it from.

This tutorial will show you how to create and set up (initialized and formatted) a new VHD and VHDX virtual hard disk file in Windows 10.

Read more…

How to Move Hyper-V Virtual Machine in Windows 10

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

If you like, you can move a Hyper-V virtual machine and all files associated with it to a new storage location of your choice.

This tutorial will show you how to completely move a Hyper-V virtual machine to a new location in Windows 10.

Read more…

How to Delete Hyper-V Virtual Machine in Windows 10

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

If you like, you can delete a Hyper-V virtual machine to remove it from the Hyper-V Manager.

When you delete a Hyper-V virtual machine, it deletes the virtual machine’s configuration file, but does not delete any virtual hard drives. If the virtual machine has any checkpoints, these are deleted and merged into the virtual hard disk files after the virtual machine is deleted.

This tutorial will show you how to delete a Hyper-V virtual machine on your Windows 10 PC.

Read more…

How to Rename Hyper-V Virtual Machine in Windows 10

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

You can rename a Hyper-V virtual machine anytime you like.

When you rename a Hyper-V virtual machine, it will only change its name in Hyper-V Manager. It will not change the name of the folder or virtual hard disk (.vhdx) file(s) for the virtual machine.

This tutorial will show you how to rename a Hyper-V virtual machine on your Windows 10 PC.

Read more…

How to Change Display Scaling Zoom Level of Hyper-V Virtual Machine in Windows 10

The Windows 10 Pro, Enterprise, and Education editions include the Hyper-V virtualization technology. Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems can be used and managed just as if they were physical computer systems, however they exist in virtualized and isolated environment. Special software called a hypervisor manages access between the virtual systems and the physical hardware resources. Virtualization enables quick deployment of computer systems, a way to quickly restore systems to a previously known good state, and the ability to migrate systems between physical hosts.

Starting with Windows 10 Insider Preview Build 14959, Microsoft added a new Zoom Level option in the View menu, where you can override the default scaling and set it to 100, 125, 150 or 200 – whichever matches your preference.

This tutorial will show you how to change the Zoom Level of a Hyper-V virtual machine to override its default display scaling (DPI) in Windows 10.

Read more…

Enable or Disable BSOD Crash on Ctrl+Scroll Lock in Hyper-V Virtual Machine

A blue screen error (also called a stop error) can occur if a problem causes your PC to shut down or restart unexpectedly (aka: crash). When you experience this type of error, you won’t be able to see things like the Start menu or the taskbar on the screen when your PC is turned on. Instead you might see a blue screen with a message that your PC ran into a problem and needs to restart.

Windows has a hidden feature that you can enable to be able to manually force a BSOD by holding down the rightmost Ctrl key, and press the Scroll Lock key twice while in a Hyper-V gen 1 or gen 2 virtual machine (guest OS).

When used, the system calls KeBugCheck and issues bug check 0xE2 (MANUALLY_INITIATED_CRASH). Unless crash dumps have been disabled, a crash dump file is written at this point.

This tutorial will show you how to enable or disable to manually force a BSOD crash on Ctrl+Scroll Lock in a Hyper-V virtual machine guest in a Windows 8 and Windows 10 host.

Read more…

How to Use Local Devices and Resources on Hyper-V Virtual Machine in Windows 10

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

You can give a virtual machine access to a computer’s local resources, like a removable USB flash drive, when you use Virtual Connection Manager (VMConnect). To make this happen, turn on enhanced session mode on the Hyper-V host, use VMConnect to connect to the virtual machine, and before you connect, choose the local resource that you want to use.

This tutorial will show you how to use local devices and resources on a Hyper-V virtual machine with enhanced session mode in Windows 10.

Read more…

How to Create a Hyper-V Virtual Machine Connection shortcut in Windows 10

The Windows 10 Pro, Enterprise, and Education editions include the Hyper-V virtualization technology. Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems can be used and managed just as if they were physical computer systems, however they exist in virtualized and isolated environment. Special software called a hypervisor manages access between the virtual systems and the physical hardware resources. Virtualization enables quick deployment of computer systems, a way to quickly restore systems to a previously known good state, and the ability to migrate systems between physical hosts.

You can use Virtual Machine Connection to connect to a Hyper-V virtual machine (guest) on a host server (ex: your PC). The hosts and virtual machines that are available in Hyper-V Manager are the same ones available in Virtual Machine Connection.

This tutorial will show you how to create or download a Hyper-V Virtual Machine Connection shortcut in Windows 10.

Read more…

How to Turn On or Off Hyper-V Enhanced Session Mode in Windows 10

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

You can give a virtual machine access to a computer’s local resources, like a removable USB flash drive, when you use Virtual Connection Manager (VMConnect). To make this happen, turn on enhanced session mode on the Hyper-V host, use VMConnect to connect to the virtual machine, and before you connect, choose the local resource that you want to use.

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

This tutorial will show you how to turn on or off Hyper-V enhanced session mode for your account and/or all accounts in Windows 10.

Read more…

How to Change Default Folder to Store Hyper-V Virtual Hard Disks

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

A virtual machine in Hyper-V consists of a few files that account for its virtual hardware configuration and the virtual storage (VHD and VHDX files). By default:

• The virtual machine configuration files are stored in “C:\ProgramData\Microsoft\Windows\Hyper-V”.
• The virtual hard drives are stored in “C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks”.

When you create a virtual machine in Hyper-V Manager, you are able to select to use these default locations or specify a folder location on a per virtual machine basis.

If you like, you could change these global default locations within your hosts to make it easier to use your locations by default instead when creating new virtual machines.

This tutorial will show you how to specify the default folder to store virtual machine hard disk files when importing or creating a new Hyper-V virtual machine in Windows 10.

Read more…

How to Change Default Folder to Store Hyper-V Virtual Machines

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

A virtual machine in Hyper-V consists of a few files that account for its virtual hardware configuration and the virtual storage (VHD and VHDX files). By default:

• The virtual machine configuration files are stored in “C:\ProgramData\Microsoft\Windows\Hyper-V”.
• The virtual hard drives are stored in “C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks”.

When you create a virtual machine in Hyper-V Manager, you are able to select to use these default locations or specify a folder location on a per virtual machine basis.

If you like, you could change these global default locations within your hosts to make it easier to use your locations by default instead when creating new virtual machines.

This tutorial will show you how to specify the default folder to store virtual machine configuration files when importing or creating a new Hyper-V virtual machine in Windows 10.

Read more…

How to Export Hyper-V Virtual Machines in Windows 10

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

You can use Hyper-V’s export and import functionality to quickly duplicate virtual machines. Exported virtual machines can be used for backup or as a way to move a virtual machine between Hyper-V hosts.

Import allows you to restore virtual machines. You don’t need to export a virtual machine to be able to import it.

When creating an export of a virtual machine, all associated files are bundled in the export. This includes configuration files, hard drive files, and any existing checkpoint files.

This tutorial will show you how to export a single or all Hyper-V virtual machines (guests) on your Windows 10 PC (host).

Read more…

How to Import Hyper-V Virtual Machines in Windows 10

Hyper-V enables running virtualized computer systems on top of a physical host. These virtualized systems (aka: guests) can be used and managed just as if they were physical computer systems, however they exist in a virtualized and isolated environment.

You can use Hyper-V’s export and import functionality to quickly duplicate virtual machines. Exported virtual machines can be used for backup or as a way to move a virtual machine between Hyper-V hosts.

Import allows you to restore virtual machines. You don’t need to export a virtual machine to be able to import it. Import will try to recreate the virtual machine from whatever is available. Importing a virtual machine registers the virtual machine with the Hyper-V host. A virtual machine export can be imported back into the host from which it was derived or new host.

This tutorial will show you how to import a Hyper-V virtual machine (guest) on your Windows 10 PC (host).

Read more…