

兩種VM架構都有純虛擬和半虛擬的方式,由於半虛擬效能較好(不用跑2個完整的OS),所以就決定架設半虛擬的Hyper-V


微軟對於Hyper-V Server是免授權的:

以下是快速Rundown (Host和Windows 8.1都是在相同WORKGROUP下):
1. 安裝Hyper-V Server 2012 R2 Core並登入到console

2. 設定Hyper-V Server
a. Configure date and time(select #9)
b. Enable Remote Desktop(select #7)
c. Configure Remote Management(select #4 then #1)
d. Add local administrator account(select #3) [這裡新增的帳密要和登入到Windows 8.1 Pro的一樣,而且登入Hyper-V Server也用此新增帳號登入,不然新增VM時,會有unexpected error in configuring the hard disk發生

e. Configure network settings(select #8) (IP and DNS)
f. Set the computer name(select #2) (Rename the server and reboot) [這裡設定的Hostname,之後要寫入Windows 8.1的hosts檔案中,不然新增VM時,會有unexpected error in configuring the hard disk發生

g. Launch PowerShell (In the black cmd window, run the command: start powershell)

h. Run the following commands in PowerShell:
• Enable-NetFirewallRule -DisplayGroup “Windows Remote Management"
• Enable-NetFirewallRule -DisplayGroup “Windows Event Log Management"
• Enable-NetFirewallRule -DisplayGroup “Windows Volume Management"
• Set-Service VDS -StartupType Automatic
i. Reboot the server(select #12)
3. 設定Windows 8.1 [以相同於Hyper-V Server的帳密登入Windows 8.1]
a. 安裝Hyper-V Manager

b. Enable Client Firewall Rule [在Windows 8.1上run the following commands in PowerShell]
• Enable-NetFirewallRule -DisplayGroup “Windows Volume Management"
• ii c:\windows\system32\drivers\etc
c. Add server hostname and IP to hosts file [把Hyper-V Server的IP和Hostname寫到Windows 8.1的hosts中]
d. 尋找並執行 dcomcnfg [Run As Administrator]

e. Click the "Edit Limits..." button under Access Permissions
f. Enable Remote Access for Anonymous Logon

g. Click Apply and OK
如果沒有在Windows 8.1上設定d ~ g的話,會有Access denied. Unable to establish communication between "Hyper-V Server" and "Hyper-V Manager"問題


接下來就可以開始利用Hyper-V Manager建立自己的VM了!


