2010年3月26日星期五

讓Users 一起管理VM

Hyper-V Manager 預設只有Local Administrators Group 和 Domain Administrators Group 才有管理Hyper-V 權限, 但由於只有一,至兩個管理員負責Hyper-V管理上會比較麻煩, 所以我們可以經過Authorization Manager 授權給users 管理權限, 而不用給予最高administrators 權限.


1.在windows server 2008, 輸入azman.msc開啟Authorization Manager, 打開“%ProgramData%\Microsoft\Windows\Hyper-V\InitialStore.xml"
2.展開Definitions, 右鍵Role Definitions-->Create Role Definition, 在Name 輸入VM Manager, 按一下Add, 選擇需要的operation permission.


3.展開Role Assignments, 右鍵Add Role, 選擇VM Manager


4.新增users 到VM Manager

5.最後用users account 登入後, 打開Hyper-V Manager, 便會看見VM


6.因為沒有給予Stop Service 權限, 所以user 不能Stop VM

2010年3月20日星期六

讓不支援HAV (Hardware-Assisted Virtualization) 電腦都可以行XP Mode





XP Mode 是Windows 7 新特色, 可以解決軟件相容性問題, 但唯一是只可以在CPU 支援HAV (Hardware-Assisted Virtualization)電腦上運行, 一些比較舊電腦就無福享受這個新功能.
但近日Micosoft 發佈了更新檔KB977206 , 可以令一些電腦沒有HAV 支援下都可以成功執行.
如大家有舊電腦可以一試.
這個更新僅支援 Windows XP Service Pack 3 虛擬機器
建議您僅在處理器不支援 HAV 功能時安裝這個更新

已知問題

安裝這個更新之後,您可能無法在 Windows 7 和 Windows XP 模式 (或任何其他虛擬機器) 之間複製並貼上檔案。如果要解決這個問題,可透過從虛擬機器存取的共用 Windows 7 磁碟機來複製並貼上。如果要執行這項操作,請依照下列步驟執行:
請確認您已啟用虛擬機器中的「整合功能」。如需有關如何啟用這些功能的詳細資訊,請造訪下列 Microsoft 網站:
http://technet.microsoft.com/zh-tw/library/ee449412(WS.10).aspx (http://technet.microsoft.com/zh-tw/library/ee449412(WS.10).aspx)
在虛擬機器中,開啟 [Windows 檔案總管],然後在虛擬機器的磁碟機和共用的 Windows 7 磁碟機之間複製或貼上檔案。


Windows Virtual PC and Windows XP Mode no longer require HAV processors
The Virtual PC team is thrilled to announce the availability of KB977206 which allows our customers to use Windows Virtual PC and Windows XP Mode on non-HAV (Hardware-Assisted Virtualization) machines. Windows XP Mode continues to use hardware virtualization such as Intel Virtualization Technology (Intel® VT) or the AMD-V™ chipset when available but it no longer requires them. A number of our customers and partners have been asking us to support a wider range of PC’s including those without HAV capability and we have delivered this software patch to address their needs. We believe that this change simplifies the customer experience and makes this benefit accessible to many more PCs.

Download the software update for 32-bit host operating systems from here and for 64-bit host operating systems from here.

The KB article describes the various scenarios under which the software update must be installed. Ensure that Windows Virtual PC is installed before applying this fix.


下載位置: http://support.microsoft.com/kb/977206
XP MODE 下載:http://www.microsoft.com/windows/virtual-pc/download.aspx

2010年3月2日星期二

了解 Virtual Hard Disk

在Hyper-V 裡, 主要有兩種類型: Fixed-size VHD& Dynamic VHD, 每種類型可支持size 上限是2040GB.
Fixed-size VHD: 如建立VHD 時已設定20GB, VHD 會立即佔去了實體hard disk 20GB 位置,好處是存取效能較好.
Dynamic VHD: 如用此類別建立VHD並設定20GB, 但它不會立即佔去了實體hard disk 20GB, 它只會隨著用量來擴充容量直至到20GB

另外還有Differencing VHD: 這是會建立兩個VHD, 而且是母子關係, parent-child relationship, VM 會根據parent VHD 為基礎, 而所有改變只會在child VHD, 不會影響到parent VHD. 好處是節省空間, 但會效能會大打折扣.



最後一個是Pass-Through Disk Access, 其實這個不是VHD 的一種, 這能夠令Hyper-V 沒有VHD 下利用直接存取Physical Hard Disk工作, 而且沒有2040GB 限制. 但首先在disk managment 裡offline hard disk 才可以給hyper-v 使用.

還有注意地方:
System 只可以由IDE 啟動, 而IDE 只有2個controller, 可以連續4隻VHD. 而SCSI有4個controller, 每個controller 可以連接64隻VHD, 總數可以連接256隻VHD, 但不能boot system.