Parallels Desktopの環境でVagrantでUbuntu-14.04を使う(共有フォルダに問題

Parallels Desktopの環境でVagrantをインストール(失敗込み) - 別館 子子子子子子(ねこのここねこ)
の続き。Ubuntu-14.04LTSを入れる。
のですが今回も失敗込み。

vagrant init

$ vagrant init parallels/ubuntu-14.04
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 ファイルのブロック末尾に

config.vm.provider "parallels" do |v|
  v.update_guest_tools = true
end

を入れて Parallels Tools の自動更新を行わせる設定に。

vagrant up

$ vagrant up
Bringing machine 'default' up with 'parallels' provider...
==> default: Box 'parallels/ubuntu-14.04' could not be found. Attempting to find and install...
    default: Box Provider: parallels
    default: Box Version: >= 0
==> default: Loading metadata for box 'parallels/ubuntu-14.04'
    default: URL: https://vagrantcloud.com/parallels/ubuntu-14.04
==> default: Adding box 'parallels/ubuntu-14.04' (v0.1.0) for provider: parallels
    default: Downloading: https://vagrantcloud.com/parallels/ubuntu-14.04/version/1/provider/parallels.box
    :(ダウンロード
==> default: Successfully added box 'parallels/ubuntu-14.04' (v0.1.0) for 'parallels'!
==> default: Importing base box 'parallels/ubuntu-14.04'...
==> default: Checking if box 'parallels/ubuntu-14.04' is up to date...
==> default: Setting the name of the VM: ubuntu1404_default_1409032376118_26628
==> default: Preparing network interfaces based on configuration...
    default: Adapter 0: shared
==> default: Clearing any previously set network interfaces...
==> default: Setting power consumption mode: "Longer battery life"
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 10.211.55.14:22
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection refused. Retrying...
==> default: Machine booted and ready!
==> default: Checking for Parallels Tools installed on the VM...
==> default: Parallels Tools installed on this VM are outdated! In most cases
==> default: this is fine but in rare cases it can cause things such as shared
==> default: folders to not work properly. If you see shared folder errors,
==> default: please update Parallels Tools within the virtual machine and 
==> default: reload your VM.
==> default: Installing the proper version of Parallels Tools. This may take a few minutes...
==> default: Mounting shared folders...
    default: /vagrant => /Volumes/new_exthdd/Parallels/Vagrant/ubuntu1404
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t prl_fs -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant
mount -t prl_fs -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant

エラーでましたorz 共有フォルダが共有できない。

共有フォルダを共有できるようにする

検索して当たったのがこれ。

This solved my problem:

$ vagrant plugin install vagrant-vbguest

ubuntu - Vagrant error : Failed to mount folders in Linux guest - Stack Overflow

ではこれを実行。

$ vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.10.0)'!

まだ VM が起動しているのでリロードさせます。

$ vagrant reload
==> default: Attempting graceful shutdown of VM...
==> default: Checking if box 'parallels/ubuntu-14.04' is up to date...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 0: shared
==> default: Clearing any previously set network interfaces...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 10.211.55.14:22
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection refused. Retrying...
==> default: Machine booted and ready!
==> default: Checking for Parallels Tools installed on the VM...
==> default: Mounting shared folders...
    default: /vagrant => /Volumes/new_exthdd/Parallels/Vagrant/ubuntu1404

では共有フォルダが共有できているか確認。

$ vagrant ssh
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Tue Aug 26 05:57:18 2014 from 10.211.55.2
vagrant@trusty64:~$ ls -l /vagrant
total 0
-rw-r--r-- 1 vagrant vagrant 4907 Aug 26 05:44 Vagrantfile

共有できました\o/

vagrant-vbguest ?

A Vagrant plugin to keep your VirtualBox Guest Additions up to date
dotless-de/vagrant-vbguest

boxにインストールされているGuestAdditionを最新版に入れ替える
 :
ということでVagrantプラグインを使って簡単に解決する方法を紹介します。
 :
インスタンスを起動してしまうと、無条件にGuestAdditionのバージョンが古ければ自動で更新しにいくようになります。VagrantのboxのVBoxGuestAdditionsを超簡単に最新版に更新する方法 | Ryuzee.com

…つまり VirtualBox 用の更新プラグインですね。
なぜこれでさきほどのエラーが解決するんだろう。
しかも

$ vagrant vbguest --status

で VagrantPlugins::ProviderVirtualBox::Provider なんて定数は知らないよーというエラーが返されてしまうし(VirtualBoxが無いのだから当然)。
まぁ解決したから良しとしましょう(いいのかよ