Boot from bootable USB drive in VB?
Boot from bootable USB drive in VB?
I have setup a bootable usb drive with persistent Ubuntu 7.10 install on it. I would like to be able to boot from this in VB. For example: When at work I need to be in windows 100% of the time. But I would like to use VB to load my bootable usb drive. Then when at a friends house, I would like to be able to just boot off the usb drive. Is there anyway to do this? Maybe something like booting from a shared folder. Or running some sort of emulator that will treat my USB drive as a CD drive.
My usb drive is setup very similarly to one here:
http://www.pendrivelinux.com/2007/09/28 ... n-install/
My usb drive is setup very similarly to one here:
http://www.pendrivelinux.com/2007/09/28 ... n-install/
Does windows version of vb supports this?Olive wrote:It is not passible directly but it is possible indirectly. Configure your USB drive as a raw disk in VirtualBox (page 105 of the manual). Then the guest will see your USB drive as a IDE drive and will be able to boot on it.
I'm trying to look for the raw disk options at the windows version of vb.
-
- Posts: 13
- Joined: 21. Feb 2008, 09:35
- Primary OS: Mac OS X Leopard
- VBox Version: PUEL
- Guest OSses: Win7 RC (X86, X64), Gentoo Linux
not sure if this is gravedigging, but looks like i just successfully completed this on OS X. it makes more sense to install gentoo for an old ass laptop in a virtual machine than to wait around (for like forever on this p2-400 laptop). connected the laptop HDD with an IDE 2 USB cable and did this:
(01/07 02:32) lkraav@mobilitymac /Users/Shared/Virtual Machines $ VBoxManage internalcommands createrawvmdk -filename MobilityGentoo/IDE2USB-DBCA-206480-6.49G.vmdk -rawdisk /dev/disk3
VirtualBox Command Line Management Interface Version 1.6.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
RAW host disk access VMDK file MobilityGentoo/IDE2USB-DBCA-206480-6.49G.vmdk created successfully.
then add the drive to the hard drive list and off you go!
i've done the same thing in vmware server on windows before, so i knew there shouldnt be any serious technical limitations. glad to see that even if the UI isnt there, the functionality is all there.
(01/07 02:32) lkraav@mobilitymac /Users/Shared/Virtual Machines $ VBoxManage internalcommands createrawvmdk -filename MobilityGentoo/IDE2USB-DBCA-206480-6.49G.vmdk -rawdisk /dev/disk3
VirtualBox Command Line Management Interface Version 1.6.2
(C) 2005-2008 Sun Microsystems, Inc.
All rights reserved.
RAW host disk access VMDK file MobilityGentoo/IDE2USB-DBCA-206480-6.49G.vmdk created successfully.
then add the drive to the hard drive list and off you go!
i've done the same thing in vmware server on windows before, so i knew there shouldnt be any serious technical limitations. glad to see that even if the UI isnt there, the functionality is all there.
Re: Boot from bootable USB drive in VB?
I'm not sure it works same in the Linux version, but at least in VirtualBox 2.1.4 Windows, when I plug in a USB flash drive, it's recognized as a floppy. So, I can simply select "Mount Floppy Drive" with "Host Floppy Drive" (e.g. "G:"), and booting it from there works like a charm.
__
sol
__
sol
-
- Posts: 62
- Joined: 3. Nov 2007, 22:55
Re: Boot from bootable USB drive in VB?
Little information by the way: RAW access isn't possible under NT6 (Vista, Server 2008 and the forthcoming Seven), because MS restricted it ... To avoid this Sun has to implent a driver which enables the option again ...
-
- Posts: 1
- Joined: 22. Sep 2009, 17:47
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: Ubuntu
- Contact:
Re: Boot from bootable USB drive in VB?
I came up with this method for booting virtual box guests from USB devices a while ago. It works for me but might not work for others...
This guide contains a method for creating a Bootable CD that includes the Linux kernel and some other stuff including the USB driver needed to use a bootable USB device. This CD boots up and loads the USB driver then continues the boot process from any USB device.
This CD can be used to boot a USB HDD in VirtualBox.
After creating a new virtual machine, select the USB section of that device’s settings and add a new USB device which would be the USB HDD. Then start the machine, boot from the bootable CD created before, and then the boot process continues and the OS found on the HDD would load.
Notes
This guide contains a method for creating a Bootable CD that includes the Linux kernel and some other stuff including the USB driver needed to use a bootable USB device. This CD boots up and loads the USB driver then continues the boot process from any USB device.
This CD can be used to boot a USB HDD in VirtualBox.
After creating a new virtual machine, select the USB section of that device’s settings and add a new USB device which would be the USB HDD. Then start the machine, boot from the bootable CD created before, and then the boot process continues and the OS found on the HDD would load.
Notes
- The boot CD might not detect the USB HDD if the UUID tip in the guide’s comments was not applied.
- Saving the machine state doesn’t work.
Last edited by Lawand on 26. Jan 2011, 00:31, edited 1 time in total.
-
- Posts: 1
- Joined: 17. Mar 2010, 17:27
- Primary OS: MS Windows XP
- VBox Version: OSE Debian
- Guest OSses: USB boot
Re: Boot from bootable USB drive in VB?
Here is a much easier and better way to get a USB drive to boot in a Virtual Machine.
1. Go to http://www.plop.at/en/bootmanagerdl.html , and download the most recent .zip .
2. Extract it, and navigate to /intsall/plpbtin.iso .
3. Add the ISO in the VM, and install PLoP to the virtual hard disk (option 1)
4. Now, when you turn on the VM, it gives you an option to boot USB, Floppy, Hard Drive, and CD.
1. Go to http://www.plop.at/en/bootmanagerdl.html , and download the most recent .zip .
2. Extract it, and navigate to /intsall/plpbtin.iso .
3. Add the ISO in the VM, and install PLoP to the virtual hard disk (option 1)
4. Now, when you turn on the VM, it gives you an option to boot USB, Floppy, Hard Drive, and CD.
-
- Posts: 4
- Joined: 6. Jun 2010, 18:11
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: Windows 7, Windows XP, Ubuntu 10.04, Lubuntu 10.04, Meego
Re: Boot from bootable USB drive in VB?
Okay, since there are many options and *.isos... for step 3, what am I installing? From where? plpbtin.iso does not have any installation options within windows. Am I BOOTING from plpbtin.iso USING my windows machine (ie- not running/booting windows and trying to install from there?). Since I don't want to mess anything up, this needs to be more clear.vaniaspeedy wrote:Here is a much easier and better way to get a USB drive to boot in a Virtual Machine.
1. Go to http://www.plop.at/en/bootmanagerdl.html , and download the most recent .zip .
2. Extract it, and navigate to /intsall/plpbtin.iso .
3. Add the ISO in the VM, and install PLoP to the virtual hard disk (option 1)
4. Now, when you turn on the VM, it gives you an option to boot USB, Floppy, Hard Drive, and CD.
Thanks,
Drew
-
- Posts: 4
- Joined: 6. Jun 2010, 18:11
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: Windows 7, Windows XP, Ubuntu 10.04, Lubuntu 10.04, Meego
Re: Boot from bootable USB drive in VB?
Moments later I said screw it and tried on my own.
The answer is to, yes, boot from the .iso and use option 1 as said.
Easy peasy.
[UPDATE]
It just freezes after:
The answer is to, yes, boot from the .iso and use option 1 as said.
Easy peasy.
[UPDATE]
It just freezes after:
Code: Select all
Loading EHCI Driver
Searching on Hosts
Host 1