# cd /usr/ports/emulators/virtualbox-ose-additions/# make install clean
查看安装说明:
root@ykla:/home/ykla# pkg info -D virtualbox-ose-additionsvirtualbox-ose-additions-6.1.50.1401000:Oninstall:VirtualBoxGuestAdditionsareinstalled.Toenableandstarttherequiredservices:# sysrc vboxguest_enable="YES"# sysrc vboxservice_enable="YES"Tostarttheservices,restartthesystem.Insomesituations,apanicwilloccurwhenthekernelmoduleloads.HavingnomorethanonevirtualCPUmightmitigatetheissue.Forfeaturessuchaswindowscalingandclipboardsharing,membershipofthewheelgroupisrequired.Withusername"jerry"asanexample:# pw groupmod wheel -m jerryThesettingsdialogueforFreeBSDguestsencouragesuseoftheVMSVGAgraphicscontroller.WhilstthismightsuitinstallationsofFreeBSDwithoutadesktopenvironment (a commonusecase), it is not appropriatewhereGuestAdditionsareinstalled.WhereGuestAdditionsareinstalled:1.preferVBoxSVGA2.donotenable3Dacceleration (doing sowillinvisiblylosethepreferenceforVBoxSVGA)YoumayignoretheyellowalertthatencouragesuseofVMSVGA.