Is this Possible - in windows virtualize linux on usb stick etc..
Linux - VirtualizationThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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?
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...
Distribution: Ubuntu 10.04, playing with CentOS 5.6 as a possble replacement.
Posts: 986
Rep:
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.
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
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
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...
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.
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
---------- 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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.