No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
misc
mount_vboxfs
vboxvfs
Makefile
README.md
additions.options
main.options
patch-src-VBox-Runtime-r0drv-freebsd-memobj-r0drv-freebsd.c
patch-src_VBox_Additions_freebsd_Makefile.kmk

README.md

freebsd-vboxfs

To setup development environment quickly:

cd /usr/ports/emulators/virtualbox-ose-additions
(optional) make config; unselect "X11"
make all-depends-list | awk -F/ '{print $5}' > /tmp/vbox-addon-depends
pkg install `cat /tmp/vbox-addon-depends`
edit /tmp/vbox-addon-depends, remove/modify error entries from last command:
  perl5.16 -> perl5
  gcc-ecj45 -> gcc-ecj
  delete indexinfo
pkg install `cat /tmp/vbox-addon-depends`

There is a pre-generated list is at misc/all-depends-list, to install:

pkg install `cat misc/all-depends-list`

To build:

cp -R $(freebsd-vboxsf)/mount_vboxfs /usr/src/sbin
cd /usr/src/sbin/mount_vboxfs && make depend all install

cp $(freebsd-vboxsf)/patch-* /usr/ports/emulators/virtualbox-ose-additions/files

cd /usr/ports/emulators/virtualbox-ose-additions
make patch
rm -fr `make -V WRKSRC`/src/VBox/Additions/freebsd/vboxvfs
cp -R $(freebsd-vboxsf)/vboxvfs `make -V WRKSRC`/src/VBox/Additions/freebsd

make

To test: (currently does not fully work)

cd /usr/ports/emulators/virtualbox-ose-additions
cd `make -V WRKSRC`
kldload ./out/freebsd.amd64/release/bin/additions/vboxguest.ko
kldload ./out/freebsd.amd64/release/bin/additions/vboxvfs.ko

mount_vboxfs -w shared_folder_name /mnt