VirtualBox从USB设备启动方法

Kvm、VMware、Virtualbox、Xen、Qemu 等
zick20080906
帖子: 1
注册时间: 2011-01-02 13:06

Re: VirtualBox从USB设备启动方法

#46

帖子 zick20080906 » 2011-01-11 19:08

求助~~~我是尝试用这种方法启动硬盘上XP,输入了VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/HardDisks/UsbDisk.vmdk -rawdisk /dev/sda1 -register后便显示如下。。。

代码: 全选

Oracle VM VirtualBox Command Line Management Interface Version 4.0.0
(C) 2005-2010 Oracle Corporation
All rights reserved.

Usage: VBoxManage internalcommands <command> [command arguments]

Commands:

  createrawvmdk -filename <filename> -rawdisk <diskname>
                [-partitions <list of partition numbers> [-mbr <filename>] ]
                [-relative]
       Creates a new VMDK image which gives access to an entite host disk (if
       the parameter -partitions is not specified) or some partitions of a
       host disk. If access to individual partitions is granted, then the
       parameter -mbr can be used to specify an alternative MBR to be used
       (the partitioning information in the MBR file is ignored).
       The diskname is on Linux e.g. /dev/sda, and on Windows e.g.
       \\.\PhysicalDrive0).
       On Linux host the parameter -relative causes a VMDK file to be created
       which refers to individual partitions instead to the entire disk.
       The necessary partition numbers can be queried with
         VBoxManage internalcommands listpartitions

WARNING: This is a development tool and shall only be used to analyse
         problems. It is completely unsupported and will change in
         incompatible ways without warning.

Syntax error: Invalid parameter '-register'
-register语法有错误吗? :em20
cmheia
帖子: 10
注册时间: 2010-12-04 0:15

Re: VirtualBox从USB设备启动方法

#47

帖子 cmheia » 2011-01-15 10:08

:em20
创建虚拟盘:
VBoxManage internalcommands createrawvmdk -filename "/home/cmh/VirtualBox VMs/grub/udisk.vmdk" -rawdisk /dev/sdc1 -register
然后选择udisk.vmdk就出错……类型不一致额…… :em20

打开 虚拟硬盘 /home/cmh/VirtualBox VMs/grub/udisk.vmdk 失败.
The medium '/home/cmh/VirtualBox VMs/grub/udisk.vmdk' can't be used as the requested device type.
明细:
返回 代码:
NS_ERROR_FAILURE (0x80004005)
组件:
Medium
界面:
IMedium {bfcf5b8c-5155-4f24-9414-9457054b16db}
被召者:
IVirtualBox {d2de270c-1d4b-4c9e-843f-bbb9b47269ff}
eurstein
帖子: 6
注册时间: 2006-12-09 20:14

Re: VirtualBox从USB设备启动方法

#48

帖子 eurstein » 2011-01-18 21:28

@46 楼 zick20080906, 去掉-register即可

@47 楼 cmheia, 参考33楼的方法,每次使用这个虚拟文件(创建时选择,启动虚拟机)之前,修改下/dev/sdb的权限就可以了。这个可能与usb驱动有关,/dev/sdb 的 other用户的权限会变回空。哪位仁兄有好的方法,给指点下,谢了。 :em01
头像
雨坤毅
帖子: 232
注册时间: 2010-08-28 14:34
系统: ArchLinux
联系:

Re: VirtualBox从USB设备启动方法

#49

帖子 雨坤毅 » 2011-03-06 0:09

cmheia 写了::em20
创建虚拟盘:
VBoxManage internalcommands createrawvmdk -filename "/home/cmh/VirtualBox VMs/grub/udisk.vmdk" -rawdisk /dev/sdc1 -register
然后选择udisk.vmdk就出错……类型不一致额…… :em20

打开 虚拟硬盘 /home/cmh/VirtualBox VMs/grub/udisk.vmdk 失败.
The medium '/home/cmh/VirtualBox VMs/grub/udisk.vmdk' can't be used as the requested device type.
明细:
返回 代码:
NS_ERROR_FAILURE (0x80004005)
组件:
Medium
界面:
IMedium {bfcf5b8c-5155-4f24-9414-9457054b16db}
被召者:
IVirtualBox {d2de270c-1d4b-4c9e-843f-bbb9b47269ff}
我也是这个问题~~ :em20
---------------------------------------
http://yky.me
---------------------------------------
头像
sddzcuigc
帖子: 55
注册时间: 2009-03-08 12:24

