Utility for Android to mount VirtualBox shared folders
To access a shared folder, a guest OS must have:
- The
vboxsf
andvboxguest
drivers from guest additions. - Utility (mount.vboxsf) to mount shared folders. Sources are available on the http://www.virtualbox.org.
The
src
directory of this project contains a port of the mount.vboxsf utility for Android. - Some glue to mount shared folders on boot. For marshmallow this can be done by patching the init.rc script. The
vboxsf.sh
script mounts shared folders at the/mnt/media_rw/vboxsf
directory on a guest.
- Download android_x86 sources from http://www.android-x86.org.
- Download VBoxGuestAdditions.iso from https://download.virtualbox.org/virtualbox/. If VirtualBox is installed the iso image is located in the /usr/share/virtualbox directory.
- Install 7z package.
- Copy guest additions sources to the android-x86 tree.
$ ./scripts/guest-copy VBoxGuestAdditions.iso android-x86
- For marshmallow apply patch from
patches/marshmallow
(not needed for nougat)
$ patch -p1 < path/to/this/project/patches/marshmallow/mount-vbox-shared-folders.patch
- Apply mouse integration patch (for both marshmallow and nougat)
$ patch -p1 < path/to/this/project/patches/mouse-integration.patch
- Build
android_x86.iso
image (see http://www.android_x86.org for instructions). - Done!
- Extract guest drivers sources from VBoxGuestAdditions.iso. Sources will be placed in the
work
directory.
$ ./scripts/guest-extract VBoxGuestAdditions.iso
- Create iso image
$ ./scripts/guest-build android-x86
- Shared folder name must be
vboxsf
. Edit filevboxsf.sh
if another name is used. - Shared folder mount point is
/mnt/media_rf_vboxsf
directory. Edit filevboxsf.sh
to change mount point.
- port the
mount.vboxsf
utility for Android - scripts to extract and build guest drivers from VBoxGuestAdditions.iso
- add mount.vboxsf to VBoxGuestAdditionsAndroid.iso
- mouse integration
- query VirtualBox for a list of configured shared folders
- Build guest drivers https://github.com/coyun/android-virtualbox/issues/18
- Mouse integration https://github.com/coyun/android-virtualbox/issues/2
- Building AOSP 7.x Nougat https://github.com/mikecriggs/fuckjack, http://www.2net.co.uk/blog/jack-server.html