Skip to content

VMware shutdown fails#4041

Merged
mwhooker merged 3 commits into
masterfrom
vmwareshutdown
Oct 31, 2016
Merged

VMware shutdown fails#4041
mwhooker merged 3 commits into
masterfrom
vmwareshutdown

Conversation

@mwhooker
Copy link
Copy Markdown
Contributor

@mwhooker mwhooker commented Oct 22, 2016

Resolves issue where `shutdown_command` would error because the remote
side disconnected, which we should have expected and ignored.
@mwhooker
Copy link
Copy Markdown
Contributor Author

only thing I can think of this breaks is if there's a non-0 exit from command_shutdown and the vm stays up. With this it immediately crashes, but without it times out for p.Timeout.

I think we can get rid of this safely

@rickard-von-essen
Copy link
Copy Markdown
Contributor

rickard-von-essen commented Oct 26, 2016

Closes #4054

@geerlingguy
Copy link
Copy Markdown
Contributor

Confirming this fixes the issue for me on latest Packer build.

@cbreden
Copy link
Copy Markdown

cbreden commented Oct 28, 2016

Had the regression and this is working for me now.

@trodemaster
Copy link
Copy Markdown
Contributor

This fix is good and I have tested it a few times.

@mwhooker mwhooker merged commit f69ee46 into master Oct 31, 2016
@mwhooker mwhooker deleted the vmwareshutdown branch October 31, 2016 18:37
@mwhooker mwhooker changed the title VIP: VMware shutdown fails VMware shutdown fails Nov 15, 2016
PatrickLang added a commit to PatrickLang/packer that referenced this pull request Dec 12, 2016
@PatrickLang PatrickLang mentioned this pull request Dec 12, 2016
PatrickLang added a commit to PatrickLang/packer that referenced this pull request Dec 13, 2016
mwhooker added a commit that referenced this pull request Dec 13, 2016
taliesins added a commit to taliesins/packer that referenced this pull request Dec 13, 2016
@helperton
Copy link
Copy Markdown

I seem to be running into this with packer 1.3.3

PS C:\windows\temp> packer --version
1.3.3

...
...
...
vmware-iso: UltraDefrag 6.1.0, Copyright (c) UltraDefrag Development Team, 2007-2013.
vmware-iso: UltraDefrag comes with ABSOLUTELY NO WARRANTY. This is free software,
vmware-iso: and you are welcome to redistribute it under certain conditions.
vmware-iso:
vmware-iso: C: optimize: 0.02% c
==> vmware-iso: Gracefully halting virtual machine...
==> vmware-iso: Failed to send shutdown command: unknown error Post http://192.168.222.143:5985/wsman: dial tcp 192.168.222.143:5985: connectex: No connection could be made because the target machine actively refused it.
==> vmware-iso: Failed to send shutdown command: unknown error Post http://192.168.222.143:5985/wsman: dial tcp 192.168.222.143:5985: connectex: No connection could be made because the target machine actively refused it.
==> vmware-iso: Step "StepShutdown" failed, aborting...
Build 'vmware-iso' errored: unexpected EOF

@SwampDragons
Copy link
Copy Markdown
Contributor

@helperton this was merged two years ago, so I suspect that if you're seeing something it's new; can you open a new ticket with steps to reproduce?

@ghost
Copy link
Copy Markdown

ghost commented Mar 30, 2020

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.

@ghost ghost locked and limited conversation to collaborators Mar 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants