筆記:令 VirtualBox 用 USB 手指內的系統開機

  1. 打開 Terminal
  2. 輸入 diskutil list 確認 USB 手指的路徑,例如 /dev/disk2
  3. 由於 VirtualBox 只會讀取當前使用者名下的檔案,所以需要確認並更改有關權限:
    $ ls -al /dev/disk2 
    brw-r----- 1 root operator 1, 8 Jan 7 21:39 /dev/disk2
    $ sudo chown (your username) /dev/disk2
    
  4. 然後製作一個指向裝有操作系統的 USB 的虛擬空間
    vboxmanage internalcommands createrawvmdk -filename  ~/usb.vmdk -rawdisk /dev/disk2
  5. 新增虛擬主機,然後選擇 usb.vmdk 作開機路徑
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s