Table of Contents
主系统: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
虚拟机从U盘启动(仅macos)
https://www.how2shout.com/how-to/virtualbox-virtual-machine-boot-usb.html
按照上述所说大概率是可以的
-
首先插入U盘,并查看U盘所在dev
diskutil list
-
卸载U盘并创建虚拟硬盘
diskutil unmountDisk /dev/disk# sudo vboxmanage internalcommands createrawvmdk -filename ./usb.vmdk -rawdisk /dev/disk#
-
再次卸载U盘
diskutil unmountDisk /dev/disk#
-
设置权限
chown `whoami`:staff ./usb.vmdk
-
使用sudo启动virtualbox
sudo VirtualBox
问题就在这,我不想使用sudo启动
OK,就这样