Hyper-V in an Active Directory Environment
Running Hyper-V in an Active Directory environment is by far the best implementation of Hyper-V. Microsoft has truly shined with the ability to remotely manage a server. The ability to remotely manage the Hyper-V server allows for it to be installed on a Core installation of Windows freeing up those valuable resources from the system for use within the VM’s. When this is combined with an Active Directory Domain Controller, you are now able to manage all your Hyper-V servers from a single Hyper-V Manager running on any 2008 or Vista computer that is connected to the Domain.
- A 64bit Windows 2008 Datacenter server running Hyper-V (Full or Core installation of the OS)
- A global group on the Domain that will be used to manage Hyper-V (The group named Hyper-V will be used from this point forward in the documentation)
- Domain Admin access to enable changes to be made on the Hyper-V server from the computer you are working from.
Configuring the Hyper-V Server
- Open a management connect to the Hyper-V server
- Add Hyper-V group to the Distributed COM Users group
- Add Hyper-V group to the CIMV2 and Virtualization namespaces.
- Add Hyper-V group to the Authorization store for Hyper-V on the Hyper-V server.
- Provide the Hyper-V group permissions to the Hyper-V Directory on the Hyper-V server.
Remote Management Connection
The following information assumes you are logged into a computer on the domain with Domain Admin privileges.
- Open the Control panel -> Administrative Tools -> Computer Management.
- From the Action menu, select Connect to another computer.
- Provide the server name or IP and click ok.
Distributed COM Users Group
We first need to add the Hyper-V group to the Distributed COM Users group on the Hyper-V server.
- Select System Tools -> Local Users and Groups -> Groups -> Distributed COM Users -> Add to Group.
- Click Add and enter the group name for the Hyper-V group and click ok.
CIMV2 and Virtualization Namespaces
Update the permissions for Remote access to the server for Virtualization and CIMV2
- From the Computer Management window that is already open.
- Select Service and Applications -> WMI Control.
- Right Click and select Properties.
- Security -> Root -> CIMV2 and then click the Security button.
- Add the Hyper-V group, select it and click advanced.
- Ensure the new group is selected and click edit.
- Change the Apply to: option to The namespace and all subnamespaces
- Ensure Allow is checked for Enable Account and Remote enable.
- Check the box for Apply these permissions to objects and/or containers within this container only
- Click Ok.
11.Repeat steps 4 through 10 for Virtualization.
Update Authorization Store
The authorization Store for Hyper-V is the final component that will actually allow the domain group to access Hyper-V.
- Open the Authorization Manager by running the command azman.msc from the run menu or a command prompt.
- From the Action menu select Open Authorization Store.
- Ensure XML is selected. From here you will need to remotely access the InitalStore.xml file on the Hyper-V server.
- Use the following path \HOSTNAME\c$\ProgramData\Microsoft\Windows\Hyper-V\InitialStore.xml
- From that InitialStore.xml select Hyper-V services -> Role Assignments -> Administrator
- From the Action Menu select Assign Users and Groups -> From Windows and Active Directory
- Add the Hyper-V group.
Now that the Hyper-V group has complete permissions to manage Hyper-V remotely, it needs to have permissions to write to the C:\Users\Public\Documents\Hyper-V folder.
- Open My Computer and go to the following address
- Select Hyper-V -> Properties -> Security
- Add the Hyper-V group and ensure that is has the ability to Read, Write and Execute files within that directory. In general, it is easier to just give Full control.
All configuration changes have now been made. To finalize the configuration, you will need to reboot the Hyper-V server. Once the server is back online, connect to it from your Local Hyper-V Manager. At this point, you should have full access to manage all VM's and the Hyper-V Service itself.