Boot from USB_pendrive

Discussions related to using VirtualBox on Linux hosts.
Post Reply
demontager
Posts: 10
Joined: 17. Sep 2009, 00:41
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win2003Server

Boot from USB_pendrive

Post by demontager »

Can't make working boot from USB pendrive on Linux host, but works on WindowsXP-HOST (VB 3.0.6)
So my steps:
1. Unmount USB drive,
sudo fdisk -l
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 1966 15785952+ c W95 FAT32 (LBA)

Code: Select all

sudo umount /dev/sdc1
dem@dem-laptop:~$ ls -al /dev/sdc1
brw-rw---- 1 root disk 8, 33 2009-09-16 18:18 /dev/sdc1
2.Changed permissions

Code: Select all

 
sudo chmod 777 /dev/sdc1 
dem@dem-laptop:~$ ls -al /dev/sdc1
brwxrwxrwx 1 root disk 8, 33 2009-09-16 18:18 /dev/sdc1
3. Created rawdisk:

Code: Select all

dem@dem-laptop:~$ VBoxManage internalcommands createrawvmdk -filename ~/mnt/new_usb12.vmdk -rawdisk /dev/sdc1 -register
VirtualBox Command Line Management Interface Version 3.0.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

RAW host disk access VMDK file /home/dem/mnt/new_usb12.vmdk created successfully.
dem@dem-laptop:~$ 
4. Set permissions for new_usb12.vmdk

Code: Select all

sudo chmod 777 /dem/mnt/new_usb12.vmdk
dem@dem-laptop:~/mnt$ ls -al new_usb12.vmdk 
-rwxrwxrwx 1 dem dem 628 2009-09-17 09:33 new_usb12.vmdk
5. Added new_usb12.vmdk as hard drive in VB, then started virtual machine, and here it shows me that it can't boot, but this disk bootable under real hardware and in Windows VB
Very strange for me, please help me find a way-out from this situation
Image
p.s. Linux HOST-Ubuntu 9.04 amd64, VB-3.0.4
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Boot from USB_pendrive

Post by Sasquatch »

Check the boot order, it appears it tries to boot from floppy first, and you have one mounted as such.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
demontager
Posts: 10
Joined: 17. Sep 2009, 00:41
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win2003Server

Re: Boot from USB_pendrive

Post by demontager »

I checked, floppy disk wasn't connected. Anyway I made upgrade Vb to 3.0.6 ver, then recompiled it /etc/init.d/vboxdrv setup, then tried to boot from USB pendrive again, and now it does not show any information inside a virtual machine, just black screen.
Also once i tried to boot from pendrive, it again reset permissions for /dev/sdc1, so every new try I did sudo chmod 777 /dev/sdc1
Image
Image
Image
demontager
Posts: 10
Joined: 17. Sep 2009, 00:41
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win2003Server

Re: Boot from USB_pendrive

Post by demontager »

After rebooting, tried again recreate usb.vmdk, then started machine and received same error as before:
Image
for sure floppy not connected only hard drive in boot options
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Boot from USB_pendrive

Post by Perryg »

AFAIK you can not boot from a USB drive in VBox. It simply is not there.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Boot from USB_pendrive

Post by Sasquatch »

Perryg wrote:AFAIK you can not boot from a USB drive in VBox. It simply is not there.
It should be possible in the way he does it, using RAW Disk. The USB is not mounted in the VM, nor on the Host for that matter but is visible and should be accessible for raw data reads.
Maybe the problem itself is the fact that it's a USB device and not a normal hard drive where RAW Disk was made for.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
demontager
Posts: 10
Joined: 17. Sep 2009, 00:41
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win2003Server

Re: Boot from USB_pendrive

Post by demontager »

Yes, it should work, it fully and great works on Windows host, I am still trying no success on Linux...
P.S. tried also in Qemu, and same not works on Linux, but on Windows does.
I followed this post in order to get USB boot working on Windows:
http://agnipulse.com/2009/07/boot-your- ... irtualbox/
Post Reply