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:
ctrl
+d
exit ssh connectionvagrant reload
Comments
Post a Comment