Closed arkady-emelyanov closed 8 years ago
If the guest additions are actually installed there should be no need to mount the synced_folder using NFS. The VirtualBox guest additions provide this capability. Try bringing the VM up using just:
config.vm.synced_folder ".", "/home/web/project"
Otherwise, try using a static IP for the private_network to see if that addresses the issue. If it does, then I'd suspect there is an issue with the DHCP response. It looks like this error is occurring in the VirtualBox provider plugin:
ERROR vagrant: /opt/vagrant/embedded/gems/gems/vagrant-1.8.4/plugins/providers/virtualbox/action/prepare_nfs_settings.rb:131:in
rescue in read_dynamic_machine_ip'`
Yeah, i know about synced_folder feature, they work fine. The problem is they are very slow in order to use in real project.
Ok, i'll try to check source of vagrant/vagrant-alpine.
The code having an issue isn't part of vagrant-alpine, it is in:
/opt/vagrant/embedded/gems/gems/vagrant-1.8.4/plugins/providers/virtualbox/action/prepare_nfs_settings.rb
which is part of the virtualbox provider plugin for vagrant.
Also, with regards to NFS shares and Vagrant, take a look at the comment in the Vagrantfile.example
it talks about using DHCP with NFS shares.
#
# Shared folders
#
# Note, for shared folders via NFS a static IP *must* be provided
# until guest additions can be built and installed out of main.
# The reason being that although a DHCP interface does successfully
# get an IP, virtualbox is unaware of it and therefore cannot
# provide it to Vagrant.
@maier I think you right, it's not and issue with plugin itself. Anyway, thanks for clues. I'll keep searching. I'll close this issue.
Hello!
I finally manage to solve VirtualBox Guest additions problem. Here is the commit which allow build up alpine linux box with working guest additions.
Vagrant box is located there: https://atlas.hashicorp.com/Dalee/boxes/alpine But, i'm experiencing some problems to manage plugin to work:
Plugins installed:
Sample Vagrantfile:
And the vagrant message:
Any suggestions?