Created
January 14, 2014 23:35
-
-
Save harapeko/8428102 to your computer and use it in GitHub Desktop.
ヾ(o゚ω゚o)ノ゙Vagrantの共有ディレクトリ設定でものすっごい躓いた! ref: http://qiita.com/harapeko_wktk/items/72985bfccaae60c69384
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Share an additional folder to the guest VM. | |
# The first argument is the path on the host to the actual folder. | |
# The second argument is the path on the guest to mount the folder. | |
# And the optional third argument is a set of non-required options. | |
# config.vm.synced_folder "../data", "/vagrant_data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.synced_folder ".", "/vagrant" , owner: “harapeko”, groupe: “harapeko”, mount_options: ["dmode=777", "fmode=777"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* The host path of the shared folder is missing: /vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% vagrant reload | |
[default] Attempting graceful shutdown of VM... | |
[default] Clearing any previously set forwarded ports... | |
[default] Creating shared folders metadata... | |
[default] Clearing any previously set network interfaces... | |
[default] Preparing network interfaces based on configuration... | |
[default] Forwarding ports... | |
[default] -- 22 => 2222 (adapter 1) | |
[default] -- 3000 => 3000 (adapter 1) | |
[default] Booting VM... | |
[default] Waiting for machine to boot. This may take a few minutes... | |
[default] Machine booted and ready! | |
[default] Configuring and enabling network interfaces... | |
[default] Mounting shared folders... | |
[default] -- /vagrant | |
[default] -- /home/vagrant | |
vagrant reload 34.21s user 5.20s system 67% cpu 58.132 total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% vagrant up | |
Failed to mount folders in Linux guest. This is usually beacuse | |
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 harapeko`,gid=`getent group harapeko | cut -d: -f3`,dmode=777,fmode=777 /vagrant /vagrant | |
mount -t vboxsf -o uid=`id -u harapeko`,gid=`id -g harapeko`,dmode=777,fmode=777 /vagrant /vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% vagrant plugin install vagrant-vbguest | |
% vi ~/.vagrant.d/Vagrantfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% vagrant vbguest --status | |
GuestAdditions versions on your host (4.3.6) and guest (4.2.0) do not match. | |
% vagrant vbguest --auto-reboot | |
GuestAdditions versions on your host (4.3.6) and guest (4.2.0) do not match. | |
Loaded plugins: fastestmirror | |
Determining fastest mirrors | |
(省略) | |
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso | |
Installing Virtualbox Guest Additions 4.3.6 - guest version is 4.2.0 | |
Verifying archive integrity... All good. | |
Uncompressing VirtualBox 4.3.6 Guest Additions for Linux............ | |
VirtualBox Guest Additions installer | |
Removing installed version 4.2.0 of VirtualBox Guest Additions... | |
Copying additional installer modules ... | |
Installing additional modules ... | |
Removing existing VirtualBox DKMS kernel modules[ OK ] | |
Removing existing VirtualBox non-DKMS kernel modules[ OK ] | |
Building the VirtualBox Guest Additions kernel modules[ OK ] | |
Doing non-kernel setup of the Guest Additions[ OK ] | |
You should restart your guest to make sure the new modules are actually used | |
Installing the Window System drivers[FAILED] | |
(Could not find the X.Org or XFree86 Window System.) | |
An error occurred during installation of VirtualBox Guest Additions 4.3.6. Some functionality may not work as intended. | |
In most cases it is OK that the "Window System drivers" installation failed. | |
% vagrant vbguest --status | |
GuestAdditions 4.3.6 running --- OK. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% vagrant reload | |
Failed to mount folders in Linux guest. This is usually beacuse | |
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 harapeko`,gid=`getent group harapeko | cut -d: -f3`,dmode=777,fmode=777 /vagrant /vagrant | |
mount -t vboxsf -o uid=`id -u harapeko`,gid=`id -g harapeko`,dmode=777,fmode=777 /vagrant /vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% vagrant ssh | |
sudo /etc/init.d/vboxadd setup | |
exit | |
% vagrant reload | |
Failed to mount folders in Linux guest. This is usually beacuse | |
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 harapeko`,gid=`getent group harapeko | cut -d: -f3`,dmode=777,fmode=777 /vagrant /vagrant | |
mount -t vboxsf -o uid=`id -u harapeko`,gid=`id -g harapeko`,dmode=777,fmode=777 /vagrant /vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.synced_folder "/vagrant", "/home/vagrant", owner: "vagrant", group: "vagrant", mount_options: ["dmode=777", "fmode=777"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are errors in the configuration of this machine. Please fix | |
the following errors and try again: | |
vm: | |
* The host path of the shared folder is missing: /home/vagrant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vbguest.auto_update = false | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment