LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2009, 08:38 PM   #1
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134

Rep: Reputation: 16
Linux on a usb to boot virtually


Scenario:
You've set up a linux OS to boot from a portable flash drive with persistent changes.
Would it be possible to boot that drive into virtual box on the fly without converting it first?
 
Old 12-27-2009, 09:35 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Yes. There are two ways to do that. One is to copy the entire raw USB drive into a file, and start the virtual machine with that file as the drive to boot from. Changes would have to be copied back to the USB drive if you want them there. The other (easier) way is to attach the USB drive to the virtual machine, either as a drive, or as a USB device.

I have done this with SD cards (because good SD cards that are faster than USB memory sticks are available).
 
Old 12-28-2009, 02:05 PM   #3
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Skaperen View Post
The other (easier) way is to attach the USB drive to the virtual machine, either as a drive, or as a USB device.
How do I attach the actual usb to the vm? I went through the settings and the only way I could see for me to attach is by using a disk image... vdi's, vhd's vmdk's etc...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux on usb, dual boot, 2 sys on usb - is there a way? vlnikolic Linux - Distributions 3 11-27-2008 02:24 AM
LXer: Virtually Speaking: Linux Vendors Not Zen Over Xen LXer Syndicated Linux News 0 09-16-2006 01:54 AM
Booting linux from USB when BIOS cannot boot from USB zani Linux - Laptop and Netbook 0 08-08-2006 01:47 AM
LXer: Microsoft to 'host' Linux virtually LXer Syndicated Linux News 0 04-03-2006 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration