自從知道 Microsoft 彿心開放讓大家可以免費下載 Hyper-V 2008 Server R2 後, 在嚐試 VMWare ESXi 4.1 失敗後, 不禁想來試試家中那台停機一陣的 E6600 Core 2 Duo. 下載點是在這裡: http://www.microsoft.com/hyper-v-server/en/us/how-to-get.aspx. 下載一個1.4G左右的 ISO 檔後, 燒出來後就可以安裝了. (不要問我為什麼不用 USB, 太浪費時間).
安裝過程實在是很解單, 比 Windows 7 都還容易, 就按按 Next 就好了. 最後在打一組 Administrator 密碼就完工了. 之後就會看到像 2008 Server 一樣的登入畫面. 按下 Ctrl + Alt + Del 就可以登入了. 一進去就會看到很 DOS 的選單. 裡頭有很多簡單的基本設定, 按按數字和 Enter 就可以完成所有的設定. 附上一張選單畫面.
Hyper-V Server 2008 安裝完了, 接下來就是用戶端了. 好了, 問題來了. 我用 Remote Desktop Manager 連進去就是一樣的選單. 怎麼建立新的虛擬伺服器呢? 我決定好好讀 Microsoft 附的說明書. 幸好16頁的說明書裡頭有講到客戶端的連結方法. Windows Server 2008 就簡單的加入一個新的功能, Windows 7 的話, 就要去下載專用的客戶端. 載點: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d
在此截取說明書裡的步驟: 我懶的翻成中文了.
To manage from a Windows Server 2008 R2 computer
| 1. On the remote computer you will be managing Hyper-V Server from, enable the Hyper-V Manager MMC snap-in: On the Start menu, click Server Manager.
2. Right-click Features, and then click Add Features. 3. Under Remote Server Administration Tools, click Role Administration Tools, click Hyper-V Tools, and then click Next. 4. Click Install. 5. After the computer restarts, click the Start menu, click Administrative Tools, and then click Hyper-V Manager. 6. On the left side of the MMC window, click Hyper-V Manager. 7. From the Actions menu, click Connect to Server, select Another Computer, and then enter the name or IP address of the server that you want to connect to. |
To manage from Windows 7
| 1. On the remote computer you will be managing Hyper-V Server 2008 R2 from, download and install the Hyper-V Manager MMC snap-in from Remote Server Administration Tools (http://go.microsoft.com/fwlink/?LinkID=130862).
2. After the computer restarts, click the Start menu, click Administrative Tools, and then click Hyper-V Manager. 3. On the left side of the MMC window, click Hyper-V Manager. 4. From the Actions menu, click Connect to Server, select Another Computer, and then enter the name or IP address of the server that you want to connect to. |
補上幾點, 原廠的說明書在 Windows 7 上有點不足. 正確是在安裝完後, 去 Control Panel 裡的 Programs and Features 裡, 左手邊的 Turn Windows features on and off. 點下去後, 依下列目錄找: 附圖2
Remote Server Administration Tools -> Role Administration Tools -> Hyper-V Tools
之後就去 Administrative Tools 裡就會看到 Hyper-V Manager 了. (不好意思 Windows 2008 Server 小弟的學生版就不拿出來獻醜了,所以只說明 Windows 7)
問題來了, 我沒辨法連結到正在跑的 Hyper-V Server 2008. 我可以 RDP 進去, 但就是怎樣都無法連結. 有跳出打入 Username & Password, 但打入後就說我沒有足夠的權限可以連. 請洽 Administrator. 雖然說我不做工程師數年, 但我家的 Admin 就是我自己呀. 恨.
也無法 ping. 唯一可以連的就是 remote desktop. 說明裡也沒寫. 只好請出 Google, 看到大家都有一樣的問題. 怎麼會有人一開始就把Firewall 開到無法連? Server 安裝好又不給連, 這個 Policy 實在需要討檢, 雖然我家是不用 Domain, 但Firewall 開起來不給連就是令人不解. 而且也沒有打開的選項.
最後 Rich Brambley 的文章中也提出他的困擾. 也提出了把 Firewall 關掉的方案. 原文請洽: http://vmetc.com/2008/10/21/frustrated-with-installing-the-hyper-v-manager-to-remotely-manage-hyper-v-server-2008/
解決方法就是先用 RDP 登入, 在另一個 command prompt window 裡, 打入以下指令
1 | netsh firewall set opmode disable |
就可以暫時把Firewall關掉. 但還要記得本地帳號和 Hyper-V Server 上的要一致, 如果還沒建, 就去上面的 DOS 選單裡3加入就好了. Hyper-V Manager 終於也可以連了. 接下來就是 Ubuntu Server 了..
[更新]
另外還有權限的問題要解決. 要 Windows 7 的機器上, 會無法連到. 我再另闢一文解說.





