0. virtulbox本身并不支持直接启动u盘,你可以看新建虚拟机的设置--》系统启动顺序里没有usb。启动u盘的折中方法就是让virtualbox把u盘认成硬盘,以下是步骤(百度一下会有很多一样的步骤,可是它们都没有强调很重要的两点,即用管理员运行virtualbox和cmd。我的系统,win7,virtualbox 4.2.12。这里再啰嗦一下,如果运行virtualbox后出现“loadlibrary failed with error 126” ,那么把注册表的“OpenGLVendorName” 项目值从“atiogl64.dll, ig4icd64.dll”修改为“atio6axx.dll,atio6axx.dll ”就可以解决) 1. 在磁盘管理器里查看u盘是“磁盘1还是2”,一般不查也可以,只要遵循如果只有一个硬盘就是磁盘1。 2. 以管理员运行virtualbox(这个很重要,就是在virtualbox快捷方式下按右键,选择以管理员运行) 3. 以管理员运行cmd(这个也很重要,就是在开始里搜索到cmd,再点右键,选择以管理员运行) 4.在命令行下进入到virtualbox的安装目录,也就是vboxmanage命令所在的目录 5. 运行命令”VBoxManage internalcommands createrawvmdk -filename d:\usb.vmdk -rawdisk \\.\PhysicalDrive1" 6.如果不能建立usb.vmdk, 有错误提示,比如 Hopefully those steps worked for you like they did for me. If you get an error like, “VERR_ACCESS_DENIED” you probably didn’t run the command prompt as an administrator. If you get an error like, VBoxManage.exe: error: Failed to create the VirtualBox object! VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available) VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start. Then you probably didn’t run VirtualBox as an administrator. 那么很可能就是你不是管理员身份,请再看2和3条。 |
|