Posted on April 3, 2014 · Posted in Hyper-V, Windows Server 2012

Remote Hyper-V 2012 management from Windows 8

Hypervisor Hyper-V implies a remote control option as well as many other Windows components. In case when server (or Windows 8 client OS) are included in Windows domain it is quite easy to set Hyper-V remote control. The situation is a little bit more difficult if Hyper-V server (no matter  whether it is major Windows 2012 server or Hyper-V 2012 or Windows 8) is a part of a standard Windows Workgroup.

Hyper-V control Manager connects to the Hyper-V server through WMI (Windows Management Interface). WMI is implemented as COM/DCOM service and is remotely available only for those users who have corresponding requirements DCOM remote launch together with WMI name space rights. On Hyper-V server these rights are given by default to the following groups: Administrators, Remote Management Users, Hyper-V Administrators и Remote COM Users.

There exists one more detail: during connection to the remote server Hyper-V console uses current user credentials. This means that during connection to the Hyper-V server manager will try to connect under current account.

In this article we will show how to set stand-alone server (with Hyper-V role) remote control from  PC under Windows 8 management.

Permission of Hyper-V Remote Control on Windows Server 2012

  1. Go to the users management console  (Control Panel\All Control Panel Items\Administrative Tools\Computer Management\Local Users and Groups\User) and create new user hypevuser, for example.
  2. Add hypervuser user to the local groups:  Administrators, Hyper-V Administrators, Remote Management Users, WinRMRemoteWMIUsers.add hyper-v user to localgroup
  3. Open component control console ( through a: Control Panel\All Control Panel Items\Administrative Tools\Component Services or by running dcomcnfg.exe).
  4. Deploy Component services -> Computers branch. Click by right mouse button on My Computer-> Properties-> COM Security tab. Press Edit Limits button in Access Permissions section. Check if Remote Access is allowed for ANONYMOUS LOGON then add previously created user account and provide it with a Remote Access right (Remote Access option).dcom right for remote hyper-v managment user
  5. Run command prompt with administrative privilege and allow remote control in Firewall rules:
    netsh advfirewall set currentprofile settings remotemanagement enable
    netsh advfirewall firewall set rule group=”Windows Firewall Remote Management” new enable=yes

Widows 8 client setting for Hyper-V server Managment

  1. Install Hyper-V Management Tools in Programs and Features section of Control Panelinstall hyper-v managment tools in windows 8
  2. Create new user account with Hyper-V (hypervuser) role using the same name and password as in Windows Server 2012. Add a user to the local administrators group.
  3. Open computer properties in Components Management console. Go to COM Security tab in Access Permissions section and press Edit Limits button. (Remote Access – Allow). Check if remote access is allowed for ANONYMOUS LOGON.  Add a new user and provide him with Remote Access rights (Remote Access – Allow).
  4. Save credentials for server access by running the following command with administrative privilege:
    cmdkey /add:hyper-v-server-name /user:hypervuser /pass:hypervuserpassword

Note. If there is no record for Hyper-V server in DNS, you must associate it with the name of IP address by editing the hosts (C:\Windows\System32\Drivers\etc\).  For example, the following entry: : HypeVserver1 edit file hosts

  1. Now run Hyper-V Manager on Windows 8 operation station (virtmgmt.msc) on behalf of previously created user and try to connect to the remote server with Hype-V role.

Tip: Check if the right profile (Private Network) is used against network both on client and on server. private network for remote hyperv managment


Related Articles