在公司試著在VirtualBox安裝Windows 2000 Server時,每到複製檔案的地方,就自動重開機,屢試不爽,原以為是軟、硬體支援度的問題,本打算作罷,沒想到竟在Google找到了答案…
而發生的原因竟然是…太快了!這算是Windows 2000的一個bug,擷取Sun官方說明如下:
After issuing a hard disk request, there is a race condition in the Windows driver code which leads to corruption if the operation completes too fast, i.e. the hardware interrupt from the IDE controller arrives too soon. With physical hardware, there is a guaranteed delay in most systems so the problem is usually hidden there (however it should be possible to reproduce it on physical hardware as well). In a virtual environment, it is possible for the operation to be done immediately (especially on very fast systems with multiple CPUs) and the interrupt is signaled sooner than on a physical system. |
因此,解決的方法也很簡單,就是讓它慢一點…,執行指令:
VBoxManage setextradata VMNAME "VBoxInternal/Devices/piix3ide/0/Config/IRQDelay" 1
|
此值可以介於0~5,單位是ms,因此數值愈大,延遲愈久
在安裝完系統後,請將此值移除或改成0
【相關連結】
- 解决VirtualBox 3.0安装Windows 2000失败 | -= April 1985 =-
- Sun VirtualBox® Windows 2000 installation failures