0. 以下以 Ubuntu 為例 建立 虛擬機 myUbuntu1604AMD64EFI手上没有uefi主板的机子
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
3-2. 登入 Ubuntu 桌面以後
把上述的 efi shell 指令 寫進 /boot/efi/startup.nsh 並給予可執行屬性
代码: 全选
FSx: 其中 x=1,2,3,4 ...
cd EFI
cd ubuntu
grubx64.efi
20170307152206
4-1. f靜待 5 秒後 自動啟動 startup.nsh
4-2. 也可以按下 esc 鍵 進入 shell> 手動輸入 efi shell 指令
代码: 全选
FSx: 其中 x=1,2,3,4 ... (參見下圖 20170307152206)
startup.nsh
代码: 全选
FSx: 其中 x=1,2,3,4 ... (參見下圖 20170307152206)
cd EFI
cd ubuntu
grubx64.efi
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