網頁

2012年12月1日 星期六

VMWare Workstation 9.x --- Enable Hyper-V role on Windows Server 2012

I want to build Hyper-V environment for testing Live Migration or Replication in Windows Server 2012. In the moment, there is no enough hardware for me because I just have only one PC.
How to do it?   The simply method is “do it in virtualization!”, I think.

So I download VMWare Workstation 9 trial version from VMWare Official Web Site and install it on my PC. When I prepare for the related prerequisite and begin to add Hyper-V role, I get the same problem.
What?When launch Add Roles and Feature Wizard for enabling Hyper-V RoleScreenHunter_07next to click Add Features button after enable Include management tools (if applicable) check box
ScreenHunter_08the error message pop up that tell us “Hyper-V cannot be installed: A hypervisor is already running.”.
ScreenHunter_09
How to resolve this problem?(1). Enable Virtualize Intel VT-x/EPT or AMD-V/RVI check box in this VM settings
ScreenHunter_10(2). Edit VM with extension “vmx” file and Insert hypervisor.cpuid.v0 = “FALSE” and mce.enable = TRUE
ScreenHunter_11
After finish the above steps, we can enable Hyper-V check box without any problem and click Next > button to go ahead next process now.
ScreenHunter_12

2012年11月28日 星期三

Windows Server 2012 --- Enable RRAS as NAT Router (part 1)

Recently, I want to realize the Hyper-V new function in Windows Server 2012 so that will build a lab in virtualization environment. After installing a Server,I find out one question that cannot connect to the Internet then.
Why need to connect to the Internet? For window update or download tool from Microsoft Web Site!
Based on this reason, I think what method can been done simply and quickly? The answer will be Server with RRAS enabled, I think.
Drawing1
For realizing the difference between Windows Server 2008 (or R2) and Windows Server 2012, I study some articles from Microsoft and summary the process as the following “How to…”.
How to configure TCP/IP on Windows Server 2012?
Before configure an RRAS Server as Router, we need to configure the TCP/IP setting for the Internet network interface and for the intranet interface.
For internet setting, the reference is from ISP as public IP address, subnet mask and the default gateway. For intranet setting, the key point doesn’t define the default gateway (that is empty value) and its IP will belong to the default gateway in internal computer.
ScreenHunter_02
How to install the RRAS role service in Windows Server 2012?
In Server Manager, click Dashboard next to click Add roles and features to launch Add Roles and Feature Wizard
ScreenHunter_01In Before you begin page, directly click Next > button
ScreenHunter_02In Select installation type page, select Role-based or feature-based installation option next to click Next > button
ScreenHunter_03In Select destination server page, Choose Select a server from the server pool option, click one server as “VB-Router-01” where want to install RRAS and the click Next > button
ScreenHunter_04When click Remote Access check box in Select server roles page,
ScreenHunter_05a window will pop up and ask us some role services or feature need to be added before install Remote Access. Please click Include management tools (if applicable) check box next to click Add Features button.
ScreenHunter_06So dose that Remote Access check box will be enabled now and some roles also are selected automatically. Click Next > button to go ahead the next step.
ScreenHunter_07Continue to click Next > button because some related features also are chosen automatically.
ScreenHunter_08In Remote Access page, click Next > button
ScreenHunter_09In Select role services page, keep DirectAccess and VPN (RAS) selection and enable Routing check box (# 1) next to click Next > button
ScreenHunter_12In Web Server Role (IIS) page, click Next > button
ScreenHunter_13In Select role service page, still click Next > button
ScreenHunter_15In Confirm installation selections page, enable Restart the destination server automatically if required check box so that a window message will pop up and tell us the server will restart but never notify us if require. If you agree it, click Yes button.
ScreenHunter_16Click Install button
ScreenHunter_17Installation progress now
ScreenHunter_18In the installation process, the system will automatically restart for configuring windows feature.
ScreenHunter_20After log on the computer again, the feature installation progress will complete so that click Close button to close this wizard.
ScreenHunter_21Until now, the RRAS role service will be installed.

After install the RRAS server role, its initial status will be disabled.  So the later procedure will configure it to provide network address translation (NAT) services.
How to configure NAT for connecting a private network to the Internet?
In Server Manager/Dashboard page, click Remote Access in left panel
ScreenHunter_24Right-click one Server as “VB-Router-01” and click Remote Access Management in menu
ScreenHunter_25In Remote Access Management Console page, click Open RRAS Management in VPN Tasks to launch Routing and Remote Access
ScreenHunter_26In Routing and Remote Access management, right-click the server next to click Configure and Enable Routing and Remote Access in menu to launch Setup wizard
ScreenHunter_28In Routing and Remote Access Server Setup Wizard page, click Next > button
ScreenHunter_29In Configuration page, select Network address translation (NAT) option next to click Next > button
ScreenHunter_30In NAT Internet Connection page, select Use this public interface to connect to the Internet option and one network adapter as “WAN-192.168.11.181” next to click Next > button
ScreenHunter_31In Name and Address Translation Services page, select Enable basic name and address services option next to click Next > button
ScreenHunter_32In Address Assignment Range page, click Next > button
ScreenHunter_33Click Finish button for completing the Routing and Remote Access Server Setup Wizard
ScreenHunter_34This Server has already been configured successfully now.
ScreenHunter_35
When finish the above steps, the computer in private network can communicate with the external system through this Server as Router.
AS-IS:
ScreenHunter_36TO-BE:
ScreenHunter_37
Reference:
(# 1)   We cannot just install Routing because the DirectAccess and VPN (RAS) check box also need to be enabled.
ScreenHunter_11
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.