Connection lost after sudo reboot in vagrant -


i have started using vagrant. have issues in restarting vm. vagrantfile is:

vagrant.configure("2") |config config.vm.box = "precise32" config.vm.box_url = "http://files.vagrantup.com/precise32.box" 

i open ssh vagrant ssh. if give "sudo reboot" connection vm closed. following:

vagrant@precise32:~$ sudo reboot vagrant@precise32:~$ broadcast message vagrant@precise32     (/dev/pts/0) @ 9:43 ...  system going down reboot now! connection 127.0.0.1 closed remote host. connection 127.0.0.1 closed. 

how solve this? why happening?

when run sudo reboot, reboots vagrant vm, part of reboot process it'll kill daemons , processes. of course sshd stopped or killed, result connection (i mean vagrant ssh) lost.

once vagrant vm , running again, can vagrant ssh again. use vagrant status check vm status.

the vagrant way of restarting box is:

  1. ctrl+d exit ssh connection
  2. vagrant reload

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -