+ Post New Thread
Results 1 to 5 of 5
Thin Client and Virtual Machines Thread, Virtual box drive mapping in Technical; We are planning to deploy virtual box to our clients for programming lessons, all programming will take place on virtual ...
  1. #1
    bondbill2k2's Avatar
    Join Date
    Jan 2011
    Location
    West Midlands
    Posts
    1,013
    Thank Post
    80
    Thanked 66 Times in 51 Posts
    Blog Entries
    2
    Rep Power
    42

    Virtual box drive mapping

    We are planning to deploy virtual box to our clients for programming lessons, all programming will take place on virtual box clients running ubuntu without a network connection. I would like to map up students H: drives from the host to the clients automatically on logon.

    Running
    Code:
    sudo mount -t vboxsf <VBShareName> <MountLocation>
    works great for that session.

    In an attempt to perform this automatically I've added vboxvfs and vboxadd into /etc/modules and added
    Code:
    <VBShareName> <MountLocation> vboxsf defaults 0 0
    into /etc/fstab
    This seemed to work after a restart but since a a shut down + boot the drive no longer auto-maps. Does anyone have any suggestions on how to achieve this auto mapping?

  2. #2
    bondbill2k2's Avatar
    Join Date
    Jan 2011
    Location
    West Midlands
    Posts
    1,013
    Thank Post
    80
    Thanked 66 Times in 51 Posts
    Blog Entries
    2
    Rep Power
    42
    I can confirm the modules are loading correctly and since updating ubuntu I now have an error notification on boot

    ubuerr.jpg

  3. #3

    Join Date
    Mar 2010
    Location
    Leeds
    Posts
    418
    Thank Post
    77
    Thanked 46 Times in 41 Posts
    Rep Power
    17
    Just found this online, not sure if it's of any help

    in VB Settings / Shared Folders / Edit Share:
    Uncheck the "Auto-mount" checkbox
    Check the "Make Permanent" checkbox

    as long as it's looking for the same mapped letter each time it should find it ok.

  4. #4
    bondbill2k2's Avatar
    Join Date
    Jan 2011
    Location
    West Midlands
    Posts
    1,013
    Thank Post
    80
    Thanked 66 Times in 51 Posts
    Blog Entries
    2
    Rep Power
    42
    Right I made another VM and went over the exact same steps as before and it works, I've tested it with 4 drives at once all mounting fine. As with any solution another problem arises, the folder/mounting point being used in the users home directory has the student user as the owner with full rwx permissions. Soon as I map the drive root becomes the owner and only read permissions are granted to everyone else but I need them to have write permissions too. I've added the uid for the student to take ownership as part of the logon process now but they still only get read permissions, chmod doesn't affect the mapped folder either.

    Does anyone have any ideas?

  5. #5
    bondbill2k2's Avatar
    Join Date
    Jan 2011
    Location
    West Midlands
    Posts
    1,013
    Thank Post
    80
    Thanked 66 Times in 51 Posts
    Blog Entries
    2
    Rep Power
    42
    Ended up adding the to rc.local
    Code:
    sudo mount -t vboxsf sharename /home/username/mountpoint -o rw,exec,uid=1000,gid=1000,dev

    Right this appears to work with most accounts however a couple of staff are experiencing a strange issue with permissions. The mapped up folder for saving back to is present on the VM and correctly mapped to the users H but they dont have write permissions, only readhowever if I change their H: drive to another folder e.g. staff$\staffname2, get them to login and run the VM again......it works!

    Nothing else is different as all permissions are set the exact same on this new H folder, inheritance disabled, user has full control, domain admins full control.

    Soon as I change their H: back to staff$\staffname I get the same issue from inside the VM... no write permission.


    For reference we also launch VMbox locked down using the following
    Code:
    vbox.bat
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" registervm "C:\VM\Programming\python.vbox"
    
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\python.vbox" 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\python.vbox" GUI/RestrictedRuntimeMenus Machine,View,Devices,Help,Debug
    
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\python.vbox" GUI/RestrictedStatusBarIndicators HardDisks,OpticalDisks,FloppyDisks,Network,USB,SharedFolders,Features,Mouse,Keyboard
    
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" setextradata "C:\VM\Programming\python.vbox" GUI/RestrictedCloseActions SaveState,PowerOff,Restore
    
    "C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" startvm "C:\VM\Programming\python.vbox"
    Last edited by bondbill2k2; 18th March 2014 at 10:19 AM.

SHARE:
+ Post New Thread

Similar Threads

  1. Citrix Client Drive Mapping
    By Geoff in forum Thin Client and Virtual Machines
    Replies: 15
    Last Post: 27th May 2009, 02:25 PM
  2. Virtual Box vs. VMWare WKS?
    By PiqueABoo in forum Thin Client and Virtual Machines
    Replies: 5
    Last Post: 19th May 2008, 05:38 PM
  3. LTSP, Terminal Services and Virtual Box
    By wesleyw in forum *nix
    Replies: 7
    Last Post: 22nd January 2008, 03:14 PM
  4. Drive mapping renames not working on new machines
    By mullet_man in forum Scripts
    Replies: 6
    Last Post: 9th August 2007, 11:48 AM
  5. Card Readers and Drive Mapping
    By mmoseley in forum Network and Classroom Management
    Replies: 12
    Last Post: 7th August 2007, 11:33 PM

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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