You are not logged in.

#1 2009-09-27 12:21:38

bl0ndynek
Member
From: Poland
Registered: 2008-07-04
Posts: 73

[SOLVED] usb boot in VirtualBox

Hello can any one know the way to boot grub (or any system) in VirtualBox from pendrive?
I have  VirtualBox PUEL (package virtualbox_bin) add my pendrive in usb config, set boot form disk and still get error:

FATAL: Could not read from the boot medium! System halted.

any idea?

Last edited by bl0ndynek (2009-09-30 07:30:47)

Offline

#2 2009-09-27 15:27:10

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: [SOLVED] usb boot in VirtualBox

Maybe that image is corrupted. Can you boot your real system from that pen drive? AFAIK virtualbox should also be able to directly boot from an iso on your hard drive.

Offline

#3 2009-09-27 15:30:19

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] usb boot in VirtualBox

It's not something I have ever tried but I did a spot of googling and found these.

http://forums.virtualbox.org/viewtopic. … 9cbe9a9aa7

http://blog.alt42.co.uk/2009/08/24/virtualbox-usb-boot/


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#4 2009-09-28 19:52:00

bl0ndynek
Member
From: Poland
Registered: 2008-07-04
Posts: 73

Re: [SOLVED] usb boot in VirtualBox

MadTux:
Yes my system boot from this usb.
I know that I can boot iso direct from hard drive, but I have many iso on pendrive and get try to multipass so I can choos which iso I want to boot when I pug it in (choose with GRUB2). So it will be nice to don't have to reboot machine for every test.
loafer:
Thank you for links I will check them.

Last edited by bl0ndynek (2009-09-28 19:52:18)

Offline

#5 2009-09-30 07:19:26

bl0ndynek
Member
From: Poland
Registered: 2008-07-04
Posts: 73

Re: [SOLVED] usb boot in VirtualBox

OK I digg the internet nad this what I found:

1. unmount pendrive

sudo umount /dev/sdb1

2.Changed permissions

sudo chmod 777 /dev/sdb1
sudo chmod 777 /dev/sdb

3. Created rawdisk:

VBoxManage internalcommands createrawvmdk -filename ~/mnt/new_usb.vmdk -rawdisk /dev/sdb -register

4. Set permissions for new_usb.vmdk

sudo chmod 777 /dem/mnt/new_usb.vmdk

and now when I mount in VirtualBox new_usbvmdk as disk, umount pendrive in USB section
And it works :]

Last edited by bl0ndynek (2009-09-30 07:30:29)

Offline

#6 2010-07-04 19:17:11

nickwe
Member
Registered: 2007-07-12
Posts: 9

Re: [SOLVED] usb boot in VirtualBox

@bl0ndynek : Have been trying to do that for a while without any success, your method works like a charm, thanks a lot!

Offline

Board footer

Powered by FluxBB