LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2009, 01:30 PM   #1
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Rep: Reputation: 15
Angry Installing virtual machine on a usb stick to boot from because school computers suck


Hello everyone,

All of my school computers (that we always have to use) have vista installed when they could barley support XP. And on top of that they have tons of flaws that you can fix, but then every time you log out the settings are not saved, so you have to fix it every time you log in. Also some programs just constantly crash.

Its horribly annoying, especially when your stuck in a lab for 4 hours and compiling crashes the computer every time.

Anyway I'm pretty good with linux but most of the software i need is on windows (office, multisim, xilinx etc), is there anyway for me to use a virtual machine on a bootable usb drive to start xp on these computers and use my programs ?

I've actually installed windows on a bootable usb drive before, it only worked on the machine in which i installed it.

So this is my plan
usb drive -> boot linux -> load vm software (virtualbox) -> load virtualdrive with windows

Does anyone know if this would work ?
 
Old 08-17-2009, 02:12 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello,

yes, this will work. But the computer must have enough of RAM (better more than 512MB).
Look at slax: http://www.slax.org/get_slax.php
Its a live-CD (with also usb-support) and as far as I know they have a module for vbox of sun.
You can install win xp on vbox and copy the virtual machine on a partition on the usb-drive.
Then you should be able to start vbox after booting with slax and opening the xp-machine.

Markus
 
Old 08-17-2009, 02:23 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
but then every time you log out the settings are not saved, so you have to fix it every time you log in
This is set by the IT people, and has a reason
Quote:
Its horribly annoying, especially when your stuck in a lab for 4 hours and compiling crashes the computer every time.
Talk to IT for a solution.
 
Old 08-17-2009, 06:32 PM   #4
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
This is set by the IT people, and has a reason

Talk to IT for a solution.
Ya right, we have told them a million times, they dont care. Some of the problems are from the computers not being good enough to run vista, but most of the problems is bad IT.

Its simple things like you cant copy and paste in word because macros are disabled due to security things, also when you make programs in visual studio the working directory of cmd is not there so it cant spawn and show you your program. Yes these can both be fixed, but like i said you have to do it every time you log in/out.

Quote:
Hello,

yes, this will work. But the computer must have enough of RAM (better more than 512MB).
Look at slax: http://www.slax.org/get_slax.php
Its a live-CD (with also usb-support) and as far as I know they have a module for vbox of sun.
You can install win xp on vbox and copy the virtual machine on a partition on the usb-drive.
Then you should be able to start vbox after booting with slax and opening the xp-machine.

Markus
Thanks ill look into this, i've used slax before. I was hoping for something really simple and small with no gui then i could just have it run something in my startup scripts like "vbox xp.vdi" or something like that. If i have a whole OS running a gui then start another through virtual machine, all running on a usb it might be too slow ?

anyway thanks for the responses !
 
Old 08-18-2009, 12:21 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi again,

I often use slax in windows-networks and I know that slax, even with the gui, often starts much faster than windows on the samce old PC. But since vista needs 2GB RAM or more there will be enough machines which are much to slow for vista but very good for slax, even with a virtual machine. My experience is that a virtual windows-xp PC with 256MB of RAM (only for the virtual machine) is good for normal working.

Markus
 
Old 08-18-2009, 11:05 AM   #6
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by markush View Post
Hi again,

I often use slax in windows-networks and I know that slax, even with the gui, often starts much faster than windows on the samce old PC. But since vista needs 2GB RAM or more there will be enough machines which are much to slow for vista but very good for slax, even with a virtual machine. My experience is that a virtual windows-xp PC with 256MB of RAM (only for the virtual machine) is good for normal working.

Markus
Ok thanks ! I'll get on it and let yall know how it goes. I wish i could just use linux, but multisim and xilinx wont work with linux.
 
Old 08-21-2009, 10:16 AM   #7
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Ok i got slax installed on a 4 gig usb. And i got my xp hard drive down to 2.7 gig so they both fit ok. The only thing is i cant start the virtual machine (or any) when i type "VBoxManage startvm "xp"" i get
Code:
root@slax:~# VBoxManage startvm XP
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (2.6.27.27) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/init.d/vboxdrv setup

         You will not be able to start VMs until this problem is fixed.
