HyperVServer Build
-
-
If you are not in an AD environment, there are a number of things you have to do to establish trust between the management system (your laptop) and the Hyper-V server.
-
@black3dynamite said in HyperVServer Build:
I saw this earlier but skimmed over it. Having just re-read it, this was key to do on my Windows 10 client.
Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow delegating fresh credentials with NTLM-only server authentication
Click Enable and add wsman/fqdn-of-hyper-v-host.I'm going to format and start from scratch as previously I had enabled so many firewall rules and bits so want to start clean and see what I need to enable exactly.
Thanks I'll report back
-
These are the steps I follow when setting up a Hyper-V server with a Windows 10 machine to manage in a Workgroup environment. Works perfectly every time.
From Hyper-V Server:
Enable Remote Management
- Select 4 on the menu
- Then select 1 for Enable Remote Management
- Go back to previous menu
Enable Remote Desktop
- Select 7 on the menu
- Then select "e" for enable
- Select 2 on the next screen for Allow clients running ANY version of remote desktop
Run Powershell Commands
- Type powershell in command window and press Enter
- Type "Enable-PSRemoting" and press ENTER
- Type "Enable-WSManCredSSP -Role Server" and press ENTER
- Select "y" when prompted to confirm and press ENTER
- Exit Powershell by typing "exit" and press ENTER
- In command prompt, type "net start winrm" and press ENTER <-- Use this is can't connect later to server
From Windows 10 Machine
- Control Panel -> Programs & Features -> Turn Windows Features On Or Off
- Enable Hyper-V role and press OK
- Launch Powershell as Admin
- Type "Set-Item WSMan:\localhost\Client\TrustedHosts -Value "IP_OF_HYPER-V_SERVER" and press ENTER
- Type "y" when prompted and press ENTER
- Type "Enable-WSManCredSSP -Role client -DelegateComputer "IP_OF_HYPER-V_SERVER" and press ENTER
- Type "y" when prompted and press ENTER
Edit Group Policy
- Click Windows icon and type "gpedit" and open Group Policy program
- Local Computer-> Computer Configuration -> Administrative Templates -> System -> Credential Delegation
- Edit the "Allow delegating fresh credentials with NTLM-Only server authentication"
- Click "Show" button to add items
- Add value "WSMAN/*" to servers list and click OK
Manage Via Hyper-V Manager
- Start Hyper-V Manager and click Connect To Server and add IP address of server
- Select "Connect as another user" and click "Set User"
- Enter user login details with username in format of "WSMAN\Username"
- Create Virtual Switch as needed
-
@nashbrydges said in HyperVServer Build:
These are the steps I follow when setting up a Hyper-V server with a Windows 10 machine to manage in a Workgroup environment. Works perfectly every time.
From Hyper-V Server:
Enable Remote Management
- Select 4 on the menu
- Then select 1 for Enable Remote Management
- Go back to previous menu
Enable Remote Desktop
- Select 7 on the menu
- Then select "e" for enable
- Select 2 on the next screen for Allow clients running ANY version of remote desktop
Run Powershell Commands
- Type powershell in command window and press Enter
- Type "Enable-PSRemoting" and press ENTER
- Type "Enable-WSManCredSSP -Role Server" and press ENTER
- Select "y" when prompted to confirm and press ENTER
- Exit Powershell by typing "exit" and press ENTER
- In command prompt, type "net start winrm" and press ENTER <-- Use this is can't connect later to server
From Windows 10 Machine
- Control Panel -> Programs & Features -> Turn Windows Features On Or Off
- Enable Hyper-V role and press OK
- Launch Powershell as Admin
- Type "Set-Item WSMan:\localhost\Client\TrustedHosts -Value "IP_OF_HYPER-V_SERVER" and press ENTER
- Type "y" when prompted and press ENTER
- Type "Enable-WSManCredSSP -Role client -DelegateComputer "IP_OF_HYPER-V_SERVER" and press ENTER
- Type "y" when prompted and press ENTER
Edit Group Policy
- Click Windows icon and type "gpedit" and open Group Policy program
- Local Computer-> Computer Configuration -> Administrative Templates -> System -> Credential Delegation
- Edit the "Allow delegating fresh credentials with NTLM-Only server authentication"
- Click "Show" button to add items
- Add value "WSMAN/*" to servers list and click OK
Manage Via Hyper-V Manager
- Start Hyper-V Manager and click Connect To Server and add IP address of server
- Select "Connect as another user" and click "Set User"
- Enter user login details with username in format of "WSMAN\Username"
- Create Virtual Switch as needed
MY HERO - I'm in process of re-installing so will follow these steps - Thanks
-
@joel said in HyperVServer Build:
@nashbrydges said in HyperVServer Build:
These are the steps I follow when setting up a Hyper-V server with a Windows 10 machine to manage in a Workgroup environment. Works perfectly every time.
From Hyper-V Server:
Enable Remote Management
- Select 4 on the menu
- Then select 1 for Enable Remote Management
- Go back to previous menu
Enable Remote Desktop
- Select 7 on the menu
- Then select "e" for enable
- Select 2 on the next screen for Allow clients running ANY version of remote desktop
Run Powershell Commands
- Type powershell in command window and press Enter
- Type "Enable-PSRemoting" and press ENTER
- Type "Enable-WSManCredSSP -Role Server" and press ENTER
- Select "y" when prompted to confirm and press ENTER
- Exit Powershell by typing "exit" and press ENTER
- In command prompt, type "net start winrm" and press ENTER <-- Use this is can't connect later to server
From Windows 10 Machine
- Control Panel -> Programs & Features -> Turn Windows Features On Or Off
- Enable Hyper-V role and press OK
- Launch Powershell as Admin
- Type "Set-Item WSMan:\localhost\Client\TrustedHosts -Value "IP_OF_HYPER-V_SERVER" and press ENTER
- Type "y" when prompted and press ENTER
- Type "Enable-WSManCredSSP -Role client -DelegateComputer "IP_OF_HYPER-V_SERVER" and press ENTER
- Type "y" when prompted and press ENTER
Edit Group Policy
- Click Windows icon and type "gpedit" and open Group Policy program
- Local Computer-> Computer Configuration -> Administrative Templates -> System -> Credential Delegation
- Edit the "Allow delegating fresh credentials with NTLM-Only server authentication"
- Click "Show" button to add items
- Add value "WSMAN/*" to servers list and click OK
Manage Via Hyper-V Manager
- Start Hyper-V Manager and click Connect To Server and add IP address of server
- Select "Connect as another user" and click "Set User"
- Enter user login details with username in format of "WSMAN\Username"
- Create Virtual Switch as needed
MY HERO - I'm in process of re-installing so will follow these steps - Thanks
So I followed this to the letter and no luck this time!!!
Last time i did run some PS for firewalls - do I need to do this also on the host? -
@joel said in HyperVServer Build:
@joel said in HyperVServer Build:
@nashbrydges said in HyperVServer Build:
These are the steps I follow when setting up a Hyper-V server with a Windows 10 machine to manage in a Workgroup environment. Works perfectly every time.
From Hyper-V Server:
Enable Remote Management
- Select 4 on the menu
- Then select 1 for Enable Remote Management
- Go back to previous menu
Enable Remote Desktop
- Select 7 on the menu
- Then select "e" for enable
- Select 2 on the next screen for Allow clients running ANY version of remote desktop
Run Powershell Commands
- Type powershell in command window and press Enter
- Type "Enable-PSRemoting" and press ENTER
- Type "Enable-WSManCredSSP -Role Server" and press ENTER
- Select "y" when prompted to confirm and press ENTER
- Exit Powershell by typing "exit" and press ENTER
- In command prompt, type "net start winrm" and press ENTER <-- Use this is can't connect later to server
From Windows 10 Machine
- Control Panel -> Programs & Features -> Turn Windows Features On Or Off
- Enable Hyper-V role and press OK
- Launch Powershell as Admin
- Type "Set-Item WSMan:\localhost\Client\TrustedHosts -Value "IP_OF_HYPER-V_SERVER" and press ENTER
- Type "y" when prompted and press ENTER
- Type "Enable-WSManCredSSP -Role client -DelegateComputer "IP_OF_HYPER-V_SERVER" and press ENTER
- Type "y" when prompted and press ENTER
Edit Group Policy
- Click Windows icon and type "gpedit" and open Group Policy program
- Local Computer-> Computer Configuration -> Administrative Templates -> System -> Credential Delegation
- Edit the "Allow delegating fresh credentials with NTLM-Only server authentication"
- Click "Show" button to add items
- Add value "WSMAN/*" to servers list and click OK
Manage Via Hyper-V Manager
- Start Hyper-V Manager and click Connect To Server and add IP address of server
- Select "Connect as another user" and click "Set User"
- Enter user login details with username in format of "WSMAN\Username"
- Create Virtual Switch as needed
MY HERO - I'm in process of re-installing so will follow these steps - Thanks
So I followed this to the letter and no luck this time!!!
Last time i did run some PS for firewalls - do I need to do this also on the host?WHat error are you getting now? Make sure hyperv server is fully up to date, as well as your Win10 pc
-
I'm getting this error now!
I have just run:
netsh advfirewall firewall set rule group = "XXX" new enable =yesWhere XXX = Remote Event Log Management
Remote Service Management
File and Printer Sharing
Remote Scheduled Tasks
Performance Logs and Alerts
Remote Volume Management
Windows Firewall Remote Management -
@joel said in HyperVServer Build:
I'm getting this error now!
I have just run:
netsh advfirewall firewall set rule group = "XXX" new enable =yesWhere XXX = Remote Event Log Management
Remote Service Management
File and Printer Sharing
Remote Scheduled Tasks
Performance Logs and Alerts
Remote Volume Management
Windows Firewall Remote ManagementAre you connecting as a user that has permission on the host?
-
I'm connecting as the local admin. Ie on my host there is a default 'Administrator' user account.
Within HyperV-Manager I choose 'Connect to server' and Set User as:
Workgroup\administrator and then enter my password -
I found online to run this command on the host - I'm not sure what that is so dont feel comfortable running it. Any ideas?
Run โMOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mofโ
-
@joel said in HyperVServer Build:
I'm connecting as the local admin. Ie on my host there is a default 'Administrator' user account.
Within HyperV-Manager I choose 'Connect to server' and Set User as:
Workgroup\administrator and then enter my passwordTry it as hostname\administrator instead of workgroup
-
sadly no joy - same result even with hostname\administrator
-
@joel said in HyperVServer Build:
sadly no joy - same result even with hostname\administrator
The name of the server, not literally "hostname", right?
-
@obsolesce haha yes. HV01\Administrator
-
@joel said in HyperVServer Build:
@obsolesce haha yes. HV01\Administrator
Can you connect via powershell?
Verify you can ping HV01 by name.
Open up PowerShell on your Win10 PC, and type
Enter-PSSession
, then hit enter.Then enter HV01.
-
@obsolesce said in HyperVServer Build:
@joel said in HyperVServer Build:
@obsolesce haha yes. HV01\Administrator
Can you connect via powershell?
Verify you can ping HV01 by name.
Open up PowerShell on your Win10 PC, and type
Enter-PSSession
, then hit enter.Then enter HV01.
Enter-PSSession -ComputerName HV01 -Credential HV01\Administrator
does work. -
Enter-PSSession -ComputerName HV01 -Credential HV01\Administrator does work - yes this does work!
-
Its just the connecting via hyper-v manager 'Operation not supported' - So how can I allow remote management on the HV01 host or get my host to support Hyper-V Manager?
-
Enter another PSSession to HV01.
Then type
get-service vmms
Does the status say it's running?