天天看點

SCVMM2008 R2 SP1 實體機實戰P2V遷移主機 Step By Step.

因為我們公司的伺服器虛拟化用的是微軟的Hyper-V,是以對這個産品熟悉一點,無意中測試知道我們工作用的桌上型電腦DELL Workstaion 780硬體完全支援虛拟化,是以就有了沖動想寫一篇教程,簡單地搭建一個實驗環境,現在出了scvmm2012 beta版的,但我不打算去測試應用,還是用穩定版本做靠譜一點.

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334289201MqHJ.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288920UEgi.png"></a>

首先普及一下基本知識,搭建虛拟化之前我們要先确認一下硬體是否支援虛拟化,我們可以用securable這個軟體來運作測試一下即可,看到如下圖所示的結果表示此硬體是支援虛拟化的,否則是不支援的,這是最基本的前提條件(此軟體我添附在文章最後的附件中,有需要的可以下載下傳來測試用)

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288921mpni.png"></a>

然後進BIOS開啟虛拟化硬體支援

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334289412T7wu.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334289464H2Hs.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288930SV5a.png"></a>

最基本的域環境準備,AD\DNS\Hyper-V 然後用戶端加入等全部就緒到位.

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288932w5bS.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334289343MNaY.png"></a>

System Center Virtual Machine Manager(簡稱SCVMM)是微軟出品的一款重量級虛拟化管理産品,這個産品可以管理Hyper-V虛拟機,可以實作實體機到虛拟機的遷移(P2V),虛拟機到虛拟機的遷移(V2V),而且還可以管理Wmware的ESX!微軟的産品戰略中Hyper-V免費做為一個角色提供添加,這樣有利于占領市場,但是它真正是靠SCVMM來擷取經濟回報的,是以還是那句話叫”羊毛出在羊身上”

現在開始真正開始上菜 SCVMM2008 R2 SP1 下載下傳位址:

<a href="http://technet.microsoft.com/en-us/.center/cc793138.aspx">http://technet.microsoft.com/en-us/evalcenter/cc793138.aspx</a>

部署SCVMM2008需要兩個基本條件:一是需要有 Active Directory的支援,SCVMM2008要在域環境下部署;二是SCVMM2008需要在64位的 Windows Server 2008上部署,不再支援32位作業系統,下面開始部署SCVMM2008 R2 SP1到Hyper-V這台伺服器上去.

安裝就沒有什麼好說的一路next就行,隻是選資料庫的時候我們這裡做實驗就選自帶的SQL Server 2005 Express SP3就行.

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288936hqxm.png"></a>

接下來進入SCVMM管理控制台選Add host選項,把我們的兩台Hyper-V伺服器添加進來.

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288941riPU.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288943nGrM.png"></a>

為主機選擇一個組,預設在ALL Hosts下面

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288944yiRg.png"></a>

添加虛拟機預設存儲路徑

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288945KyR6.png"></a>

然後檢視主機設定資訊總結

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288947lITb.png"></a>

直到添加Hyper-V伺服器完成

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288949FFX1.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288950lCV3.png"></a>

在管理控制台就可以看得到主機運作狀态資訊了.

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288953WTrp.png"></a>

ok,一切準備就緒了,下面正式開始P2V實體主機遷移到Hyper-V

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288957rekn.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_13342889590kTj.png"></a>

我這裡在Scan system的時候報了一個錯誤資訊,我本來抓到圖的,但後來發現丢失不見了,意思是這樣的

VMM does not have appropriate permissions to access the resource on the %server. Access is denied (0x80070005)

百度一下找到了解決方法

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288960ysGf.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288962VTmi.png"></a>

權限添加以後就可以順利通過掃描了.

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_13342889642kqH.png"></a>

同時我們也可以看到P2V agent已經自動安裝好了

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288968Xgez.png"></a>

根據需要可以選擇需要遷移的磁盤

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288969D2Gn.png"></a>

選擇CPU的數目和配置設定記憶體的大小

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288971xfLd.png"></a>

選擇需要遷移到那台Hyper-V伺服器上.

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288972chfe.png"></a>

選擇虛拟機檔案存儲的路徑

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288974frB6.png"></a>

設定網卡連接配接到本地網絡

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288975JgPg.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288977Kg2G.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288978Lai7.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288979p8AY.png"></a>

開始正式遷移了

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288981fV4N.png"></a>

完成以後有一個警告,因為我們遷移的伺服器版本是windows server 2003 sp1,需要更新到SP2才行

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288983NnpO.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288984uohz.png"></a>

沒裝上interration services, 滑鼠和網卡等都不能用,隻能用鍵盤來操作,真是一抓瞎,害死人,沒辦法隻能下載下傳SP2的ISO檔案,通過鍵盤來操作更新系統

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_13342889864sQQ.png"></a>

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288988KvtB.png"></a>

自此P2V遷移的全過程全部完成

<a href="http://allanfan.blog.51cto.com/attachment/201204/13/520839_1334288990Mxbz.png"></a>

總結:根據我的經驗遷移不同伺服器不同作業系統的版本,都有可能遇到各種各樣的問題,遷移的路也不是一帆風順的,隻有自己多動手實踐,遇到問題越多,你多能慢慢分析找出解決方案,自然隻要說到遷移的問題就都是你的菜,我偷懶測試遷移windows XP SP3的時候用網上Ghost系統,結果弄得我滿頭苞,問題是一波接一波地出現,真的搞得我很崩潰,這就是一個教訓,分享出來與大家共勉.

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

繼續閱讀