Managing Virtual Machines on Server with Hyper-V role from server manager is an easy task . If you need to take remote access of Hyper-V management snap-in on your desktop, you will need R-SAT tool . In stallation and configuration of R-SAT tool on the desktop machine will enable remote access of Hyper-V management snap-in.

Downloadable link

Server Side Configuration for Hyper-V manager

I am using Microsoft Hyper-V Windows 2008 R2 [http://www.microsoft.com/en-us/download/details.aspx?id=3512] for testing ,most of the time configuration will not be much of a difference.

NO GUI on core server . You can access these 5 application Task Manager, Notepad , CMD, regedit and iscsicpl.exe [iSCSI console] on core server.

STEP 1

Run Sconfig.cmd [Default Location :: WINDOWS\SYSTEM32]

sconfig

sconfig

 

STEP 2

Select Option 4 “Configure Remote Management

Configuring Remote Management in sconfig

Configuring Remote Management in sconfig

STEP 3

Select Option 1 “Allow MMC Remote Management

STEP 4

Select Option 2 “Enable Windows PowerShell

Enable Windows Powershell in sconfig

Enable Windows Powershell in sconfig

STEP 5

REBOOT SERVER

Restart Option after allowing remote mmc  and powershell

Restart Option after allowing remote mmc and powershell

STEP 6

Run Sconfig.cmd ,Select option 4 “Configure Remote Management

STEP 7

Select Option 3 “Allow Server Manager Remote Management

Allowing Server Manager Remote Management

Allowing Server Manager Remote Management

STEP 8

Select Option 5 to “Return to main menu

STEP 9

Select Option 3 “Add Local Administrator

When Prompted for User fill “USER_NAME” [MUST take it from customer in advance]
When Prompted for Password fill “PASSWORD” [Must be same on all server and desktop machine/Domain environment]

STEP 10

Run in Command prompt if not user

runas /user:administrator notepad \"c:\Windows\System32\drivers\etc\hosts"

if user is administrator

notepad \"c:\Windows\System32\drivers\etc\hosts"

STEP 11

Add <IP of Windows 7 Machine> <Hostname of Windows 7 Machine> and save the notepad before closing.

hosts file

hosts file

 

STEP 12

Run in the elevated command prompt

netsh advfirewall set allprofiles state off

STEP 13

Execute in powershell

winrm set winrm/config/client @{TrustedHosts="*"}

STEP 14

Download or Copy HVRemote.wsf file on the Node. [HVremote]

STEP 15

After configuration on both client and node side execute following command in the evelvated command prompt from the location where HVRemote is copied [Its just to verify that the configuration is working fine]

Cscript HVRemote /show /target:Client_Name

 

Client Side Configuration for Hyper-V manager

 

STEP 1

HYPER-V Manager can be configured on Windows 7 [Professional , Enterprise, Ultimate] Editions . Check and verify.

STEP 2

Verify same USER_NAME and PASSWORD with administrative privilage is configured on Client machine which is on All Nodes.

STEP 3

Open[Create if not available] “HOSTS” file name from the location “Windows/system32/drivers/etc”

STEP 4

Add <IP of Node> <Hostname of Node> and save the notepad before closing. [Please verify by running “hostname” in the command prompt on node.

STEP 5

Download and Install the R-SAT [Remote Server Administrative Tools] on the Client machine from above mentioned link.

STEP 6

Enable Hyper-V Tools from

Control Panel-> Program and Features-> Turn Windows features on or off -> Remote Server Administration Tools-> Hyper-v Tools

and click OK .

Hyper-V tools in Windows Feature after R-SAT installation

Hyper-V tools in Windows Feature after R-SAT installation

STEP 7

Open Command Prompt in elevated mode [Run as Administrator]

STEP 8 [This step can be ignored ]

Execute and press “y” as and when needed

winrm quickconfig 

STEP 9 [This step can be ignored]

Execute

winrm set winrm/config/client @{TrustedHosts="Node_Name_or_IP"}

STEP 10

Execute

netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes
OUTPUT : Updated 6 rule(s). Ok.

STEP 11

Download or Copy HVRemote.wsf file on the Node. Go to the location of Hvremote.wsf file in the command prompt.

STEP 12

Execute

cscript hvremote.wsf /mode:client /anondcom:grant /firewallhypervclient:enable /mmc:enable

STEP 13

After configuration on both client and node side , execute following command in the evelvated command prompt from the location where HVRemote is copied

Cscript HVRemote /show /target:Node_Name

Note : If client is in Domain Environment please run following command in the elevated Command prompt on client side :: cmdkey /add:servername /user:servername\accountname /pass

TROUBLESHOOTING

Problem 1

Unable to install R-SAT with the error

Installer encountered an error: 0x80070422. The service cannot be started, either because it is disabled or because it has no enable devices associated with it.

R-SAT installation error

R-SAT installation error

FIX : Check windows update service it must be started.

Problem 2

Access denied error on the right pane of Hyper-V manager MMC snap-in.

hyperv manager access denied

hyperv manager access denied

FIX : Run dcomcnfg.exe in command promt with administrative previlege and verify Remote launch for everyone should be checked [enabled].

Dcom Launch permission

Dcom Launch permission

Problem 3

After some time[default 30 days]  you start getting access denied error .

FIX : Common user on Core server node and desktop password may expires. If the time duration is not a constrain then password may have been changed. You can verify it by taking rdp of the core server with the same credentials.