Vagrant ssh doesn't opens vagrant shell

Yesterday, I was working on the vagrant shell but I had to close the shutdown the system and I didn’t halt or suspend the vagrant.
Now today, vagrant shell is not getting open.

C:\Users\amitayadav\m103\m103-vagrant-env>vagrant status
Current machine states:

mongod-m103 running (virtualbox)

The VM is running. To stop this VM, you can run vagrant halt to
shut it down forcefully, or you can run vagrant suspend to simply
suspend the virtual machine. In either case, to restart it again,
simply run vagrant up.

C:\Users\amitayadav\m103\m103-vagrant-env>vagrant ssh

C:\Users\amitayadav\m103\m103-vagrant-env>

Hi @Amita_62847,

Please try to run these commands and see if this resolves the issue.

Vagrant halt

vagrant up

vagrant ssh

If the issue still persists then please feel free to get back to us.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

it doesn’t solves my problem. I had to use vagrant destroy then vagrant up and vagrant ssh

Hi @Amita_62847,

Did you take the backup of your config files ?

It’s okay if you didn’t but for any other users who might have to destroy their vagrant environment, please make sure that you are copying the config files in some other location (Host OS) so that you don’t have to write it again.

Thanks,
Shubham Ranjan
Curriculum Support Engineer

vagrant destroy doesn’t deletes my config file. And it is solved please close the issue.