使用 virtualbox 體驗 efi 部份功能

CPU/显卡/打印机/USB设备等硬件问题
回复
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

使用 virtualbox 體驗 efi 部份功能

#1

帖子 poloshiao » 2017-03-07 16:39

手上没有uefi主板的机子
0. 以下以 Ubuntu 為例 建立 虛擬機 myUbuntu1604AMD64EFI

1. 如何在分割時 出現 esp 標誌 (flag) 選項
啟用 EFI 打勾
參見下圖 20170307152201
1-1. 目的
安裝 Ubuntu 時會 產生 efi system partition 存放 Ubuntu 的 efi 開機檔案 grubx64.efi

2. 啟動 虛擬機 myUbuntu1604AMD64EFI 同時
需要立刻按住 esc 鍵不放 一直到出現 efi 畫面
參見下圖 20170307152202
2-1. 這個 efi 畫面 相當於實機 UEFI 設定畫面
2-1-1. 但是 因為還沒有相當於虛擬 nvram 硬件可以儲存
所以 每次重開機 都要重複進入這個畫面 設定該次開機檔案

3. 內建 efi internal shell
參見下圖 20170307152203, 20170307152204, 20170307152204
3-1. 在 shell> 下 efi shell 指令
啟動 開機檔案 grubx64.efi (64 bit)
grubx64.efi

代码: 全选

FSx: 其中 x=1,2,3,4 ... (參見下圖 20170307152206)
cd EFI
cd ubuntu
grubx64.efi
啟動 Ubuntu 開機程序

3-2. 登入 Ubuntu 桌面以後
把上述的 efi shell 指令 寫進 /boot/efi/startup.nsh 並給予可執行屬性

代码: 全选

FSx: 其中 x=1,2,3,4 ...
cd EFI
cd ubuntu
grubx64.efi
4. 重開機 進入
20170307152206

4-1. f靜待 5 秒後 自動啟動 startup.nsh

4-2. 也可以按下 esc 鍵 進入 shell> 手動輸入 efi shell 指令

代码: 全选

FSx: 其中 x=1,2,3,4 ... (參見下圖 20170307152206)
startup.nsh
4-3. 或者

代码: 全选

FSx: 其中 x=1,2,3,4 ... (參見下圖 20170307152206)
cd EFI
cd ubuntu
grubx64.efi
5. 補充
https://en.wikipedia.org/wiki/Unified_E ... ualization
Use of UEFI with virtualization
VirtualBox has implemented UEFI since 3.1, but limited to Unix/Linux operating systems and some versions of Windows (does not work with Windows Vista x64 and Windows 7 x64)
目前 Windows Vista x64 及 Windows 7 x64 Guest 無法 啟用 EFI
附件
20170307152201.png
20170307152202.png
20170307152203.png
20170307152203.png (6.03 KiB) 查看 10065 次
20170307152204.png
20170307152204.png (7.9 KiB) 查看 10065 次
20170307152205.png
20170307152206.png
头像
aukomn
帖子: 144
注册时间: 2008-05-03 14:09
联系:

Re: 使用 virtualbox 體驗 efi 部份功能

#2

帖子 aukomn » 2017-03-16 22:19

virtualbox装win7成功过吗
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 使用 virtualbox 體驗 efi 部份功能

#3

帖子 poloshiao » 2017-03-18 7:19

virtualbox装win7成功过吗
1. 根據這一篇
https://www.virtualbox.org/ticket/7702#comment:13
Windows 7 guests depend on proper int10 support and are not supported. We might change this eventually but this has low priority.
1-1. 意思是 Windows 7 目前不支援

2. 根據這一篇
https://www.virtualbox.org/ticket/7702#comment:18
Windows 8.1 and later are able to boot in EFI mode with VirtualBox.
2-1. 意思是 Windows 8.1 及以後的版本 應該可以
头像
aukomn
帖子: 144
注册时间: 2008-05-03 14:09
联系:

Re: 使用 virtualbox 體驗 efi 部份功能

#4

帖子 aukomn » 2017-03-19 12:15

poloshiao 写了:
virtualbox装win7成功过吗
1. 根據這一篇
https://www.virtualbox.org/ticket/7702#comment:13
Windows 7 guests depend on proper int10 support and are not supported. We might change this eventually but this has low priority.
1-1. 意思是 Windows 7 目前不支援

2. 根據這一篇
https://www.virtualbox.org/ticket/7702#comment:18
Windows 8.1 and later are able to boot in EFI mode with VirtualBox.
2-1. 意思是 Windows 8.1 及以後的版本 應該可以
我装了,但都没有网卡驱动
头像
aukomn
帖子: 144
注册时间: 2008-05-03 14:09
联系:

Re: 使用 virtualbox 體驗 efi 部份功能

#5

帖子 aukomn » 2017-03-19 12:15

可以用VMWARE win7
回复