ark1980
ark1980

Reputation: 295

Vagrant halt doesn't work

I am trying to shut down Vagrant with vagrant halt command, but getting this error:

(blog-venv)vagrant@precise64:/vagrant$ vagrant halt The program 'vagrant' is currently not installed. You can install it by typing: sudo apt-get install vagrant

Why?

Upvotes: 6

Views: 10316

Answers (1)

Hagai
Hagai

Reputation: 703

vagrant commands must be executed from the local machine. If you look at your bash prompt, you are still sshed (secure shelled) into your virtual machine. You need to exit the ssh session and then run the vagrant commands on your local machine in the local directory where your Vagrantfile configuration file is located.

You have SSHed into the vagrant machine. first executeexit to get back to your machine and then executevagrant halt

Upvotes: 14

Related Questions