Hyper-V provider for VM Manager: manage the Hyper-V virtual machines on this Windows machine, with an interactive console and a serial console in the editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Start, shut down (integration services), reboot and power off.
Interactive graphical console in an editor tab: the same RDP connection Virtual Machine
Connection (vmconnect) uses, rendered by an in-editor RDP client. Keyboard, mouse,
Ctrl+Alt+Del, scaling and Open in New Window work as in other consoles.
Signs in with the Windows account VS Code runs as, like vmconnect: no password and no
elevation (the account must be allowed to manage Hyper-V, e.g. member of "Hyper-V
Administrators"). This uses Windows' SSPI (Negotiate) through PowerShell.
If that fails, or with the cluster setting Console sign-in: Ask for a user name and password,
it asks for an account instead (for a Microsoft account: MicrosoftAccount\you@example.com and
the account password, not the PIN). That sign-in is stored in your OS keychain; VM: Forget
Console Sign-in removes it.
Basic session (default) shows the VM's own screen, including firmware and boot. Enhanced
session (cluster setting) needs guest support (Windows, or Linux with xrdp).
Hyper-V allows one basic console connection per VM; connecting takes over an open vmconnect
window.
One click to the native Virtual Machine Connection.
Serial console on the COM1 named pipe (requires VS Code to run as administrator).
Requirements
Windows 10/11 Pro, Enterprise or Education, or Windows Server, with Hyper-V enabled.
Your account in the Hyper-V Administrators group (or VS Code running elevated).
Run VM: Check Hyper-V Prerequisites to verify the setup.