Microsoft Hyper-V Server 2012 is a standalone hypervisor based server virtualization software. It is a great product for organizations to consolidate servers or desktops where no new licenses are required. Alternatively, organizations may also elect to install an alternative OS such as Linux operating system.
Since Microsoft Hyper-V Server 2012 is a small foot print stand alone product, local GUI based management tools are not available. Administrator can still manage the Hyper-V Server 2012 via command line. However, for those of you who prefer using a graphical interface, you can do so by using the optional MMC snap-in from Windows 8 desktop. In the following section, I will show you how to do it without setting up any Active Directory Service.
Before we begins, one thing we need to make sure is a local user account is needed inside the Windows 8 machine. If you log in to your Windows 8 desktop via a Microsoft account users, you need to create a new local user. In our example here, I am using a local user “john”. Basically, we need to use a common user for both Windows 8 desktop and the MS Hyper-V Server 2012 machine.
Note: Steps begins with (WINDOWS 8) means performing the steps inside the Windows 8 desktop while (HYPER-V) means performing the steps inside the Hyper-V 2012 Server.
(WINDOWS 8) 1. Start the Windows Explorer in your Windows 8 desktop. Go to “Local Disk C: -> Windows -> System32 -> Drivers -> etc” folders. Inside the “etc” folders, you will find the file “hosts”. Right click the “hosts” file and choose “Properties”.
(WINDOWS 8) 4. Inside the “Enter the object names to select” text box, enter the local user name. In this example. I enter “john” and follow by clicking the “Check Names” button. If user exists, Windows 8 desktop will response back with “<DESKTOP_MACHINE_NAME>\<LOCAL_USER_NAME>”. Since my Windows 8 desktop name is WIN8-MANAGEMENT, so it display “WIN8-MANAGEMENT\john” back. Click “OK” to continue.
(WINDOWS 8) 5. That should bring you back to the “Permission for hosts” window. Highlight the user you just added and check “Modify” box. Click “OK” to continue.
(WINDOWS 8) 6. Next, open the “hosts” file in Notepad. At the bottom of the file, enter the Microsoft Hyper-V Server 2012 IP Address and the Server name. You can use a fully qualify domain name if you like. In this example, the server name is “HYPERV-2012”.
(WINDOWS 8) 7. In the next step, open the Windows 8 search screen and enter “powershell” in the search box. Windows 8 will show a matching apps on the left of the screen.
(WINDOWS 8) 8. Once Windows 8 locate the PowerShell app, right click on the app and choose “Run as administrator” at the bottom of the screen.
(WINDOWS 8) 10. After that, “Component Services” Windows will pop-up. Expand the “Component Services” item on the left and locate “My Computer”. Right click “My Computer” and choose “Properties”.
(WINDOWS 8) 11. In the “My Computer Properties” window, click the “COM Security” tab follow by clicking the “Edit Limits…” button.
(WINDOWS 8) 12. Single click the user name “ANONYMOUS LOGON” and check both “Local Access” and “Remote Access” under the “Allow” column. Click “OK” to continue.
(HYPER-V) 13. Now, switch to the MS Hyper-V Server 2012. In the main menu of the Hyper-V server, enter “2” to change the Server name. If you are at the command prompt, type “sconfig” to run the Server Menu.
(HYPER-V) 14. The Hyper-V server will restart after the name change. Just click the “Yes” button to proceed.
(HYPER-V) 15. Once the server finish rebooting and back to the server Main Menu, type option “3” and enter a local administrator name. Make sure the name and password you choose are the same as in your local Windows 8 machine.
(HYPER-V) 16. Next, we need to allow Remote Desktop. In the Main Server Menu, enter option “7” follow by entering “e” and then “2”.
(HYPER-V) 17. It is easier for us to manage the Server firewall software remotely via the Windows 8 Desktop. So in the next few steps here, I am going to show you how to do it. First, we need to drop to the command prompt from the Server Menu. Choose option “14” to exist to Server Configuration Menu.
(HYPER-V) 18. To view the current Firewall Profile status, enter the following command
netsh advfirewall show currentprofile
As you can see from the diagram, “RemoteManagement” is disabled by default.
(HYPER-V) 19. To Enable “RemoteManagement” in Current Firewall profile, enter
netsh advfirewall set currentprofile settings remotemanagement enable.
(HYPER-V) 20. Add the following rule as well.
netsh advfirewall firewall set rule group="Windows Firewall Remote Management" new enable=yes
(WINDOWS 8) 21. Now, switch back to Windows 8 machine. At the PowerShell prompt (Make sure you run the PowerShell as Administrator), enter the following command.
cmdkey /add:<YOUR_SERVER_NAME> /user:<LOCAL_USER_NAME> /pass:<LOCAL_USER_PASSWORD>
In my case here “<YOUR_SERVER_NAME> = HYPERV-2012” while “<LOCAL_USER_NAME> = john” and “<LOCAL_USER_PASSWORD> = “.
(WINDOWS 8) 22. In the Windows 8 client machine, bring up the “Search Page” again and search for “mmc”.
(WINDOWS 8) 23. Once the mmc app shows up on the left, right click on it and choose “Run as administrator”.
(WINDOWS 8) 24. In the MMC console, click “File” from the pull down menu and choose “Add/Remove Snap-in…”.
(WINDOWS 8) 25. In the “Add or Remove Snap-ins” window, locate “Windows Firewall with Advanced Security” from the Available snap-ins list, highlight it and then click the “Add” button.
(WINDOWS 8) 26. The computer will ask you the location of the firewall, it is either a local machine or remote machine. Select “Another computer” and enter the name of the Hyper-V server 2012. In my example here, I enter “HYPERV-2012”. Click “Finish” to continue.
(WINDOWS 8) 27. “Windows Firewall with Advanced Security” is now listed in the tree on the left. Expand it and click “Inbound Rules”.
(WINDOWS 8) 28. Locate the following rules and Enable them.
Remote Event Log Management (NP-In)
Remote Event Log Management (RPC)
Remote Event Log Management (RPC-EPMAP)
(WINDOWS 8) 29. Now, switch back to the PowerShell (run as Administrator) and enter the following command.
set-item WSMAN:\localhost\client\trustedhosts -value <HYPER-V_SERVER_NAME> -concatenate
Where <HYPER-V_SERVER_NAME> is HYPERV-2012 in my case. So for me, I need to type
set-item WSMAN:\localhost\client\trustedhosts -value HYPERV-2012 -concatenate
The system will prompt you for additional questions. Just hit “Enter” to choose the default answer.
(WINDOWS 8) 30. Next, we need to add the Hyper-V management function in the Windows 8 client machine. Open the Windows 8 search page and enter “control panel” in the search box. Then click the “Control Panel” App on the left.
(WINDOWS 8) 33. Single click the “Turn Windows features on or off” link on the left and then scroll down and locate “Hyper-V”. Once you find it, check the box next to it. Hit “OK” to continue.
(WINDOWS 8) 34. The Windows 8 client machine may need to reboot. Once it finish rebooting, search for mmc in the Windows 8 search page and run it as Administrator again as in Steps 24 and 25. This time, look for “Hyper-V Manager inside the “Available snap-in” list. After you locate “Hyper-V Manager”, highlight it and then Add it to the “Selected snap-in” box. Hit “OK” to continue.
(WINDOWS 8) 36. Choose “Another computer” and then enter the Hyper-V server name and click “OK” to continue.