Closed MacFlurry closed 7 years ago
It is likely the guest additions are not available within that box. Using a bento box will likely resolve this issue (bento/centos-7.2
or bento/centos-7.3
)
Cheers!
Hello Chris,
I tried bento/centos-7.2 and 7.3
failed on timeout trying to connect to ssh.
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Remote connection disconnect. Retrying...
default: Warning: Remote connection disconnect. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
I added this in my vagrant file vb.customize ["modifyvm", :id, "--cableconnected1", "on"]
according to several issues encountered with bento, but no way.
:(
So I switched back to centos/7 and added the type to my config.vm.synced_folder
config.vm.synced_folder "yii2/", "/var/www/html/yii2", create: true, type: "nfs"
now it works.
Conclusion: it's really a regression because it worked before without changing the synced_folder to nfs.
Bento maintainer here, the problem with using 7.2 is that it's fairly old and was built with almost definitely incompatible guest tooling. It's not just using bento/centos-7.3
even as you need to make sure you have the latests (or at least compatible) version with current tooling. The cableconnected
workaround only matters if you're using older versions of Vagrant.
I've just validated the following configuration: macOS 10.12.6 Vagrant 2.0.0 VirtualBox 5.1.28 bento/centos-7.3 201708.22.0 (2.3.8 also works fine)
Asserting this is a regression because it worked before here is very tricky as the version of VirtualBox Guest Tools of the specific version of box plus Virtualbox + Vagrant versions all must align.
Also, vagrant-vbguest causes as many problem as it solves often and that appears to be the issue in your first posting.
an Update. ( @cheeseplus you're not in High Sierra )
macOS 1O.13 High Sierra ( works before in 10.12 ) Vagrant 2.0.0 VirtualBox 5.1.28 bento/centos-7.3 201708.22.0 => timeout issue With centos/7 box ( version 1708.01 => newly updated) and it works.
So the issue was on centos/7 boxes and their update solved the issue.
Sorry for not spotting on it earlier https://seven.centos.org/2017/09/updated-centos-vagrant-images-available-v1708-01/
Best regards
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Hello,
OS :macOS Sierra
Vagrant 2.0.0 vagrant-share (1.1.9, system)
Virtualbox Version 5.1.28 r117968 (Qt5.6.2)
vagrant up failed to mount VirtualBox shared folders.
this is the message :
This is my vagrant file: