Skip to content
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

Vagrantfile is outdated / not working #4468

Closed
Zyigh opened this issue May 2, 2019 · 3 comments · Fixed by #4779
Closed

Vagrantfile is outdated / not working #4468

Zyigh opened this issue May 2, 2019 · 3 comments · Fixed by #4779
Labels

Comments

@Zyigh
Copy link

Zyigh commented May 2, 2019

Environment details:

Local deployement with vagrant 2.2.4 on Mac OS Mojave (10.14.4) and VirtualBox 5.2.2

Steps to reproduce the issue:

Go on tools/vagrant and execute ./hello (which is basically a vagrant up)

Provide the expected results and outputs:

This should create a virtual machine with everything installed and set up properly

Provide the actual results and outputs:

3 problems are preventing the construction of the virtual machine :

  • Java Installer is outdated.
  • Grub installer asks for interaction
  • npm is missing, so installation won't work

Additional information you deem important:

I couldn't test it on different OS / version. Also, the grub interraction problem appeared today on my computer. The solution I found here is from 2013.

I had to modify the Vagrantfile to make it work :

I removed the line su vagrant -c 'source all.sh oracle' and replaced it with

su vagrant -c 'source all.sh'
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - && apt-get install -y nodejs
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade

Removing the option "oracle" to all.sh install scripts that are still supported by ubuntu.
After that line I install node
And then run the script found to prevent interraction with grub during vagrant up

Also I thought it would be important to write this as an issue as I had to search many different places to find a solution so this can help, but I'm not sure it would be a good idea to create a pull request as I couldn't test it in many environment (such as different VirtualBox or vagrant versions)

@rabbah
Copy link
Member

rabbah commented May 28, 2019

thanks @Zyigh for the issue and suggested fix.

@rabbah rabbah added the vagrant label Jun 9, 2019
@emilyaherbert
Copy link

This fix worked for me with vagrant 2.2.5, virtual box 6.0.12, and Ubuntu 18.04.

@rabbah
Copy link
Member

rabbah commented Dec 20, 2019

We're not maintaining this image actively and I will propose removing it on the Apache dev list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants