LoginSignup
0
0

More than 5 years have passed since last update.

Vagrantの共有フォルダにアクセスできなかったら

Posted at

結論

VirtualBoxのバージョンも上げる
5.0.22に更新したら、正常になった。

Unable to mount /vagrant folder in 1.7.3 · Issue #5933 · mitchellh/vagrant

内容はよく読めないのです。1.7.4で直った流れかと思ったら違ったみたい。

現象発生までの流れ

  1. 久々にVagrantを起動しようとする。
  2. VirtualBoxに対してバージョンが古いと怒られ、Vagrant再インストール
  3. vagrant upでエラーがでるも気にせずvagrant ssh
  4. /vagrant フォルダの操作がOperation not permitted

エラーメッセージ

vagrant up

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chown `id -u vagrant`:`id -g vagrant` /vagrant

Stdout from the command:



Stderr from the command:

stdin: is not a tty
chown: changing ownership of ‘/vagrant’: Not a directory

SSH後

$ ll /vagrant
ls: cannot open directory /vagrant/: Operation not permitted
$ ll /
(中略)
drwxrwxrwx  1 vagrant vagrant  4096 Apr 22  2015 vagrant/

環境

  • Windows 7 64bit
  • VirtualBox 5.0.0(エラー発生時。のち5.0.22で解消)
  • Vagrant 1.8.4
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0