Hello Francois, I am Henry and I want to share my insights about your issue.
The error "Video remoting was disconnected" means your client successfully told the host to start the VM, but when it tried to establish the separate video stream on port 2179, that connection failed. This points to a connectivity or authentication failure. The connection request from your client PC is being blocked before it can be fully processed by the Hyper-V service (VMMS).
The most common blockers are:
- The Firewall: Blocks the connection on the required port (TCP 2179).
- Authentication Failure: Your credentials can't be passed correctly to the service (the "double-hop" problem), so the service rejects the connection.
Before proceeding with troubleshooting, could you please open Event Viewer and check the Hyper-V-VMMS log to see if any error entries appear?
Here's what I recommend for troubleshooting:
You'll need to run these commands on the Server Core host, either through an SSH session or a remote PowerShell session (Enter-PSSession).
Step 1: Enable the Firewall Rule on the Host Server
- Check the existing rule:
Get-NetFirewallRule -DisplayName "Hyper-V (VMMS-In)"
- Enable the rule for all profiles to ensure it's not a firewall issue:
Enable-NetFirewallRule -DisplayName "Hyper-V (VMMS-In)"
Set-NetFirewallRule -DisplayName "Hyper-V (VMMS-In)" -Profile Any
After running this, try connecting to the VM console again.
Step 2: Remotely connecting to a VM console requires your credentials to be passed from the host to the VM service, a "double-hop" that is blocked by default. Enabling CredSSP fixes this.
- On your Windows 10 Client PC (run in an Administrator PowerShell):
Enable-WSManCredSSP -Role Client -DelegateComputer "Your-HyperV-Host-Name"
(Replace Your-HyperV-Host-Name with the actual name of your server).
- On your Windows Server Core Host (run in PowerShell):
Enable-WSManCredSSP -Role Server
After enabling it on both machines, try connecting to the VM console again.
Step 3: Ensure your user account is a member of the local Hyper-V Administrators group on the host server.
On your Windows Server Core Host, run this command in PowerShell to add your user: Add-LocalGroupMember -Group "Hyper-V Administrators" -Member "YourDomain\YourUser"
(Replace YourDomain\YourUser with your actual username).
You may need to close and reopen Hyper-V Manager for the new permissions to apply. Hope one of these works for you.