The Objective
How to solve the situation where the vagrant up
command gets stuck while checking if box is up to date .
By default when you bring up the virtual machine provisioned with vagrant using vagrant up command.vagrant will look for the updates associated with the box and make sure it is up to date.
This can be controlled by your Vagrantfile
The Fix
By default this update checking feature is enabled for all the new VMs being created with Vagrant unless you explicitly disable it by adding the following line into your vagrant file
config.vm.box_check_update = false
After adding this property in Vagrantfile, vagrant up command will not check for the new updates as it brings up the virtual machines
The Sample Vagrantfile with this feature enabled.
This Vagrant file created web server and application servers with two different boxes and two different configurations.
you can notice that we have added the config.vm.box_check_update = false
in both web and app server provisioning segments.
Hope it helps.
Cheers
Sarav AK
More from Middleware Inventory
-
How to create ssh public key from private key - Vagrant & LinuxHow to create SSH public Key from SSH private key is a question made me write this post. Though we would be able to achieve the SSH key-based authentication by producing the private key. Sometimes it is necessary that we must have the SSH public key. Especially when we are…
-
Vagrant Private key - Ansible SSH Permission Denied - How to resolve.While building VMs with Vagrant and trying to run ansible-playbook with them over SSH connection. We get exceptions like Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password The execution and the error would like something similar to the below. This post presumes that you are using the…
-
-
How to Start Weblogic Admin and Managed Server in Command LineThe Objective In this post, we are going to see how to Start the Weblogic Admin and managed server in the command line. Presumably, most of the weblogic servers in the industry is running in LINUX Operating System and So this article is designed for the Linux as well. Prerequisite…
-
Ansible Command Module ExamplesAnsible Command Module Introduction Ansible Command module is used to execute commands on a remote node. The Command module, is used mostly to run simple Linux commands on a remote node/server which is part of a host group or Stand alone server mentioned in the host group. If you want…