天天看點

虛拟化系統Windows Server 2003母盤制作

一、建立2003-BASE虛拟機

1.依次展開伺服器管理器——角色——Hyper-V——Hyper-V管理器——伺服器名,選中伺服器名之後單擊控制台上方的“操作”——“建立”——“虛拟機”。或者也可以使用右側邊框中的“建立”——“虛拟機”。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103638793.jpg"></a>

2.進入建立虛拟機向導

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103654342.jpg"></a>

3.選擇虛拟機檔案存放路徑

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103704829.jpg"></a>

4.給虛拟機配置設定記憶體

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103717339.jpg"></a>

5.配置網絡,我這裡暫時不配置,系統安裝完畢再配置

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103728795.jpg"></a>

6.連接配接虛拟硬碟,這裡選擇“建立虛拟硬碟”,根據需求配置設定空間大小。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103739470.jpg"></a>

7.安裝選項,這裡選擇以後安裝作業系統

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103750806.jpg"></a>

8.完成配置

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103800795.jpg"></a>

9.實際CPU與虛拟機CPU配置

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103812219.jpg"></a>

邏輯處理器數量的選擇範圍(1-4個),我這裡選擇一個,根據需求再調整。

虛拟機限制(百分比)與占總系統資源的百分比算法:

占總系統資源的百分比 = 配置設定的邏輯處理機個數/總的邏輯處理器*虛拟機限制(百分比)

這裡就是1/24*100%≈4%

<a target="_blank" href="http://blog.51cto.com/attachment/201206/103825903.jpg"></a>

二、2003-BASE作業系統安裝

1.媒體——從ISO鏡像安裝

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105431143.jpg"></a>

2.輕按兩下打開該虛拟機控制台,然後單擊控制台上的綠色電源按鈕啟動虛拟機。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105449246.jpg"></a>

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105459185.jpg"></a>

3.按Enter鍵繼續安裝。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105511883.jpg"></a>

4.按F8同意協定

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105523793.jpg"></a>

5.建立磁盤空間C槽40G,D盤80G

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105616545.jpg"></a>

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105728875.jpg"></a>

如圖2-5b,系統從C開始配置設定盤符,硬碟的分區數+1配置設定給光驅,是以開機檢測後将未分區的整塊硬碟視為整體為其保留C槽盤符,D盤就給了光驅,造成分區後呈現符号不連續。可以在分好區後先别安裝系統,按兩次F3退出重新開機,讓系統再重新檢測排列一次回到這裡

就正常了,如圖2-5c和2-5d過程。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105746641.jpg"></a>

選擇C槽,按Enter鍵繼續安裝。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105758210.jpg"></a>

6.選擇“用NTFS檔案系統格式化磁盤分區(快)”。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105811797.jpg"></a>

7.系統開始格式化分區和複制安裝檔案

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105822522.jpg"></a>

8.檔案複制完畢後系統會自動重新開機并進入圖形化安裝界面。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105833760.jpg"></a>

9.區域與語言設定,預設即可

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105847309.jpg"></a>

10.輸入姓名與機關

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105902545.jpg"></a>

11.輸入序列号

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105912882.jpg"></a>

12.授權模式(預設5)

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105934496.jpg"></a>

13. 計算機名與管理者密碼設定

<a target="_blank" href="http://blog.51cto.com/attachment/201206/105948983.jpg"></a>

14.日期、時間、時區設定

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110001952.jpg"></a>

15.安裝網絡

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110019615.jpg"></a>

16.注冊元件

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110036215.jpg"></a>

16.安裝完成,進入登入界面。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110046674.jpg"></a>

三、2003-BASE母盤封裝

每一台虛拟機實際上都是有VHD硬碟檔案和VMC配置檔案組成,拷貝這兩個檔案并且重命名後就可以做成另一台虛拟機,但是由于直接拷貝機器會産生相同的SID(安全身份辨別),在域環境下是通過控制使用者SID和計算機SID來控制通路權限,會産生安全隐患。

