mwbutler Posted May 18, 2012 Posted May 18, 2012 Hi all I've been asked to look into creating a software package for Virtualbox + an image of XP (our new PCs have 2gb ram - not enough for a virtualbox + W7) for programming classes that are going to happen sometime next school year. This also needs to be ideally free but if you know of some relatively cheap solutions my boss may be persuaded to go down that route. I had a go at getting a package made with Virtualbox + an XP image and it didn’t quite work as intended – the XP image doesn’t show up for any users in Virtualbox and they cannot access the C Drive to load up the images. However this is possibly a good thing as I don’t see how we would go about resetting the Virtual image without reinstalling the software package after each use (it does have a snapshot feature but if these got deleted then we’re back to reinstalling the software again). What I think it possibly a good idea is – I can make a simple Virtualbox package which doesn’t contain any Virtual images and install that on any PC we want it on. Then in a student accessible drive I can put a previously exported Virtual image of XP in a folder then all anyone has to do is double click it and import it into Virtualbox. This takes 2 clicks and about 3 minutes to import it on my PC. Or I can try again and get Virtualbox to have an image pre-loaded when any user runs the software. What do you guys think? Have you looked into doing this yet and if so what have you done? Thanks for any suggestions Matt
tumbleweed Posted May 18, 2012 Posted May 18, 2012 Chapter*8.*VBoxManage - vboxmanage is the CLI to do all sorts of clever stuff, registervm might be what you need to look at. 1
Steve21 Posted May 18, 2012 Posted May 18, 2012 Or I can try again and get Virtualbox to have an image pre-loaded when any user runs the software. What do you guys think? Have you looked into doing this yet and if so what have you done? Thanks for any suggestions Matt Been looking into this recently too. The best way I've found to load it is using: "C:\Program Files\Oracle\VirtualBox\VBoxSDL.exe" --comment "TestCoding" --startvm "24da79dc-1abd-4727-b5d7-5e2f360ea82d" VBOXSDL runs the machine without any config/admin tools, so no way to edit modify the image/setup etc. Comment shows at the top of the screen so you can make it pretty and display stuff And VM guid tells it which image to load on running, so no picking what they want! pewpew Still stuck on trying to make shared areas for saving to, that aren't accessible from normal accounts Steve
bigfoot780 Posted May 18, 2012 Posted May 18, 2012 I've made a XP VM in virtualbox and enbale the rdp server in virtualbox. The students can then rdp in it 127.0.0.1 . Take off file permissions for .rdp files. Slight delay with usb sticks.
Steve21 Posted May 18, 2012 Posted May 18, 2012 I've made a XP VM in virtualbox and enbale the rdp server in virtualbox. The students can then rdp in it 127.0.0.1 . Take off file permissions for .rdp files. Slight delay with usb sticks. What stops them copying games etc into the VM and running it, if you're doing it off USB? Steve
jamesfed Posted May 18, 2012 Posted May 18, 2012 Would be a bit more of a project but System Centre Config Manager can give you the ablity to (through a web portal) allow students access VMs hosted on a server - can do snapshotting ect with no issues.
bigfoot780 Posted May 18, 2012 Posted May 18, 2012 USB stick would just be used to get work off the xp machine. But good point. I only made it in anticipaton of the new curriculum focused on programming. Though the vm would be on the C Drive which is protected by deep freeze.
jtotheb Posted May 21, 2012 Posted May 21, 2012 (edited) Been looking into this recently too. The best way I've found to load it is using: "C:\Program Files\Oracle\VirtualBox\VBoxSDL.exe" --comment "TestCoding" --startvm "24da79dc-1abd-4727-b5d7-5e2f360ea82d" That's very similar to how we've done it except we have the VM snapshotted so that it's boxfresh on every use. We map a shared folder into the VM for file transfer, but only programming students have access to it. Edited May 21, 2012 by jtotheb
kennysarmy Posted July 15, 2013 Posted July 15, 2013 Hi all, I've made good progress on this today. I now have a test windows 7 VM which is on Immutable disks so resets after each use. The VM is opened without the user having access to the menu tools. Currently the VM image is held on the C:\ drive of the host. Is that the best place for it? Once I have my image ready is it just a case of installing VirtualBox to the hosts and copying to the same location on each the image? My next question is once the pupils boot up the VM and have used the software on it - how do I then give them access to their own H:\ drives so they can save work? Or does everyone just use a common area which they can then dip in to from the host PC?
synaesthesia Posted July 15, 2013 Posted July 15, 2013 (edited) Nice easy one, just finished doing ours. Look up the shared folders option - we have ours set to the home drive. Networking is disabled apart from "host only network" for that to work. And yeah, keep it on the C: drive unless you have another drive specifically for the VM. If you want to push out Virtual Box by MSI (GPO, SCCM etc) then you'll need to install the certificate so the drivers will install without intervention - if you need that, give me a poke. I've just finished packaging the VM itself too (we used a stripped down version of Windows 7 - the image is 10GB including Netbeans, Notepad++, all windows updates, .net framework 4.5, Python etc) Edited July 15, 2013 by synaesthesia
kennysarmy Posted July 15, 2013 Posted July 15, 2013 Nice easy one, just finished doing ours. Look up the shared folders option - we have ours set to the home drive. Networking is disabled apart from "host only network" for that to work. And yeah, keep it on the C: drive unless you have another drive specifically for the VM. If you want to push out Virtual Box by MSI (GPO, SCCM etc) then you'll need to install the certificate so the drivers will install without intervention - if you need that, give me a poke. I've just finished packaging the VM itself too (we used a stripped down version of Windows 7 - the image is 10GB including Netbeans, Notepad++, all windows updates, .net framework 4.5, Python etc) LOL - I missed the auto-mount option - dur
Steve21 Posted July 15, 2013 Posted July 15, 2013 You shouldn't even need host only enabled. Ours have no network card, and no connection at all. If you use the shared folders they directly mount without need for connection, think of it as a virtual disk. Steve
kennysarmy Posted August 8, 2013 Posted August 8, 2013 You shouldn't even need host only enabled. Ours have no network card, and no connection at all. If you use the shared folders they directly mount without need for connection, think of it as a virtual disk. Steve Hi Steve, With the network card offline how did you activate windows? I've just installed another test PC with virtualbox and installed windows 7 - it auto found our local KMS box and activated itself. My worry is if I disable the network card what happens after 180 days when it wants to reconnect to KMS for another 180 days? I am thinking I should just go with a MAK key. But not sure now how to override the KMS ....
Steve21 Posted August 8, 2013 Posted August 8, 2013 (edited) We don't use Windows on it, as you "officially" have to pay for the license to run it in a virtual machine Using Ubuntu Edit - but on a side note, without using a network connection it's got no way to update it's time to realise it's 180 days anyway. As it's new connection everyday remember Immutable drive and all Steve Edited August 8, 2013 by Steve21
mshill Posted August 20, 2013 Posted August 20, 2013 Hi I have the image setup with an immutable disk and connect to the user drive but I cannot get the below shortcut to wrk! "C:\Program Files\Oracle\VirtualBox\VBoxSDL.exe" --comment "TestCoding" --startvm "24da79dc-1abd-4727-b5d7-5e2f360ea82d" I have changed the uuid to the relevant one but a cmd box just appears and then shuts down. Any ideas? Regards
Steve21 Posted August 20, 2013 Posted August 20, 2013 Can you just try it like this: "C:\Program Files\Oracle\VirtualBox\vboxsdl.exe" -vm "My Python" Friendly name ofc If it's still not loading it's more likely something else wrong. Steve
mshill Posted August 20, 2013 Posted August 20, 2013 Yea that just pops up the vboxsdl cmd box and then closes as well. Does the vm image have to be stored in the virtualbox folder?
Steve21 Posted August 20, 2013 Posted August 20, 2013 Nope, you can run it from a shared drive if you want. You just need to use the whole filepath if you have it somewhere different. (or change the default save/image location so you don't need to bother with faff ) Steve
mshill Posted August 20, 2013 Posted August 20, 2013 Seems It gives the following error when it stays on the screen SDL Error: 'DirectInputDevice::SetDataFormat: Invalid parameters'
Popular Post synaesthesia Posted August 20, 2013 Popular Post Posted August 20, 2013 I've gone down a different route which is pretty bulletproof (has to be, mandatory profiles). Shortcut to run it runs a batch file containing the following: "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" registervm "C:\VM\Programming\Programming.vbox" "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata global GUI/SuppressMessages remindAboutAutoCapture,remindAboutMouseIntegrationOn,showRuntimeError.warning.HostAudioNotResponding,remindAboutGoingSeamless,remindAboutInputCapture,remindAboutGoingFullscreen,remindAboutMouseIntegrationOff,confirmGoingSeamless,confirmInputCapture,remindAboutPausedVMInput,confirmVMReset,confirmGoingFullscreen,remindAboutWrongColorDepth "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata global GUI/RestrictedGlobalSettingsPages General,Input,Update,Language,Display,Network,Extensions,Proxy "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\Programming.vbox" GUI/RestrictedRuntimeMenus Machine,View,Devices,Help,Debug "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\Programming.vbox" GUI/RestrictedStatusBarIndicators HardDisks,OpticalDisks,FloppyDisks,Network,USB,SharedFolders,Features,Mouse,Keyboard "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\Programming.vbox" GUI/RestrictedCloseActions SaveState,PowerOff,Restore "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" startvm "C:\VM\Programming\Programming.vbox" First bit registers the VM with the installation of Virtual Box. All lines up until "startvm" limit what can and can't be seen by the end user (ie nothing). Last bit, obviously, starts it. 6
mshill Posted August 20, 2013 Posted August 20, 2013 Hi That worked a treat I can nor run the VM from the shortcut. How are other people storing the VM? are you putting it locally on each PC or are you putting it into a shared area? Regards
synaesthesia Posted August 20, 2013 Posted August 20, 2013 Mine is copied to each PC. It's only 7gb (windows 7 x86 "lite") with all the relevant stuff installed.
mshill Posted August 21, 2013 Posted August 21, 2013 Only problem now is we are on a cc4 network and we have access to CMD blocked for all pupils so pupils cannot run the batchfile to access the software.
mshill Posted August 22, 2013 Posted August 22, 2013 How did you get past the batch file being blocked synaesthesia? I have added the file to be allowed under software restrictions but it has not made a difference
synaesthesia Posted August 22, 2013 Posted August 22, 2013 We're on a vanilla network therefore we can control such permissions easier. The batch file however is no different in CC4's eyes to any other executable file - if you can't get software restrictions to work with it, then try copying it all into a folder within Program Files. That's usually sufficient to make CC4 sit up and beg.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now