VirtualBox Command Line Management Interface Version 2.1.4_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Waiting for the remote session to open...
[!] Full error info present: true , basic error info present: true
[!] Result Code = NS_ERROR_FAILURE (0x80004005) - Operation failed
[!] Text        = Virtual machine 'XP' has terminated unexpectedly during startup
[!] Component   = Machine, Interface: IMachine, {ea6fb7ea-1993-4642-b113-f29eb39e0df0}
[!] Callee      = <NULL>, {00000000-0000-0000-0000-000000000000}
so i go type /etc/init.d/rc.vboxdrv setup, it looks like everything went ok
Code:
root@slax:~# /etc/init.d/rc.vb
rc.vboxdrv     rc.vboxkermod
root@slax:~# /etc/init.d/rc.vboxdrv setup
groupadd: group vboxusers exists
Stopping VirtualBox kernel module ...done.
Removing old VirtualBox netflt kernel module ...done.
Removing old VirtualBox kernel module ...done.
Recompiling VirtualBox kernel module ...done.
Starting VirtualBox kernel module ...done.
but then i just get the same error w/o the kernel message
Code:
root@slax:~# VBoxManage startvm XP
VirtualBox Command Line Management Interface Version 2.1.4_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Waiting for the remote session to open...
[!] Full error info present: true , basic error info present: true
[!] Result Code = NS_ERROR_FAILURE (0x80004005) - Operation failed
[!] Text        = Virtual machine 'XP' has terminated unexpectedly during startup
[!] Component   = Machine, Interface: IMachine, {ea6fb7ea-1993-4642-b113-f29eb39e0df0}
[!] Callee      = <NULL>, {00000000-0000-0000-0000-000000000000}
Sorry i didnt reply sooner, i had inet problems. Anyone know whats going on ? I'm kinda confused about the slax "modules" I think i might be missing one or something i installed the vbox ose one.

EDIT: I installed "Virtualbox 3.0.4 (s6.1.2)" module and now it works fine, even the gui. I did have to run the "/etc/init.d/rc.vboxdrv setup" again.
It all works ! its ok in the speed category, well its better than ok its fast, but i am running it on a pretty nice machine (mine). I'll try and speed it up.
I guess this is about as close as it gets to doing what i want to do, if it works at the school computers i'll have to get a bigger usb drive because some of the programs i need are like 4 gig by themselves.
I wonder if there is any way to run just a X gui like xcfe or something to use even less system resources.

Oh well thanks for the help !

Last edited by zonemikel; 08-21-2009 at 10:32 AM.
 
Old 08-21-2009, 11:50 AM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello zonemikel,

nice to read that it worked.

There is fluxbox available as a slax-module. Fluxbox uses much less of your system recources than kde does.

Markus
 
Old 08-21-2009, 11:30 PM   #9
zonemikel
Member
 
Registered: Apr 2006
Posts: 94

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by markush View Post
Hello zonemikel,

nice to read that it worked.

There is fluxbox available as a slax-module. Fluxbox uses much less of your system recources than kde does.

Markus
Ya i ended up using xfce, i couldnt get fluxbox to work it kept saying something about how it could not find a window or something.

I actually got it to load slax into the memory and use xfce, then i can load my virtual machine. Windows is lightning fast ! I just edited the /boot/slax.cfg and copied the line for the "copy to ram" option, then i added "startxfce4" to the "autoexec" option. I also added the changes option so it saves changes in the "load to ram" part.

I just ordered a 16gig usb for about $15. Looks like it will work out pretty well.

I might have some trouble connecting to school printers but other than that it looks like it will work out just as i wanted it to.

thanks for all the help
 
Old 08-22-2009, 12:00 AM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by zonemikel View Post
I might have some trouble connecting to school printers but other than that it looks like it will work out just as i wanted it to.
No, I don't think so. If youre school-network runs a DHCP-server and your virtual winxp machine uses connection-sharing it will get an ip-configuration in the network and becomes a normal Windowsclient in the network (in the scope of TCP/IP, but not a member of the domain in the microsoft-sense). If there are networkprinters you should be able to connect to them, maybe you'll have to authenticate with your logindata of the windows-network to connect to the printer.

Markus
 
  


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
LXer: Installing "Sugar on a stick" (Strawberry Release) On A USB Stick LXer Syndicated Linux News 0 08-04-2009 03:50 PM
Can Virtual Machine do USB? Blash *BSD 5 11-16-2008 06:13 AM
Installing Debian 4.r4 onto USB Stick FROM boot DVD charliebrown_au Linux - Newbie 2 09-17-2008 04:14 AM
Boot from USB stick if no booting USB in Bios 1kyle SUSE / openSUSE 1 03-26-2007 12:24 AM
how does school lock out computers? Scorcher2005 General 9 05-06-2002 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:40 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