We don't check whether the VM is running before executing global-zone ssh. This could be fixed by mirroring the internals of Vagrant. Right now we run the ssh command inline in the global-zone command file. The code can move out into an action that runs checks before executing ssh.
We don't check whether the VM is running before executing
global-zone ssh
. This could be fixed by mirroring the internals of Vagrant. Right now we run the ssh command inline in theglobal-zone
command file. The code can move out into an action that runs checks before executing ssh.https://github.com/mitchellh/vagrant/blob/master/plugins/providers/virtualbox/action.rb#L222-L230