網頁

2012年12月15日 星期六

Hyper-V Server 2012 --- Remotely Manage by GUI

Although Microsoft Hyper-V Server 2012 is a “free” hypervisor-based server virtualization product, it is a little difficult for us to manage it if we don’t clearly be familiar with the command line or PowerShell cmdlets. Based on this, I want to realize whether exist some Windows Server GUI for Hyper-V Server 2012 so that find out we can do something.

At first, download Remote Server Administration Tools for Windows 8 package from Microsoft Download Center and double-click the install program next to follow wizard to install the tools.
ScreenHunter_01After installation complete, all tools are enabled by default and we don’t need to do Turn Windows feature on or off in Windows 8 to enable the tools that we want to use.
ScreenHunter_02
If Managing Computer is not the same as Managed Server, we have to do something as configuring Windows Firewall to allow MMC snap-in connect.
The following “how to…” will introduce the client in workgroup or standalone remotely manage the server in domain.

How to remotely manage your Hyper-V server (2012) with server manager?<Server> Enable the remote management by Server Configuration tool (#1)
<Client>
1).Add IP mapping Server Name into “\Windows\System32\Drivers\etc\hosts” file
2).In Server Manager page, click All Servers –> Manage –> Add ServersScreenHunter_05   In DNS tab of Add Servers page, Key in and search a Server for being managed.
ScreenHunter_08   So does that the Server is added but has error “Kerberos authentication error”
ScreenHunter_09   Right-click this Server and select Manage As … in menu
ScreenHunter_10   Key in domain account and password for authentication
ScreenHunter_11   Now this server can be managed by Server Manager
ScreenHunter_13
How to remotely manage your Hyper-V Virtual Machines with Hyper-V manager?
<Server> Enable the remote management by Server Configuration tool (#1)
<Client>
1). Add IP mapping Server Name into hosts file and open Server Manage by using Manage As… selection to change logon permission.
2). In Access Permission property of Component Services, allow “remote access” right for “Anonymous logon” group.
3). In Component Services windows, right-click My Computer and select Properties in menu
ScreenHunter_19    In COM Security tab, click Edit Limits … button
ScreenHunter_20    In Access Permission window, select ANONYMOUS LOGON, enable Remote Access check box next to click OK button
ScreenHunter_223). To return to Server Manager window, right-click the server and select Hyper-V Manager in menu
ScreenHunter_23    Now we can manage Hyper-V by GUI interface.
ScreenHunter_24
How to remotely manage your Hyper-V server 2012 firewall with a MMC snap-in?<Server>
1). Enable the remote management by Server Configuration tool (#1)2). Allow the firewall to be remotely managed by command netsh advfirewall set currentprofile settings remotemanagement enableScreenHunter_253). Add 4 rules into the firewall setting to allow remote management by command netsh advfirewall firewall set rule group="Windows Firewall Remote Management" new enable=yesScreenHunter_294). Add an account into local administrators group and this account name is the same as client’s administrator privilege. In the moment, we also log on by this account in client.
ScreenHunter_23<Client>
1). Add IP mapping Server Name into hosts file and open Server Manage by using Manage As… selection to change logon permission.
2). In Access Permission property of Component Services, allow “remote access” right for “Anonymous logon” group.
3). Move cursor to left-bottom and right-click it next to select Search when Start icon show up
ScreenHunter_01    key in mmc in Search Apps next to right-click mmc.exe
ScreenHunter_08    Click Run as Administrator in bottom toolbar so that MMC console will show up
ScreenHunter_09    In MMC console, click File and select Add/Remove Snap-in… in menu
ScreenHunter_10     In Add or Remove Snap-ins windows, select Windows Firewall with Advanced Security next to click Add > button
ScreenHunter_11    In Select Computer windows, select Another computer option and key in Server name as “VB-HYPERV-01” next to click Finish button
ScreenHunter_12    Click OK button
ScreenHunter_13    Now we can manage Hyper-V Server 2012 firewall by MMC snap-ins.
ScreenHunter_24
How to remotely manage your Hyper-V Server 2012 with Computer manager?
<Server>
1). Enable the related setting as managing Hyper-V Server 2012 with MMC
2). For using Disk Manager MMC console, run this command netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes on command prompt
ScreenHunter_16
<Client>
1). Enable the related setting as managing Hyper-V Server 2012 with MMC
2). For using Disk Manager MMC console, run this command netsh advfirewall firewall set rule group="Remote Volume Management" new enable=yes on command prompt
ScreenHunter_403). In Windows Firewall with Advanced Security window, right-click Inbound Rules and select New Rule… in menu to launch New Inbound Rule Wizard.
ScreenHunter_29     In Rule Type page, choose Custom option next to click Next > button
ScreenHunter_30     In Program page, choose All programs option next to Next > button
ScreenHunter_31     In Protocol and Ports page, select TCP protocol type, Specific Ports local port and key in 135, 445, 49152-65535 next to click Next > button (# 2)ScreenHunter_33     In Scope page, click Next > button if no need to change anything
ScreenHunter_34     In Action page, choose Allow the connection option next to click Next > button
ScreenHunter_35     In Profile page, select Domain, Private, Public check box next to click Next > button
ScreenHunter_36     In Name page, key in a name as “COM+ Network Access (DCOM-In)” next to click Finish button
ScreenHunter_374). Return to Server Manager and right-click Hyper-V Server next to select Computer Management in menu
ScreenHunter_38     Now we can manage Computer Management besides Device Manager.
ScreenHunter_39
Reference
(# 1)  In Hyper-V Server 2012 or Windows Server 2012, the remote management is enabled by default so that we can manage a server remotely by using Server Manager.
ScreenHunter_03If Remote Management is disable, we can enable Server Manager remote management by using Configure-SMRemoting.exe –enable Windows PowerShell or refer to Configure Remote Management in Server Manager
ScreenHunter_04(# 2) We can use the command netsh int ipv4 show dynamicport tcp to realize what the dynamic port range is on Server.
ScreenHunter_27

2012年12月9日 星期日

VirtualBox 4.2.4 --- Install Hyper-V Server 2012 RTM on VirtualBox

It is very simple to install Windows Server 2012 on VirtualBox 4.2.4 and there is more and more demos or documents in Internet for reference. After install this OS, I get the error when I want to enable Hyper-V role and add the related features.
ScreenHunter_55Even though I search some articles and teach us to change hypervisorlaunchtype parameter from auto to off, the result still is failure.
ScreenHunter_16Whether the processor does not support virtualization? No, because I ever confirm this by Intel & Microsoft utility and the Hyper-V can be installed on host machine. (My host OS is Windows 8 version.)
I don’t know how to resolve this problem now. So I decide to install Hyper-V Server 2012 RTM on VirtualBox for testing.

VirtualBox Setting
To Create a VM and the configuration is the same as Windows Server 2012
ScreenHunter_01In Processor tab, choose Enable PAE/NX check box
ScreenHunter_03In System/Acceleration tab, choose Enable VT-x/AMD-V and Enable Nested Paging check box
ScreenHunter_04In Network/Adapter 1 tab, Select Intel PRO/1000 MT Server (82545EM) Adapter Type (# 1)ScreenHunter_05After finish the above steps, we can mount/boot download ISO file (# 2) and power on this VM now.

Install Hyper-V Server 2012
As install Server version, the first screen still is to choose Language, Time and currency format and keyboard
ScreenHunter_55Click Install Now
ScreenHunter_56Accept License
ScreenHunter_57Due to we will install the first Hyper-V Server, please choose Custom: Install the newer version of Hyper-V Server only (advanced)ScreenHunter_58Select one disk for install OS
ScreenHunter_59Install process is running now…
ScreenHunter_60After install OS and reboot, the system request us to change Administrator password now.
ScreenHunter_61When change finish and OS reboot again, the logon screen will show up.
ScreenHunter_76
Configure Hyper-V Server 2012
When the first time log on the console, maybe need to change the computer name by selecting the option 2) Computer Name in menu and key new computer name as “VB-HYPERV-01” next to reboot and log on it again.
ScreenHunter_89Select option 5)  Windows Update Settings for defining the future policy to install window hotfix automatically or manually
ScreenHunter_84Select option 6) Download and Install Updates for install the windows hotfix right now
ScreenHunter_87Select option 9) Date and Time for correcting Date, Time and Time Zone
ScreenHunter_90
Finally, we can verify whether this version did build-in Hyper-V function by executing Get-WindowsFeature Hyper-V* PowerShell command.
ScreenHunter_87If the result is right, maybe we can make a template OS by running Sysprep command for the future usage. So do that we don’t need to always install the new OS again and again if have OS necessity in the future.
ScreenHunter_88
Reference :
(# 1) If we don’t select this network adapter in menu, no active network adapter is found after install Hyper-V Server 2012.
ScreenHunter_64(# 2) Microsoft Hyper-V Server 2012
ScreenHunter_01
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.