Issue:-
Unknown configuration section 'hostmanager'
Cause:-
I have defined the hostmanager in my Vagrantfile but its an additional plugin which you need to install first before you can make the use of it.
Resolution:-
Run the following command to resolve this issue
vagrant plugin install hostmanager
This works for me...
ReplyDeletea. vagrant plugin install vagrant-hostmanager
b. vagrant plugin install vagrant-vbguest
Error message:
ReplyDelete$ Vagrant up
bash: vagrant: command not found
or Error message:
Vagrant:
* Unknown configuration section 'hostmanager'.
Solutions:
Step one:
On your host machine you need to install VirtualBox and the VirtualBox is a hypervisor that helps you to build Virtual Machine.
Step two:
If you have Hyper-V hypervisor in your PC, first, you disable it.
Right-click > Windows Power Shell > Run as administrator > Copy the Below command
`Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All`
*execute the code with power shell and Your Hyper-V will disable
Step three:
Download the [Vagrant installer](https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.msi) and install it on your windows machine.
Step Four:
Now you can execute your “vagrant up” Command using Git Bash. Just type the following command to verify Vagrant.
`$ vagrant --version`
`$ git --version`
Step Five:
Need to install the Vagrant plugin. Execute the below command by Git Bash
`$ vagrant plugin install vagrant-hostmanager`
And finally, execute this one.
`$ vagrant up`