New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vagrant 1.3.x sync folder syntax confusion #2564
Comments
forgot to mention i am on vagrant 1.3.5 and virtualbox 4.3.2, i was using vagrant 1.2.x with virtualbox 4.2.x without issues, only updated to latest when i upgrade to mac osx mavericks. it seems every time I reboot my host machine, my vm would be broken and had to i will try uninstall virtualbox and report back. |
with vagrant 1.3.5 and latest virtualbox 4.3.4, i observe this issue, if i ran my Vagrantfile Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
if defined? VagrantVbguest
config.vbguest.auto_update = true
end
config.vm.hostname = "leaf"
if Vagrant::Util::Platform.windows?
config.vm.synced_folder "www", "/var/www", :mount_options => ["dmode=777","fmode=777"], :owner => "vagrant", :group => "vagrant"
else
config.vm.synced_folder "www", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=777"] }
end
config.vm.network :private_network, ip: "192.168.10.10"
config.vm.provision :shell, :inline => "echo \"Asia/Hong_Kong\" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--memory", "512"]
end
config.vm.provision :puppet do |puppet|
puppet.facter = { "fqdn" => "local.leaf", "hostname" => "leaf" }
puppet.manifests_path = "manifests"
puppet.manifest_file = "base.pp"
puppet.module_path = "modules"
puppet.options = "--verbose --debug"
end
end |
tried this for multiple times, clean install vagrant 1.3.5, virtualbox 4.3.4 with puppet 3.3.2 and vagrant guest 0.10 (pre-release) on OSX Mavericks. same issue persists, first i have tried:
to no success, would appreciate some suggestions... |
Tried 2 more combinations on OSX 10.9: vagrant 1.3.5 + virtualbox 4.2.20: still the same issue, initial vagrant 1.2.7 + virtualbox 4.2.20: works! the only thing different is vagrantfile config, in particular the part about my old 1.2 config
vs 1.3 config
I will change my issue title to reflect this discovery. |
Ah, I think this is fixed. The issue is that |
is this released in the latest version of vagrant ? |
Yes |
@mitchellh I'm getting this Issue of the synced folders being empty, I was on 1.3.5 and upgraded to 1.4.3, and I still get it. I didn't uninstall vagrant before upgrading, could that be why it's still happening? VirtualBox is version 4.3.0 |
Just tried with a fresh install of vagrant 1.4.3 (removed my user configs also) and virtualbox 4.3.6 and it is still happening. I'm on OSX 10.8.5 and this is the result of the |
@Nalum What do you mean by synced folders being empty? You mean they exist but the contents are empty and shouldn't be? Run |
@mitchellh When vagrant is started after being halted the synced folders are not synced with their host system folders. So the folders exist but are owned by root and do not contain the content of the host system folder. I've just tried it again after installing This is the output I get from running
This is the same with first run of These are the lines I have for the synced folders:
|
On Fri, Feb 14, 2014 at 5:14 AM, Luke Mallon notifications@github.comwrote:
why ..ssh ? |
@kikitux I didn't want to over write the .ssh folder in case it was used by vagrant. |
@Nalum vboxsf synced folder being empty is a typical issue of buggy and too old guest additions on the guest. As Vagrant warned you, your box has v4.2.0 while the VirtualBox in the host is 4.3. So either rebuild the box, or |
@Nalum eh, sorry, you already said you did that... |
Updated log. |
@Nalum thanks. There seem to be still problem with the guest additions. lsmod won't list them, so Vagrant warns that "GuestAdditions seems to be installed (4.3.6) correctly, but not running.". That should have been printed without debug log level too. So maybe vagrant-vbguest failed to install the additions, someone updated the kernel, or there is some other problem on the box. |
Thanks @tmatilai, I've just done a clean |
@Nalum what chef recipe? As far as I can see you didn't share any information of that. But if your provisioner updates the kernel or even reboots the VM you can expect things to break. |
@tmatilai it is one written by my company, can't share it unfortunately. It is doing an Really appreciate the help guys. Gonna have to go through the recipe on my own. |
Just leaving this here for anyone else that might come across the same issue. The Chef recipe was adding a
Once this was removed the synced folders worked as they are supposed to. |
see my comment below for updates.
#2564 (comment)
here is the basic output from
vagrant up
:no more output beyond last line.
here is the last thousand line output with command
VAGRANT_LOG=debug vagrant up
, vagrant seems to retry ssh with virtualbox repeatedly and to no success, but does not timeout itself.https://gist.github.com/bitinn/7744788
The text was updated successfully, but these errors were encountered: