###Vagrant Synced folder で 同期したい
VagrantにsentOSをインストールしていますが、Vagrant sshした時にターミナル上でインストールされたファイルをローカルのテキストエディタなどで編集する方法を知りたいです。
そのための機能としてVagrant Synced folder の設定があると考えて設定をしていますが、認識としてあっていますでしょうか?プログラミングは初心者でわからないことばかりでご教授願います。
###発生している問題・エラーメッセージ
ターミナル上で
$vagrant rsync_auto
上記を実行
There are no paths to watch! This is either because you have no
synced folders using rsync, or any rsync synced folders you have
have specified rsync_auto
to be false.
とエラーメッセージが出ています。
###参考にしたページ
https://www.vagrantup.com/docs/synced-folders/rsync.html
###試したこと
vi vagatrantfileを実行
config.vm.synced_folder "../data", "/vagrant_data"
を編集し
config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: ".git
こちらを入力し編集。
packさんの助言で
vagrant up実施
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
と出てきたので
vagrant plugin install vagrant-vaguest
を実施しました。
###補足情報(言語/FW/ツール等のバージョンなど)
MacOS 10.11.6
Vagrant Installed Version: 1.8.4
Virtual Box バージョン 5.0.26 r108824
Cyberduck バージョン 5.1.0 (20872)
回答3件
あなたの回答
tips
プレビュー