Activate Hyper-V on a Windows Server VPS
You can activate Hyper-V on a OuiHeberg Windows Server VPS: nested virtualization is enabled there. This guide shows how to check the Windows Server edition, install the Hyper-V role with PowerShell, Server Manager or DISM, then give your virtual machines a network and create the first one.
Check the VPS before installing
A VPS is already a virtual machine. To run Hyper-V inside it, the host's hypervisor must pass the processor's virtualization extensions on to the VPS: this is nested virtualization. It is enabled on OuiHeberg Windows VPS, so there is nothing to request. Without it, the role installation would fail with the message "The processor does not have required virtualization capabilities".
Do check the Windows Server edition, though. The Hyper-V role is available in the Standard and Datacenter editions. These two commands, in an administrator PowerShell, show the installed edition.
Get-ComputerInfo | Select-Object WindowsProductName, WindowsEditionId
DISM /online /Get-CurrentEdition
For resources, plan at least 4 GB of memory for the VPS, 8 GB for usable VMs, and about 20 GB of disk per VM.
Activate Hyper-V with PowerShell
This is the quickest method. Open PowerShell as administrator.
Install the role with its management tools. The server restarts on its own at the end.
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -RestartAfter the restart, log back in and check the installation. The
Install Statecolumn should readInstalled.Get-WindowsFeature -Name Hyper-VCheck that the virtual machine management service is running. The expected result is
RunningandAutomatic.Get-Service -Name vmms | Select-Object Name, Status, StartType

