設定中の自宅環境メモ(その後)
前回の続き。
手順を変えて、下記を参考にboxなるものをインストール。
$ vagrant.exe box add CentOS7 https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'CentOS7' (v0) for provider: box: Downloading: https://github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box box: Download redirected to host: github-production-release-asset-2e65be.s3.amazonaws.com box: ==> box: Successfully added box 'CentOS7' (v0) for 'virtualbox'! $
既に存在しているVagrantfile(※前回の導入の際に作られたやつ)を消して、 再度initする
$ vagrant.exe init CentOS7 A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant.
vagrantを起動
$ vagrant.exe up : : : Vagrant was unable to mount VirtualBox shared folders. This is usually because the filesystem "vboxsf" is not available. This filesystem is made available via the VirtualBox Guest Additions and kernel module. Please verify that these guest additions are properly installed in the guest. This is not a bug in Vagrant and is usually caused by a faulty Vagrant box. For context, the command attempted was: mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant The error output from the command was: mount: unknown filesystem type 'vboxsf' $
マウントエラーらしい。
そんなわけで、pluginをインストール
$ vagrant.exe plugin install vagrant-vbguest Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Installed the plugin 'vagrant-vbguest (0.15.2)'! $
やっとこさっとvagrantで起動!
$ vagrant.exe up
この後はCドライブにインストールされたVirtualboxをDドライブへ移します。 とりあえず今日はこれまで。