+ Post New Thread
Results 1 to 15 of 15
Windows Thread, VIrtual Box for students in Technical; Hi I want to install virtualbox for student to use. I have installed virtualbox created a VM. The problem I ...
  1. #1

    Join Date
    Feb 2008
    Posts
    345
    Thank Post
    52
    Thanked 4 Times in 3 Posts
    Rep Power
    14

    VIrtual Box for students

    Hi

    I want to install virtualbox for student to use. I have installed virtualbox created a VM. The problem I am having is that went the students log on to the machine and open up Virtual box no machines are there. How do I change the default location so that everything is stored in the c:\ and not the users profile. This would allow anyone to then open up the VM would start automatically without having to configure everything?

    Thanks

  2. #2
    buzzard's Avatar
    Join Date
    May 2006
    Location
    North West
    Posts
    312
    Thank Post
    106
    Thanked 28 Times in 24 Posts
    Rep Power
    25
    Create a Folder, dont use the root of C:, you dont want students with access there! If you create it in say Public Docs on each machine and set the relevant permissions, all doable through GPO and basic scripts..

  3. #3
    free780's Avatar
    Join Date
    Sep 2012
    Posts
    1,086
    Thank Post
    46
    Thanked 88 Times in 83 Posts
    Rep Power
    23
    I though the xml is in the .virtual box folder in the profile. You need to point the program to the central one.

  4. #4

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    6,508
    Thank Post
    626
    Thanked 1,170 Times in 898 Posts
    Blog Entries
    15
    Rep Power
    523
    I installed to C:\VM - doesn't matter where, students won't see it wherever it's installed.
    The VM is set to be a volatile disc (all changes lost on power up) and the tools installed so it maps a drive in the virtual machine to the local users my documents (N: drive here) so they save their stuff there.

    See thread Virtualbox + image for programming classes regarding the shortcut I use to lock Virtual Box itself down so nothing can be changed/broken by the users. I went into good detail there regarding the setup.

  5. #5

    Join Date
    Feb 2008
    Posts
    345
    Thank Post
    52
    Thanked 4 Times in 3 Posts
    Rep Power
    14
    Thanks

    Where is the central xml file to tell it where the VM is? Is it possible to deploy Virtualbox via msi and then deploy xml file to a central location?

  6. #6

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    6,508
    Thank Post
    626
    Thanked 1,170 Times in 898 Posts
    Blog Entries
    15
    Rep Power
    523
    Don't worry about any XML files you shouldn't need to touch them. If you see the batch file I pasted the first lines register the VM so it knows where it is (you can see the location I put the VMs there)

  7. #7

    Join Date
    Feb 2008
    Posts
    345
    Thank Post
    52
    Thanked 4 Times in 3 Posts
    Rep Power
    14
    Thanks synaesthesia

    When I have edited the script you provided nothing happend the script opened then closed again. Do you have any idea why this would be?

    Thanks

  8. #8

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    6,508
    Thank Post
    626
    Thanked 1,170 Times in 898 Posts
    Blog Entries
    15
    Rep Power
    523
    It's not a script, it's a batch file to launch virtual box in the first place (your shortcut would point to this batch file)
    Obviously you need to edit the paths to match your installation for each PC.

    Breakdown:
    *** Register the VM with VirtualBox ***
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" registervm "C:\VM\Programming\Programming.vbox"

    *** Set VirtualBox startup parameters, hide anything we don't want them to have etc ***
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata global GUI/SuppressMessages remindAboutAutoCapture,remindAboutMouseIntegration On,showRuntimeError.warning.HostAudioNotResponding ,remindAboutGoingSeamless,remindAboutInputCapture, remindAboutGoingFullscreen,remindAboutMouseIntegra tionOff,confirmGoingSeamless,confirmInputCapture,r emindAboutPausedVMInput,confirmVMReset,confirmGoin gFullscreen,remindAboutWrongColorDepth

    *** Restrict menus in Virtual Box ***
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata global GUI/RestrictedGlobalSettingsPages General,Input,Update,Language,Display,Network,Exte nsions,Proxy

    *** More menu restrictions ***
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\Programming.vbox" GUI/RestrictedRuntimeMenus Machine,View,Devices,Help,Debug

    *** More restrictions, stops them using usb features, removable media etc ***
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\Programming.vbox" GUI/RestrictedStatusBarIndicators HardDisks,OpticalDisks,FloppyDisks,Network,USB,Sha redFolders,Features,Mouse,Keyboard

    *** More restrictions - stops them from doing anything other than a safe shutdown***
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\Programming.vbox" GUI/RestrictedCloseActions SaveState,PowerOff,Restore

    *** Start the VM ***
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" startvm "C:\VM\Programming\Programming.vbox"


    All of that means you get a headless virtual box client - they never see Virtual Box itself, all they see is the VM in a window with no menus, options or anything. It's nearly infallible. Obviously the virtualbox installation folder must match, you must edit where your VM is stored.
    Last edited by synaesthesia; 25th September 2013 at 05:13 PM.

  9. 2 Thanks to synaesthesia:

    itgeek (25th September 2013), zag (30th January 2014)

  10. #9
    zag
    zag is offline
    zag's Avatar
    Join Date
    Mar 2007
    Posts
    4,002
    Thank Post
    983
    Thanked 476 Times in 398 Posts
    Blog Entries
    12
    Rep Power
    98
    Thanks @synaesthesia that seems to work great.

    One thing though, I get a too many parameters message coming up, is anyone else seeing this?

    Code:
    C:\>REM  Register the VM with VirtualBox 
    
    C:\>"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" registervm "C:\VM\Lubuntu\Lubuntu.vbox" 
    
    C:\>REM  Set VirtualBox startup parameters, hide anything we don't want them to have etc  
    
    C:\>"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata global GUI/SuppressMessages remindAboutAutoCapture,remindAboutMouseIntegration On,showRuntimeError.warning.HostAudioNotResponding ,remindAboutGoingSeamless,remindAboutInputCapture, remindAboutGoingFullscreen,remindAboutMouseIntegra tionOff,confirmGoingSeamless,confirmInputCapture,r emindAboutPausedVMInput,confirmVMReset,confirmGoin gFullscreen,remindAboutWrongColorDepth 
    
    Syntax error: Too many parameters
    
    C:\>REM  Restrict menus in Virtual Box  
    
    C:\>"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata global GUI/RestrictedGlobalSettingsPages General,Input,Update,Language,Display,Network,Exte nsions,Proxy 
    
    Syntax error: Too many parameters
    
    C:\>REM  More menu restrictions  
    
    C:\>"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Lubuntu\Lubuntu.vbox" GUI/RestrictedRuntimeMenus Machine,View,Devices,Help,Debug 
    
    C:\>REM  More restrictions, stops them using usb features, removable media etc  
    
    C:\>"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Lubuntu\Lubuntu.vbox" GUI/RestrictedStatusBarIndicators HardDisks,OpticalDisks,FloppyDisks,Network,USB,Sha redFolders,Features,Mouse,Keyboard 
    
    Syntax error: Too many parameters
    
    C:\>REM  More restrictions - stops them from doing anything other than a safe shutdown 
    
    C:\>"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Lubuntu\Lubuntu.vbox" GUI/RestrictedCloseActions SaveState,PowerOff,Restore 
    
    C:\>REM  Start the VM  
    
    C:\>"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" startvm "C:\VM\Lubuntu\Lubuntu.vbox" 
    Waiting for VM "C:\VM\Lubuntu\Lubuntu.vbox" to power on...
    VM "C:\VM\Lubuntu\Lubuntu.vbox" has been successfully started.
    EDIT: Nevermind, I found some sytax errors (spaces)

    Must have been the copy and paste from the forum
    Last edited by zag; 30th January 2014 at 11:57 AM.

  11. #10
    free780's Avatar
    Join Date
    Sep 2012
    Posts
    1,086
    Thank Post
    46
    Thanked 88 Times in 83 Posts
    Rep Power
    23
    I find it funny that vboxmanage doesn't work when elevated.

  12. #11

    Join Date
    Oct 2014
    Posts
    8
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Hello,

    I have used this batch file to lock down the use of a VM that we use as a programming environment and it is working great!

    However, we use Windows 7 and the students can right click on the task, in the task bar, then with the options open up the VrtualBox Manger, additionally they can edit the settings of the VM and add the C Drive as s shared folder giving them read access the the local C Drive.

    Does anyone have an ideas how we can lock this down.

    Thanks,
    Paul

  13. #12

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    6,508
    Thank Post
    626
    Thanked 1,170 Times in 898 Posts
    Blog Entries
    15
    Rep Power
    523
    You should disable context menus in GPO - that's a windows security issue rather than VB.

    User policies, admin templaces, start menu/taskbar I would imagine.

  14. Thanks to synaesthesia from:

    PEbrey (13th October 2014)

  15. #13

    Join Date
    Oct 2014
    Posts
    8
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Its not possible to disable certain options for certain programs?

  16. #14

    synaesthesia's Avatar
    Join Date
    Jan 2009
    Location
    Northamptonshire
    Posts
    6,508
    Thank Post
    626
    Thanked 1,170 Times in 898 Posts
    Blog Entries
    15
    Rep Power
    523
    Not as far as I know; there are next to no reasons why anyone would need to right click something on the task bar.

  17. #15

    Join Date
    Oct 2014
    Posts
    8
    Thank Post
    2
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Yeah.

    We care going t disable this for all Students. Thank you



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 1
    Last Post: 13th June 2007, 06:09 PM
  2. Group Policy guidelines needed for students in years 3 - 6
    By richard in forum Wireless Networks
    Replies: 6
    Last Post: 8th March 2007, 02:36 PM
  3. MS Virtual Server for free?
    By Norphy in forum Windows
    Replies: 20
    Last Post: 4th April 2006, 02:54 PM
  4. Email for students
    By Norphy in forum How do you do....it?
    Replies: 10
    Last Post: 10th February 2006, 10:53 AM
  5. Easy Folder and File size viewer for students
    By altecsole in forum Windows
    Replies: 10
    Last Post: 29th November 2005, 11:03 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •