LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization
User Name
Password
Linux - Virtualization This forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-20-2012, 03:07 PM   #1
Henry Drexler
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Rep: Reputation: Disabled
Is this Possible - in windows virtualize linux on usb stick etc..


I think I am not using the correct wording in my searches.

Here is the idea.

I have someone sitting at a computer using windows, I plug in the usb and linux boots up in the background and presents a folder to the windows user. It has two folders 'in' and 'out'.

The windows user puts a file in the 'in' folder and linux does something to it and puts the output in the 'out' folder.


When the windows user ejects the usb it shuts down linux and is removed.




Details: I know how to do the in and out folders and I can use incron to watch a folder then do something when a file is dropped in.

The part that I don't know if it is possible is to get linux to boot up silently and present a folder. Does the user have to have virtualization software installed or can this be done without it?
 
Old 01-20-2012, 05:20 PM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Arch
Posts: 1,645
Blog Entries: 22

Rep: Reputation: 216Reputation: 216Reputation: 216
I would'nt even know how...that would mean that two OS'es (calling windows an OS is a stretch, I know...) would run concurrently and parrallel on the same box...I doubt if that's even possible...
 
Old 01-21-2012, 06:57 AM   #3
taylorkh
Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: Ubuntu 10.04, playing with CentOS 5.6 as a possble replacement.
Posts: 986

Rep: Reputation: 82
In THEORY you could install a virtual Linux machine image on the USB drive and have the virtualization software installed in Windows. I have used VMWare Player on both Linux and Windows to run various operating systems. The limitations I see include:

The space needed for a virtual machine of a full featured Linux install is considerable. 4 - 8 GB it typical.
USB drives are slow
The resulting boot time for the VM will also be slow
The Windows programming interface may be limiting. You could certainly configure autorun to start the VM. I am not sure you could catch the eject signal to shut down the VM.

I just did a little test. I copied a Ubuntu 11.10 VM onto a Kingston 8 GB flash drive. Boot time including auto-logon was about 50 seconds. Not too bad. Shutdown time however was 1 minute 40 seconds. Writing being slower than reading with the flash drive. This was tested on an i870 quad core PC with 8 GB of RAM.

If you tell us more about what you are trying to accomplish perhaps some more ideas will be forthcoming.

Ken
 
Old 01-21-2012, 07:07 AM   #4
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
I made several of these using DSL and portable-qemu, and even found a way to mount my usb/hdd from within the virtual DSL
I'll look around and see if I can fix one up and upload it somewhere....

EDIT: OK, I found all the stuff, here's screenshot of it playing off usb in XP lappy
I gotta edit some of the configs, etc and re-read the readme stuff I wrote.
You can use many other distros besides DSL too
I also gotta find the thread on here I started about how to mount the usb or hdd from within the virt world, etc

OH, you dont need anything installed as it's all in the PQemu folder and it all runs on linux or windows
read here
http://www.linuxquestions.org/questi...ml#post3969567
Attached Images
File Type: png dslportable.PNG (97.7 KB, 5 views)

Last edited by linus72; 01-21-2012 at 07:40 AM.
 
Old 01-24-2012, 07:42 AM   #5
Henry Drexler
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linus72 View Post
I made several of these using DSL and portable-qemu, and even found a way to mount my usb/hdd from within the virtual DSL
I'll look around and see if I can fix one up and upload it somewhere....

EDIT: OK, I found all the stuff, here's screenshot of it playing off usb in XP lappy
I gotta edit some of the configs, etc and re-read the readme stuff I wrote.
You can use many other distros besides DSL too
I also gotta find the thread on here I started about how to mount the usb or hdd from within the virt world, etc

OH, you dont need anything installed as it's all in the PQemu folder and it all runs on linux or windows
read here
http://www.linuxquestions.org/questi...ml#post3969567
Thank you, I will look into that.
 
Old 01-24-2012, 07:46 AM   #6
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,057

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
If you wish I can upload it all for you somewhere?
still haven't found the thread on LQ where I could mount drives within the qemu vm but I'll look some more...
 
Old 01-24-2012, 03:45 PM   #7
jefro
Guru
 
Registered: Mar 2008
Posts: 5,951

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
That info was on the qemu for windows site somewhere. Like hda=//./folder or such

http://www.h7.dion.ne.jp/~qemu-win/H...yCdrom-en.html
 
Old 01-30-2012, 03:56 PM   #8
Henry Drexler
LQ Newbie
 
Registered: Nov 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linus72 View Post
If you wish I can upload it all for you somewhere?
still haven't found the thread on LQ where I could mount drives within the qemu vm but I'll look some more...
Thanks for the offer, but I will continue to try to build it and work it out - I do appreciate the excellent information provided. Thank you.
 
Old 01-31-2012, 05:05 AM   #9
mecelec415
Member
 
Registered: Jan 2008
Location: Noble Park ,Victoria, Australia
Distribution: Mageia
Posts: 183
Blog Entries: 2

Rep: Reputation: 23
Quote:
I have someone sitting at a computer using windows, I plug in the usb and linux boots up in the background and presents a folder to the windows user. It has two folders 'in' and 'out'.

The windows user puts a file in the 'in' folder and linux does something to it and puts the output in the 'out' folder.


When the windows user ejects the usb it shuts down linux and is removed.
Can I ask what you are trying to Do?
Just interested thats all thanks for your time.
I ve never worked out the purpose of

http://lifehacker.com/5195999/portab...inside-windows

eirther to be honest

---------- Post added 31-01-12 at 10:05 PM ----------

Quote:
I have someone sitting at a computer using windows, I plug in the usb and linux boots up in the background and presents a folder to the windows user. It has two folders 'in' and 'out'.

The windows user puts a file in the 'in' folder and linux does something to it and puts the output in the 'out' folder.


When the windows user ejects the usb it shuts down linux and is removed.
Can I ask what you are trying to Do?
Just interested thats all thanks for your time.
I ve never worked out the purpose of

http://lifehacker.com/5195999/portab...inside-windows

eirther to be honest
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format Linux USB stick in Windows. Carsto Linux - Hardware 2 11-24-2009 01:43 AM
LXer: Virtualize Windows on Linux? Microsoft Says No Way! LXer Syndicated Linux News 0 08-10-2007 10:01 AM
Linux distro to work with Windows Apps on 2 GB USB Stick Spaceduster Linux - Distributions 8 02-07-2007 01:44 AM
1GB USB Stick Problems (Linux and Windows!) Ian_Hawdon Linux - Hardware 4 06-11-2005 10:58 AM
USB memory stick password protected under linux and windows? bleargh Linux - Software 3 10-25-2004 09:16 AM


All times are GMT -5. The time now is 02:07 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration