2016/02/07

開発環境構築 Win7 x64

Windows の開発環境構築

インストールするもの

  • Atom
    • GLSL Preview
    • atom-typescript
    • autocomplete-webgl
  • VirtualBox
  • Vagrant
    • vagrant init bent/centos-6.7 
  • Visual Studio Community 2015
  • Visual Studio Code
  • TypeScript
  • Putty
    • UTF-8
  • WinSCP

トラブル対応

Vagrantの共有フォルダが参照できない

==> default: Mounting shared folders...
    default: /vagrant => D:/Vagrant/mycentos
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 vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3`
vagrant /vagrant
mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant

The error output from the last command was:

/sbin/mount.vboxsf: mounting failed with the error: No such device

こんな風にマウント失敗のエラーが出ていた.
どうもVirtualBoxのGuestAdditionsがおかしくなっているようなので,次の対応を実施:


  1. 稼働OSを停止: vagrant halt
  2. プラグインインストール: vagrant plugin install vagrant-vbguestd:\Vagrant\mycentos>vagrant plugin install vagrant-vbguestInstalling the 'vagrant-vbguest' plugin. This can take a few minutes...Installed the plugin 'vagrant-vbguest (0.11.0)'!
  3. 再起動する途中でインストールされる: vagrant up




References

  • http://dotinstall.com/lessons/basic_localdev_win/