注意:做母盤的系統最好是幹淨的系統,不要安裝任何多餘的軟體和做多餘的配置,系統裝完後安裝虛拟機(HYPER-V)插件,然後直接封裝。

微軟系統安裝CD光牒中的Support目錄下有個deploy.cab檔案,專門用于系統封裝,解封裝後每台機器會重新生成新的SID,可以通過第三方軟體ps-tools中的工具檢視sid。

1.提取deploy.cab中所有檔案到c:\sysprep(必須是此目錄下),其中setupmgr.exe就是封裝用到的配置工具,sysprep.exe是封裝工具。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110537237.jpg"></a>

2.輕按兩下setupmgr.exe進入安裝管理器向導

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110554324.jpg"></a>

3.建立新的應答檔案

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110621653.jpg"></a>

4.選擇sysprep安裝

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110633659.jpg"></a>

5.選擇目前作業系統

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110644774.jpg"></a>

6.選擇完全自動

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110654682.jpg"></a>

7.輸入名稱,機關

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110703319.jpg"></a>

8.顯示設定,預設即可

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110718992.jpg"></a>

9.時區

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110727240.jpg"></a>

10.輸入正确的産品密鑰

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110736802.jpg"></a>

11.授權模式,預設即可

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110744932.jpg"></a>

12.選擇自動生成計算機名(在同一網絡就不會産生計算機重名的沖突了)。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110757712.jpg"></a>

13.管理者密碼

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110806989.jpg"></a>

14.網絡組建,一般預設即可

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110815374.jpg"></a>

15.工作組

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110824936.jpg"></a>

16.電話或撥号設定

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110834860.jpg"></a>

17.區域,一般預設即可。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110842981.jpg"></a>

18.語言,不選(即使用目前系統語言)

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110851626.jpg"></a>

19.列印機

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110900349.jpg"></a>

20.是否需要在第一次登入時運作某個程式或者指令,如無,單擊下一步

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110910202.jpg"></a>

21.附件指令,如無,單擊下一步

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110919882.jpg"></a>

22.辨別字元串,不填,直接單擊下一步,然後單擊完成。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110935835.jpg"></a>

23.提示儲存配置檔案路徑,确定即可

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110946110.jpg"></a>

24.提示成功建立了配置檔案,單擊“取消”結束向導,微軟的小bug,此處應該是關閉的,會造成誤導。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/110956442.jpg"></a>

25.多出了一個i386和sysprep.inf的檔案,說明成功了,可以輕按兩下檢視配置檔案的配置。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111004933.jpg"></a>

26.輕按兩下sysprep.exe開始封裝系統,單擊确定後繼續

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111013585.jpg"></a>

27.設定關機模式為“關機”,然後單擊“重新封裝”

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111023541.jpg"></a>

28.單擊确定,系統會進行封裝并關機,至此封裝過程完成。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111035521.jpg"></a>

四、利用母盤快速建立一台2003虛拟機器

1. 複制2003-Base檔案夾,形成一個副本。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111242765.jpg"></a>

2. 将所有2003-Base的名字相關的名字改成自己的實際的名字,我這裡用2003-Test,有兩個檔案夾和一個VHD檔案需要改名。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111259528.jpg"></a>

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111308807.jpg"></a>

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111325143.jpg"></a>

3.在Hyper-V控制台中建立虛拟機

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111337592.jpg"></a>

4.虛拟機名稱與路徑

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111347212.jpg"></a>

5.記憶體

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111356886.jpg"></a>

6.網絡

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111406760.jpg"></a>

7.注意:這裡指定到剛才拷貝過來的2003Test.vhd磁盤。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111416420.jpg"></a>

8.完成向導

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111425845.jpg"></a>

9.打開虛拟機,進入解封裝狀态,直到進入登入界面。

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111435403.jpg"></a>

<a target="_blank" href="http://blog.51cto.com/attachment/201206/111448496.jpg"></a>

本文轉自yangye1985 51CTO部落格,原文連結:http://blog.51cto.com/yangye/892498,如需轉載請自行聯系原作者

繼續閱讀