Try   HackMD

讓 MacBook 的 VirtualBox 虛擬機偵測 USB 裝置

  1. 先到官網下載相對應版本的 Extension Pack,舊版本也可在官網下載到該版本的 Extension Pack (https://www.virtualbox.org/wiki/Download_Old_Builds)。

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  2. 下載完後就安裝 Extension Pack。

  3. 開啟 Terminal,並用以下指令開啟 VirtualBox:

    ​​​​% sudo virtualbox
    

    根據 https://forums.virtualbox.org/viewtopic.php?t=107333 這一篇的討論,macOS 用戶在使用 VirtualBox 7 版本目前只能用 sudo virtualbox 來達到使用 USB 的功能,但若是 VirtualBox 6 的版本似乎不用 sudo 就能達到使用 USB 的功能(但我自己換到 6 的版本測試還是必須要用 sudo 才可以)

    雖然知道用 sudo 不安全,但目前似乎也只能這樣用了@_@

  4. 若是第一次用 sudo 開啟的 VirtualBox,此時應該會沒有任何虛擬機。

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  5. Add,找到原本虛擬機的 .vbox 檔案,虛擬機就會出現在 list 上

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

  6. 將 USB 裝置跟 MacBook 連接。

  7. 對虛擬機點選 Settings -> Ports -> USB -> 點選右側一個新增的 icon(如下圖),此時應該會顯示目前有連接的 USB 裝置的資訊,而我要新增的 USB 裝置就是 Realtek USB 10_100_1000 LAN,點選它,將其加入:

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

    這樣之後開啟虛擬機就能偵測得到這個 USB 裝置(只是都要用 sudo virtualbox 開啟 VirtualBox 就是了)。