-IncludeManagementTools adds Hyper-V Manager and the PowerShell cmdlets. If Install State stays at Available, run the installation again.
Activate Hyper-V with Server Manager
Windows labels are quoted in English, the language of the delivered system.
Open Server Manager, then the Manage › Add Roles and Features menu.
Choose Role-based or feature-based installation, then select the local server.
In Server Roles, tick Hyper-V. In the window that opens, click Add Features to add the management tools.
At the Virtual Switches step, do not tick any network adapter. You will create the switch later.
Tick Restart the destination server automatically if required, then click Install.
The procedure is the same on Windows Server 2019, 2022 and 2025.
Activate Hyper-V with DISM
DISM suits deployment scripts. It does not restart the server on its own.
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V /NoRestart
shutdown /r /t 0
After the restart, check the feature status, then add the management tools, which DISM does not install.
DISM /Online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V
Install-WindowsFeature -Name Hyper-V-Tools, Hyper-V-PowerShell
Give the virtual machines a network
A VM communicates through a virtual switch. There are three types.
| Type | VPS network | Host | Between VMs | Use |
|---|---|---|---|---|
| External | Yes | Yes | Yes | VM with its own public address |
| Internal | No | Yes | Yes | VMs that reach the Internet through the host's NAT |
| Private | No | No | Yes | Closed lab, traffic between VMs only |
Internal switch with NAT (recommended on a VPS)
The VPS has a single network adapter. The simplest option is an internal switch: the VPS acts as the gateway and translates the VMs' addresses.
# Create the internal switch
New-VMSwitch -Name "vSwitch-NAT" -SwitchType Internal
# Give the host an address on this network
New-NetIPAddress -IPAddress 192.168.100.1 -PrefixLength 24 -InterfaceAlias "vEthernet (vSwitch-NAT)"
# Create the NAT
New-NetNat -Name "NAT-VMs" -InternalIPInterfaceAddressPrefix 192.168.100.0/24
In each VM, set a fixed address on the 192.168.100.0/24 network, for example 192.168.100.10, with 192.168.100.1 as gateway and a public DNS server. To publish a VM service, forward a host port to it, then open that port in the VPS firewall.
# VPS port 8080 leads to port 80 of VM 192.168.100.10
Add-NetNatStaticMapping -NatName "NAT-VMs" -Protocol TCP -ExternalIPAddress 0.0.0.0 -ExternalPort 8080 -InternalIPAddress 192.168.100.10 -InternalPort 80
The guide How to open a port in Windows Firewall on a VPS explains how to open the port.
External switch
An external switch connects the VMs to the VPS network adapter. Each VM then needs its own public IP address. Replace Ethernet with the adapter name given by Get-NetAdapter.
# Exact name of the network adapter
Get-NetAdapter
# Create the external switch
New-VMSwitch -Name "vSwitch-External" -NetAdapterName "Ethernet" -AllowManagementOS $true
Creating the external switch takes over the VPS network adapter, and the RDP session may drop. Run it from the console on the VPS page in the client area.
In Hyper-V Manager, you can also create switches from Virtual Switch Manager in the right-hand pane.
Create your first virtual machine
These commands create a generation 2 VM with 2 GB of memory and a 40 GB disk, then attach it to the NAT switch.
New-VM `
-Name "VM-Test-01" `
-MemoryStartupBytes 2GB `
-Generation 2 `
-NewVHDPath "C:\VMs\VM-Test-01.vhdx" `
-NewVHDSizeBytes 40GB `
-SwitchName "vSwitch-NAT"
# Two virtual processors
Set-VMProcessor -VMName "VM-Test-01" -Count 2
# Dynamic memory (optional)
Set-VMMemory -VMName "VM-Test-01" -DynamicMemoryEnabled $true -MinimumBytes 512MB -MaximumBytes 4GB
# Mount the installation ISO and boot from it
Add-VMDvdDrive -VMName "VM-Test-01" -Path "C:\ISOs\install.iso"
Set-VMFirmware -VMName "VM-Test-01" -FirstBootDevice (Get-VMDvdDrive -VMName "VM-Test-01")
# Start the VM
Start-VM -Name "VM-Test-01"
In Hyper-V Manager, go through New › Virtual Machine. Choose generation 2, at least 2048 MB of memory, the switch created above, a new VHDX disk and your ISO.
| Use | Memory | Virtual processors | Memory type |
|---|---|---|---|
| Development, testing | 1 to 2 GB | 1 to 2 | Dynamic |
| Web or app server | 2 to 4 GB | 2 | Dynamic |
| Database | 4 to 8 GB | 2 to 4 | Static |
| Critical production | 8 GB and more | 4 and more | Static |
The license included with the VPS covers the VPS itself. To install Windows in a VM, plan a license for that system. The guide Activate a Windows Server license on a VPS covers key-based activation.
Checkpoints and backups
| Criterion | Standard checkpoint | Production checkpoint |
|---|---|---|
| Memory captured | Yes | No |
| Data consistency | Partial | Application-consistent through VSS |
| Restore | Exact state of the VM at the checkpoint | Clean start, as after a shutdown |
| For | Testing and debugging | Production VMs (SQL Server, IIS, Active Directory) |
Take a checkpoint before every major change.
# Production checkpoint
Checkpoint-VM -Name "VM-Test-01" -SnapshotName "Before-Update-$(Get-Date -Format 'yyyyMMdd')" -CheckpointType Production
# List checkpoints
Get-VMCheckpoint -VMName "VM-Test-01"
# Restore a checkpoint
Restore-VMCheckpoint -VMName "VM-Test-01" -Name "Before-Update-20261104"
A checkpoint is not a backup: it lives on the same disk as the VM. To back up the VPS and its VMs, see Back up your Windows VPS.
Size memory and processors
Dynamic memory lets Hyper-V give and take back memory as the VM needs it. It lets you fit several light VMs. Static memory sets a fixed amount, with no reallocation. Choose it for a database, a game server or a latency-sensitive application.
| VPS memory | Keep for the host | Possible VMs |
|---|---|---|
| 4 GB | 1.5 GB | One 2 GB VM, with dynamic memory |
| 8 GB | 2 GB | Two or three light VMs, or one 4 to 6 GB production VM |
| 16 GB | 2 to 3 GB | Three to five VMs, dynamic or static memory as needed |
| 32 GB | 3 to 4 GB | Six to ten VMs, with static memory if needed |
Always keep memory for the VPS itself. On the CPU side, keep the total vCPUs of the VMs under twice the vCPUs of the VPS. Beyond that, the VMs compete for the processor.
Secure Hyper-V
Keep Secure Boot on for generation 2 VMs: it blocks unsigned boot loaders. For a Linux VM, choose the Microsoft UEFI Certificate Authority template.
Add a virtual TPM to sensitive VMs. It allows BitLocker inside the VM.
Keep production and test VMs on separate switches.
Encrypt VM exports: an unencrypted VHDX file gives access to the whole disk.
Limit the
Hyper-V Administratorsgroup to the accounts that need it.Keep an eye on the Hyper-V admin log.
# Secure Boot (Windows VM)
Set-VMFirmware -VMName "VM-Prod-01" -EnableSecureBoot On
# Secure Boot for a Linux VM
Set-VMFirmware -VMName "VM-Prod-01" -SecureBootTemplate MicrosoftUEFICertificateAuthority
# Virtual TPM (local key protector, then TPM)
Set-VMKeyProtector -VMName "VM-Prod-01" -NewLocalKeyProtector
Enable-VMTPM -VMName "VM-Prod-01"
# Members of the Hyper-V Administrators group
Get-LocalGroupMember -Group "Hyper-V Administrators"
# Latest VM management events
Get-WinEvent -LogName "Microsoft-Windows-Hyper-V-VMMS-Admin" -MaxEvents 50
Fix common errors
The processor does not have required virtualization capabilities
Windows does not see the processor's virtualization extensions and refuses to install the role or start a VM. On a OuiHeberg VPS, open a ticket with the message shown. With another host, it is up to them to expose these extensions to your machine. On a Hyper-V host, this is done with the VM stopped, using Set-VMProcessor -VMName "VM-Test-01" -ExposeVirtualizationExtensions $true. The same command lets you run Hyper-V inside one of your own VMs.
A hypervisor is already running
VirtualBox or VMware Workstation conflicts with Hyper-V. Uninstall them, then restore the hypervisor launch setting and restart.
bcdedit /set hypervisorlaunchtype auto
Hyper-V Manager does not open
The vmms service is stopped. Start it and set it to start automatically.
Start-Service -Name vmms
Set-Service -Name vmms -StartupType Automatic
Cannot create VMs
Your account is in neither Administrators nor Hyper-V Administrators. Add it.
Add-LocalGroupMember -Group "Hyper-V Administrators" -Member "adminops"
A VM has no network
Check that the VM is connected to the right switch, then its address and gateway settings.
Get-VMNetworkAdapter -VMName "VM-Test-01" | Select-Object SwitchName, IPAddresses
Performance drops
Dynamic memory set too low makes the VM swap. Raise the minimum memory or switch the VM to static memory.
Set-VMMemory -VMName "VM-Prod-01" -DynamicMemoryEnabled $false -StartupBytes 4GB
Uninstall Hyper-V
Export or back up your VMs first. Their VHDX files stay on the disk, but Hyper-V no longer manages them.
Remove-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
Need help?
Open a ticket from Tickets › Open a Ticket, or from the Contact support tile at the bottom of the VPS page. In the Related Service field, pick the VPS so the team saves time. You can also ask your question on the OuiHeberg Discord.
Windows Server 2025 with the license included, Remote Desktop access and management from the client area.
View plans →