Re: VirtualBox从USB设备启动方法

#50

帖子 sddzcuigc » 2011-03-30 12:01

LS,是不是因为你拔了U盘?我开始也是这个问题,后来插上U盘就行了
我的QQ是553052416花月痕,欢迎加我为好友,一起解决问题。或者一起打KOF。
wishuwell
帖子: 9
注册时间: 2011-05-21 12:15

Re: VirtualBox从USB设备启动方法

#51

帖子 wishuwell » 2011-05-21 12:21

最简单不用折腾的方法是:到这个网站http://www.plop.at/en/bootmanagerdl.html 下载软件,解压后,用其中的虚拟光盘启动,
在出来的界面选usb即可。如果说没有找到可启动的usb,或者状态栏里选中usb,或者是usb选项卡里加入你的usb设备。
头像
qlhn
帖子: 736
注册时间: 2006-08-25 10:37
联系:

Re: VirtualBox从USB设备启动方法

#52

帖子 qlhn » 2011-05-23 8:29

收藏。
不应抓取诸相。
vfate_linux
帖子: 290
注册时间: 2010-09-22 22:44

Re: VirtualBox从USB设备启动方法

#53

帖子 vfate_linux » 2011-11-30 11:37

方法有点bt,咋不iso呢,更方便。
李佳盟
帖子: 201
注册时间: 2009-03-01 17:25

Re: VirtualBox从USB设备启动方法

#54

帖子 李佳盟 » 2012-01-06 16:47

:em11 成功。 :em11
头像
youqika
帖子: 720
注册时间: 2008-09-25 20:56

Re: VirtualBox从USB设备启动方法

#55

帖子 youqika » 2012-02-12 13:38

:em11 :em11
UCHIHA
运气是为白痴准备的
头像
youqika
帖子: 720
注册时间: 2008-09-25 20:56

Re: VirtualBox从USB设备启动方法

#56

帖子 youqika » 2012-02-17 20:17

成功了 :em11
不过那个/dev/sdx设备文件访问权限老是被改回去。。。
UCHIHA
运气是为白痴准备的
suiqiao
帖子: 11
注册时间: 2011-02-10 17:43

Re: VirtualBox从USB设备启动方法

#57

帖子 suiqiao » 2012-02-27 16:57

按照楼主的方案,的确实现了usb引导。
但是vbox完全无视U盘上的grub4dos,直接引导了一个live iso。 :em06
其实我U盘上有很多可引导的iso,我不知道它怎么挑了那个deepin直接就进去了 :em20
头像
zhaoqingyu51
帖子: 120
注册时间: 2011-10-02 21:06

Re: VirtualBox从USB设备启动方法

#58

帖子 zhaoqingyu51 » 2012-03-09 12:26

代码: 全选

Failed to open the hard disk /home/zhao/.VirtualBox/UsbDisk1.vmdk.

The medium '/home/zhao/.VirtualBox/UsbDisk1.vmdk' can't be used as the requested device type.



Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
Medium
Interface: 
IMedium {53f9cc0c-e0fd-40a5-a404-a7a5272082cd}
Callee: 
IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}
头像
zhaoqingyu51
帖子: 120
注册时间: 2011-10-02 21:06

Re: VirtualBox从USB设备启动方法

#59

帖子 zhaoqingyu51 » 2012-03-09 12:27

求解决。。已经成功创建了硬盘文件,u盘是不是先要unmount一下?
附件
Screenshot.png
jhkd5579067
帖子: 94
注册时间: 2012-02-01 20:58

Re: VirtualBox从USB设备启动方法

#60

帖子 jhkd5579067 » 2012-03-24 14:25

最简单的方式:

sudo gedit /etc/group

找到
vboxusers:x:123:用户

把用户换成你当前的登录用户
重启后就可以,只要装完 vboxusers 装个增强驱动就使用此方法。
回复