Enabling Windows Remote Management
Turbonomic communicates with your Hyper-V servers using Web Services Management (WS-Management), which is implemented on Microsoft platforms using Windows Remote Management (WinRM). The following steps show how to enable WinRM on a single host, using the command line.
-
Ensure Windows Firewall is running on the host.
For you to configure WinRM successfully, Windows Firewall must be running on the host. For more information, see the Microsoft Knowledge Base article #2004640 (http://support.microsoft.com/kb/2004640).
-
Set up a Service Principal Name (SPN) for the host machine.
The machine must have a SPN of the form,
protocol/host_address
. For example,WSMAN/10.99.9.2
.To get a list of SPNs for the machine, run the following in the command window:
setspn -l <vmm-server-name>
If there is no valid SPN in the list, create one by running the command:
setspn -A protocol/host-address:port
where
port
is optional. For example:setspn -A WSMAN/10.99.9.2:VMM-02
-
Set up the Windows Remote Management (WinRM) service to run on startup.
Run the
quickconfig
utility to set up the WinRM service. Thequickconfig
utility:-
Configures the WinRM service to auto-start
-
Configures basic authentication and disables unencrypted traffic
-
Creates a firewall exception for the current user profile
-
Configures a listener for HTTP and HTTPS on any IP address
-
Enables remote shell access
To run
quickconfig
, log into a command window as Administrator on the host machine. Then execute the following commands:winrm quickconfig
Enter
y
to accept thequickconfig
changes -
-
Set permissions on the host machine.
Execute the following commands in the command window to modify the settings made by
quickconfig
:-
To set the memory capacity for remote shells:
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="1024"}
-
To set up an unsecured HTTP connection:
winrm set winrm/config/service @{AllowUnencrypted="true"}
winrm set winrm/config/service/Auth @{Basic="true"}
-
These steps showed you how to enable WinRM for a single host. Some users find the following methods useful for enabling WinRM on multiple hosts: