New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vagrant Halt force shutdown behavior #3895
Comments
It happened with me too. Bringing machine 'default' up with 'virtualbox' provider... Command: ["modifyvm", "059021af-07f0-4c9f-ae7a-af034db9d6ea", "--natpf1", "delete", "ssh", "--natpf1", "delete", "tcp566 Stderr: VBoxManage.EXE: error: Failed to assign the machine to the session (E_FAIL) |
I've considered this a few times and was surprised no one asked for this before. I think we can come up with something to make this work. |
Out of interest, did you ever manage to find a fix for this? I deleted all of my previous Vagrant config files yesterday (including the VMs themselves, which took the databases with them as well, and then I deleted all Vagrant config stuff), and for a while it worked. I use PuPHPet, i fthat's of any consequence, and this happened after I added another vhost and tried to run 'vagrant reload --provision'. I've not really found any pattern to it besides the fact that it seems to happen when I add new vhosts, or possibly when there's been a syntax error in the PuPHPet file, and then you try? Thanks! |
I can confirm the issue on vagrant 1.6.5. This is what I get:
|
i had this problem when i was running a vagrant machine and i closed the prompt(normal mode), when i opened the prompt again, i switched the prompt to run as administrator so get this error, so i closed the admin prompt(run as administrator), and open another one in a normal mode, i tested the "vagrant ssh" and this problem disappeared. |
VBoxManage startvm [vm_id|vm_name] --type emergencystop |
Same error in Admin mode
It works perfect, but after PC reboot I cant up my vagrant box |
I get this error on Win 7, Vagrant 1.6.5 when I switch between running in |
I also get this error, when running in normal mode, admin mode seems to fix. If writing a fix for this isn't possible/too difficult, suggest friendly error messaging, e.g. "Please reset your console in administrative mode if running on Windows." |
Hi there, We would really like this, but this issue has been open for over a year with no one working on it, Leaving it open is unfortunately making our issue count look higher than it is. I’m going to close this and if someone wants to work on it I’d still be open to a PR! Cheers! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
When running
vagrant halt
on vagrant 1.5.4, if the guest cannot be shutdown cleanly, a forced halt is run immediately without user intervention.Personally, I would expect that if the guest cannot be shutdown cleanly then vagrant would simply exit non-zero with a descriptive error.
It would make more sense to me to have a non-zero exit status perhaps suggesting that the user runs
vagrant halt --force
if the guest is truly in an unrecoverable state.Does this ring with anybody else?
The text was updated successfully, but these errors were encountered: