質問: "chef/freebsd-9.2-i386" end 仮想ボックスを起動するとエラーが発生します$ vagrant up bringing machine 'default' up with 'virtualbox' provider... ==> default: box 'chef/freebsd-9.2-i386' could not be found. attempting to find and install... default: box provider: virtualbox default: box version: >= 0 ==> default: loading metadata for box 'chef/freebsd-9.2-i386' default: url: https://vagrantcloud.com/chef/freebsd-9.2-i386 ==> default: adding box 'chef/freebsd-9.2-i386' (v1.0.0) for provider: virtualbox default: downloading: https://vagrantcloud.com/chef/freebsd-9.2-i386/version/1/provider/virtualbox.box ==> default: successfully added box 'chef/freebsd-9.2-i386' (v1.0.0) for 'virtualbox'! ==> default: importing base box 'chef/freebsd-9.2-i386'... ==> default: matching mac address for nat networking... ==> default: checking if box 'chef/freebsd-9.2-i386' is up to date... ==> default: setting the name of the vm: freebsd92-i386_default_1401982167145_49633 ==> default: fixed port collision for 22 => 2222. now on port 2201. ==> default: clearing any previously set network interfaces... ==> default: preparing network interfaces based on configuration... default: adapter 1: nat ==> default: forwarding ports... default: 22 => 2201 (adapter 1) ==> default: booting vm... ==> default: waiting for machine to boot. this may take a few minutes... default: ssh address: 127.0.0.1:2201 default: ssh username: vagrant default: ssh auth method: private key default: warning: connection timeout. retrying... default: warning: connection timeout. retrying... ==> default: machine booted and ready! sorry, don't know how to check guest version of virtualbox guest additions on this platform. stopping installation. ==> default: checking for guest additions in vm... default: the guest additions on this vm do not match the installed version of default: virtualbox! in most cases this is fine, but in rare cases it can default: prevent things such as shared folders from working properly. if you see default: shared folder errors, please make sure the guest additions within the default: virtual machine match the version of virtualbox you have installed on default: your host and reload your vm. default: default: guest additions version: 4.2.16 default: virtualbox version: 4.3 ==> default: mounting shared folders... default: /vagrant => /users/joel/code/anybots/operations/robot/freebsd92-i386 vagrant attempted to execute the capability 'mount_virtualbox_shared_folder' on the detect guest os 'freebsd', but the guest doesn't support that capability. this capability is required for your configuration of vagrant. please either reconfigure vagrant to avoid this capability or fix the issue by creating the capability. 最近virtualboxの最新バージョンをインストールしましたが、どういうわけかゲスト追加機能が見つかりません。
回答: このエラーは、vagrantがvirtualbox共有フォルダーを使用しようとするために表示されますが、freebsdはそれをサポートしていません。代わりに、nfsを使用するようにvagrantを構成します。vagrantfile_api_version = "2" vagrant.configure(vagrantfile_api_version) do |config| config.vm.box = "chef/freebsd-10.0" config.vm.network "private_network", type: "dhcp" config.vm.synced_folder ".", "/vagrant", type: "nfs" end