virtualbox中使用U盘等usb设备


主系统:archlinux + virtualbox 5.0.24-1 虚拟机:windows

安装VirtualBox Extension Pack

下载

先从官网下载扩展包 https://www.virtualbox.org/wiki/Downloads

注意 :版本要一致

└──╼ pacman -Qi virtualbox
名字           : virtualbox
版本           : 5.0.24-1
描述           : Powerful x86 virtualization for enterprise as well as home use
架构           : x86_64

所以下载 5.0 版本的pack

安装

参考 https://wiki.archlinux.org/index.php/VirtualBox

$ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.0.24-108355.vbox-extpack

安装不一致的版本会

└──╼ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.1.0-108711.vbox-extpack
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/home/jianglin/VirtualBox VMs/extpack/Oracle_VM_VirtualBox_Extension_Pack-5.1.0-108711.vbox-extpack"
VBoxManage: error: VBoxExtPackRegister returned VERR_VERSION_MISMATCH, pReg=0000000000000000 ErrInfo='VirtualBox version mismatch - expected 5.1 got 5.0'
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1158 of file VBoxManageMisc.cpp

卸载

参考 https://www.virtualbox.org/manual/ch08.html#vboxmanage-extpack 不是

└──╼ sudo VBoxManage extpack uninstall Oracle_VM_VirtualBox_Extension_Pack-5.0.24-108355.vbox-extpack
 0%...
 Progress state: NS_ERROR_FAILURE
 VBoxManage: error: Failed to uninstall "Oracle_VM_VirtualBox_Extension_Pack-5.0.24-108355.vbox-extpack"
 VBoxManage: error: Invalid extension pack name specified
 VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
 VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg*)" at line 1199 of file VBoxManageMisc.cpp

而是

└──╼ sudo VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully uninstalled "Oracle VM VirtualBox Extension Pack".

启用usb设备

虚拟机需要 关机 设置->USB设备->启用USB控制器->勾选3.0

开机:顶部 设备 里选择 USB

OK,就这样

Author: honmaple

NO CONTENTS

lin.jiang

风落花语风落天,花落风雨花落田.