devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 146 forks source link

Unknown configuration section 'hostmanager'. #268

Closed dbstraffin closed 6 years ago

dbstraffin commented 6 years ago

Using vagrant 2.1.3 and vagrant-hostmanager 1.8.8 and 1.8.9, I get the following error:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

Vagrant:
* Unknown configuration section 'hostmanager'.

I tried vagrant plugin update, vagrant plugin repair and vagrant plugin expunge, none of which fixed the issue.

Downgrading to vagrant 2.1.2 fixed the issue and people are having issues with other plugins, so it might actually be a problem with vagrant 2.1.3. https://github.com/hashicorp/vagrant/issues/10150 https://github.com/hashicorp/vagrant/issues/10161

chrisroberts commented 6 years ago

Hi there,

This was a Vagrant issue and was fixed via hashicorp/vagrant#10155

dbstraffin commented 6 years ago

Looks like Vagrant 2.1.4 fixes this issue for me.

bobweston commented 5 years ago

I'm seeing the same error in Vagrant 2.2.5

alykov1 commented 5 years ago

I'm seeing the same error in Vagrant 2.2.5 try to run # vagrant plugin install vagrant-hostmanager

emranhossain2022 commented 2 years ago

Error message: $ Vagrant up bash: vagrant: command not found

or Error message: Vagrant:

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 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`
bilal-07 commented 1 year ago

vagrant-hostmanager is a Vagrant plugin that manages the host's file on guest machines (and optionally the host). Its goal is to enable the resolution of multi-machine environments deployed with a cloud provider where IP addresses are not known in advance.

$ vagrant plugin install vagrant-hostmanager

This Work for me!!!!

To update the host's file on each active machine, run the following command:

$ vagrant hostmanager

AdityaKabu commented 10 months ago

vagrant plugin install vagrant-hostmanager

Thank you! worked for me.

William-eng commented 9 months ago

Need to install the Vagrant plugin. Execute the below command by Git Bash $ vagrant plugin install vagrant-hostmanager $ vagrant reload $ vagrant up

Emmanuelaina commented 6 months ago

$ vagrant plugin install vagrant-hostmanager

worked for me. Thanks so much.