LinuxQuestions.org
Visit Jeremy's Blog.
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, 09: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, 10:35 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,830
Blog Entries: 21

Rep: Reputation: 119Reputation: 119
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, 03: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:24 AM
LXer: Virtually Speaking: Linux Vendors Not Zen Over Xen LXer Syndicated Linux News 0 09-16-2006 02:54 AM
Booting linux from USB when BIOS cannot boot from USB zani Linux - Laptop and Netbook 0 08-08-2006 02:47 AM
LXer: Microsoft to 'host' Linux virtually LXer Syndicated Linux News 0 04-03-2006 06:03 PM

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

All times are GMT -5. The time now is 02:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration