在 qemu 虛擬機器中安裝 Windows Server 2012 R2

在 qemu 虛擬機器中安裝 Windows Server 2012 R2

我正在嘗試安裝 Windows Server 2012 R2,但在載入 Windows 檔案後,我得到:

Your PC needs to restart. Please hold down the power button. Error Code: 0x0000005D

我的命令是:

qemu-system-x86_64.exe -L . -m 2048 -boot d -hda coeess_virtual.img -cdrom en_windows_server_2012_r2_x64_dvd_2707946.iso

答案1

指定受支援的 x64 CPU。誰知道 QEMU 預設是什麼。

像這樣(需要 KVM):

qemu-system-x86_64 -cpu host -m 2048 -boot d -hda coeess_virtual.img -cdrom en_windows_server_2012_r2_x64_dvd_2707946.iso

或是這樣(不需要 KVM):

qemu-system-x86_64 -cpu Nehalem -m 2048 -boot d -hda coeess_virtual.img -cdrom en_windows_server_2012_r2_x64_dvd_2707946.iso

可以透過以下方式查詢包含支援值的列表

qemu-system-x86_64 -cpu "?"

更新:

哦,是的,忘了警告你:它仍然可能不起作用。 QEMU 適用於目前的 Linux 版本和「舊」Windows 版本,但如果沒有 KVM 支持,它可能無法運行 Windows 8+。

相關內容