Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 274
ark1980 Avatar asked Nov 01 '14 23:11

ark1980


1 Answers

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

like image 103
Hagai Avatar answered Nov 15 '22 12:11

Hagai