grtjn / mlvagrant

Scripts for bootstrapping a local MarkLogic cluster for development purposes using https://www.vagrantup.com/ and https://www.virtualbox.org/.
Apache License 2.0
19 stars 16 forks source link

re: CentOS 7.3, vagrant up hangs on SSH step #124

Closed MJMoody closed 6 years ago

MJMoody commented 6 years ago

With setting vm_version=7.3

Run vagrant up --no-provision

The above command hangs completely at the SSH step...

==> ml9-dhf-ml1: Waiting for machine to boot. This may take a few minutes...
    ml9-dhf-ml1: SSH address: 127.0.0.1:2222
    ml9-dhf-ml1: SSH username: vagrant
    ml9-dhf-ml1: SSH auth method: private key

When setting vm_version=7.2, the vagrant up process completes.

I am using the latest versions:

VirtualBox 5.2.8 Vagrant 2.0.3

grtjn commented 6 years ago

I am aware of 7.3 not working well yet. I think the chef project made changes to how they put together their vm's causing this issue. I'll have a look if they have released a new version of the 7.3 vm, and/or if they released 7.4 and 7.5 versions too..

grtjn commented 6 years ago

See also #116

grtjn commented 6 years ago

i published a more recent 7.3 version, and also a 7.4 one, but neither works. The preview screen in virtual box shows a blinking login screen. It is as if the ssh auth is simply never reached for whatever reason.

grtjn commented 6 years ago

Still on-going. For the time being I recommend using the centos-7.2 (which is still the default for mlvagrant) for now. You can optionally update the os inside the vm to get it upgraded to 7.5 effectively. There is a properties flag to do so..

grtjn commented 6 years ago

I think I finally resolved this issue. It seems that re-packaging the bento base boxes messed up with its network config, causing the centos network service to fail, with subsequent timeouts when trying to connect from outside.

I found a fix for the re-packaging (mostly by sheer luck), and have in the meantime uploaded fresh versions of grtjn/centos-7.3 and grtjn/centos-7.4.

I recommend anyone that may have touched those base boxes to check and purge existing ones:

This is particularly necessary if you tried those boxes in the past few days, where I have been uploading 2017 and 2018 versions of both, and replacing them with new uploads..

grtjn commented 6 years ago

@MJMoody, would you be willing to run a test with this, so that I can close this ticket?

MJMoody commented 6 years ago

This is now working.

I created a new folder for my ml-vagrant project, and specified vm_version=7.3 in the project.properties file. I'm also using MarkLogic 9.0.5 installers.

I then cd to my new ml-vagrant project and run vagrant box update, which updated the grtjn/centos-7.3 box image from 2.3.5 to 2018.22.0.

I then run vagrant up --no-provision, and this completes without the issue -- the ssh step proceeds as expected.

I then run vagrant provision and this completes without issue -- my new ml-vagrant VM is running with 9.0.5.

All good. Thanks Geert!

grtjn commented 6 years ago

Thnx for reporting back!