<b>企業級</b><b> </b><b>高可用性</b><b>Hyper-v </b><b>群集部署實驗方案</b><b></b>
馬博峰
2011年5月21日
———————————————————————————————————————
<b>安裝</b><b> Hyper-v server 2008 R2</b>
Hyper-V Server 2008是一個獨立的伺服器作業系統,有Windows系統核心但沒有GUI圖形界面,當你安裝上之後,會發現它看起來更像是運作在Server Core上的Hyper-V。Hyper-V Server 2008可以直接運作在裸機上,是以不需要預先安裝Windows Server系統,隻要有支援硬體虛拟化技術的處理器即可,包括Intel Pentium 4、Xeon、Core 2 Duo/Quad和AMD Athlon 64、Athlon X2、Opteron等等。需要注意的是,Hyper-V Server 2008是一種64位技術,是以隻支援64位硬體。
Hyper-v Server 2008 隻提供虛拟化服務,而Server Core 即核心是Windows Server 2008新的預設,沒有資料總管(Windows 外殼程式),僅包含簡單Console視窗和一些管理視窗,但是可以運作MMC.可以用作域控制器 活動目錄 ActiveDirectory、DNS域名解析伺服器、FTP檔案伺服器、Print列印伺服器、Streaming Media 流媒體伺服器或Web伺服器等,它的特點是高效占用記憶體小,相對高效.
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305958943YjfL.jpg"></a>
啟動盤啟動安裝
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305958947E4el.jpg"></a>
和裝windows一樣
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305958955bJYR.jpg"></a>
選擇簡體中文
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305958975HTk1.jpg"></a>
下一步
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_13059589979KCH.jpg"></a>
現在安裝
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959018O0Uu.jpg"></a>
安裝程式正在啟動
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959056QMy9.jpg"></a>
接受許可條款
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959076vxIa.jpg"></a>
自定義
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_13059590847faX.jpg"></a>
和windows一樣
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959099j8YK.jpg"></a>
開始安裝
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959103V45D.jpg"></a>
完成安裝。
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959111QdZj.jpg"></a>
重新開機後首次啟動。
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959113tP27.png"></a>
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_13059591167zzL.jpg"></a>
首次登入需要修改密碼
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_130595912411Bn.jpg"></a>
設定密碼
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959131Vgf3.jpg"></a>
這就是Hyper-v的界面的了。
下面就對Hyper-v服務進行設定
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959137TA6g.jpg"></a>
選擇數字2,對計算機名稱進行修改
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_13059591459FJz.jpg"></a>
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959150dH8r.jpg"></a>
需要重新開機
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959155lQTk.jpg"></a>
之後加入域
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959160YKBo.jpg"></a>
輸入域名
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959165vZVq.jpg"></a>
域管理者使用者名
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959169KpjB.jpg"></a>
域管理者密碼
加入域都提示重新開機,重新開機之後以域管理者使用者名登入系統
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959173u3GU.jpg"></a>
加域成功後對網絡進行設定
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959178iLlA.jpg"></a>
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959183naeA.jpg"></a>
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959187iF9e.jpg"></a>
設定固定的IP
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959190hXII.jpg"></a>
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959193JFhN.jpg"></a>
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959197qYBw.jpg"></a>
以同樣的方式設定網卡2的IP 作為心跳線。
設定好後檢查網絡。
需要提醒的是,Hyper-V Server 2008預設是開啟防火牆的,如果你設定了IP位址,存在不能PING通;或是通過圖3所示功能開啟了遠端桌面不能通路;或是使用Windows Server 2008 的Hyper-V控制台遠端管理Hyper-V Server 2008連接配接不上等,你還需要關掉防火牆。本文以全部禁用的方法,依次在指令行視窗中進行如下操作:
Netsh 回車
Firewall 回車
Set opmode disable 回車
提示确定後,完成禁用防火牆的功能。當然通過指令net stop mpssvc 也可以,(但有時,可能對通過Hyper-v控制台遠端管理Hyper-V Server 2008還是阻擋的。)
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959200lgZy.jpg"></a>
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959204LdbW.jpg"></a>
<a href="http://mabofeng.blog.51cto.com/attachment/201105/21/2661587_1305959208u3x6.jpg"></a>
Ping通之後Hyper-v伺服器安裝就全部完成了。