架設 Hyper-V Server 2012 R2(Host) + Windows Server 2008 R2(Guest) remote-managed by Windows 8.1 Pro 心得

最近拿到1臺server,想說來玩一下VM好了(以前沒有碰過),考慮了VMware和Hyper-V,最後選擇Hyper-V來架設。
兩種VM架構都有純虛擬和半虛擬的方式,由於半虛擬效能較好(不用跑2個完整的OS),所以就決定架設半虛擬的Hyper-V

微軟對於Hyper-V Server是免授權的:
架設 Hyper-V Server 2012 R2(Host) + Windows Server 2008 R2(Guest) remote-managed by Windows 8.1 Pro 心得

以下是快速Rundown (Host和Windows 8.1都是在相同WORKGROUP下):

1. 安裝Hyper-V Server 2012 R2 Core並登入到console
架設 Hyper-V Server 2012 R2(Host) + Windows Server 2008 R2(Guest) remote-managed by Windows 8.1 Pro 心得
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)
架設 Hyper-V Server 2012 R2(Host) + Windows Server 2008 R2(Guest) remote-managed by Windows 8.1 Pro 心得
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
架設 Hyper-V Server 2012 R2(Host) + Windows Server 2008 R2(Guest) remote-managed by Windows 8.1 Pro 心得

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]
架設 Hyper-V Server 2012 R2(Host) + Windows Server 2008 R2(Guest) remote-managed by Windows 8.1 Pro 心得

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

架設 Hyper-V Server 2012 R2(Host) + Windows Server 2008 R2(Guest) remote-managed by Windows 8.1 Pro 心得
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 Server 2012 R2(Host) + Windows Server 2008 R2(Guest) remote-managed by Windows 8.1 Pro 心得



接下來就可以開始利用Hyper-V Manager建立自己的VM了!
2017-05-10 13:24 發佈
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?