Vmcompute.exe (the Host Compute Service) and HNS (Host Network Service) are core Windows components that are enabled by turning on the Windows virtualization features and ensuring virtualization support in firmware. They are not installed as separate software packages.
Use these steps on the Hyper-V host:
- Enable hardware virtualization in firmware (UEFI/BIOS)
- Restart the computer and enter UEFI/BIOS setup.
- Locate the CPU virtualization setting (for example, Intel VT-x/VMX or AMD-V) and enable it.
- Save changes and reboot.
- If unsure how to do this, follow the vendor-specific guidance for the PC manufacturer (Acer, Asus, Dell, HP, Lenovo) or device documentation as described in the virtualization article.
- Turn on Windows virtualization features
- In Windows, select Start, type Windows features, and select Turn Windows features on or off.
- In the Windows Features dialog, enable at least:
- Virtual Machine Platform (this is required for modern VM/container scenarios and uses vmcompute.exe and HNS).
- If using Hyper-V, also enable Hyper-V (Hyper-V Platform and Hyper-V Management Tools).
- Select OK and restart the computer when prompted.
- Verify that vmcompute.exe and HNS are running
- After reboot, open Task Manager → Details and confirm that vmcompute.exe is present when Hyper-V/Virtual Machine Platform is in use.
- HNS is the service behind the Host Compute Network (HCN) API and is started automatically when virtualization networking is used (for example, when creating Hyper-V virtual switches or container networks). There is no separate manual “enable” step beyond turning on the virtualization features.
- Prepare networking and disks for the new software package
- The Host Compute System (HCS) and Host Compute Network (HCN) APIs assume that required host resources already exist:
- Create or provide virtual hard disks (VHD/VHDX) for VMs.
- Configure networking (for example, Hyper-V virtual switches or HCN networks/endpoints) before creating VMs or containers.
- The new software package should then use the HCS/HCN APIs to create and manage compute systems (VMs/containers) and their networks.
- The Host Compute System (HCS) and Host Compute Network (HCN) APIs assume that required host resources already exist:
If vmcompute.exe or HNS still appear to be missing or not working after enabling these features and rebooting, check for:
- Antivirus or security software interfering with Hyper-V or vmcompute.exe, and configure exclusions as recommended for Hyper-V hosts.
- Errors in the Windows Event Log related to vmcompute or Hyper-V services.
References:
- Enable Virtualization on Windows
- Hyper-V virtual machines don't start after you upgrade to Windows 10
- Virtual machines are missing, or error 0x800704C8, 0x80070037, or 0x800703E3 occurs when you try to start or create a virtual machine
- Host Compute System Overview
- Host Compute Network (HCN) service API for VMs and containers
- Compute System Samples