We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When vm is powered off, its devices remain to be connected. They should be disconnected.
To Reproduce Steps to reproduce the behavior:
$ vcsim & $ govc vm.info DC0_H0_VM0 | grep Power Power state: poweredOn # connect ethernet-0 $ govc device.connect -vm DC0_H0_VM0 ethernet-0 $ govc device.info -vm DC0_H0_VM0 ethernet-0 | grep onnected Connected: true Start connected: true # power off vm $ govc vm.power -off DC0_H0_VM0 Powering off VirtualMachine:vm-54... OK
Expected behavior A clear and concise description of what you expected to happen.
Device ethernet-0 is disconnected.
ethernet-0
$ govc device.info -vm DC0_H0_VM0 ethernet-0 | grep onnected Connected: false Start connected: true
Affected version Please provide details on the version used, e.g. release tag, commit, module version, etc.
v0.27.4
Screenshots/Debug Output If applicable, add screenshots or debug output to help explain your problem.
Device ethernet-0 is still connected.
$ govc device.info -vm DC0_H0_VM0 ethernet-0 | grep onnected Connected: true Start connected: true
Additional context Add any other context about the problem here.
suspended
# real vCenter $ govc device.info -vm myvm ethernet-1 | grep onnected Connected: true Start connected: true $ govc vm.power -suspend myvm Suspend VirtualMachine:vm-15... OK $ govc device.info -vm myvm ethernet-1 | grep onnected Connected: false Start connected: true
$ govc device.info -vm myvm ethernet-1 | grep onnected Connected: false Start connected: true $ govc device.connect -vm myvm ethernet-1 $ govc device.info -vm myvm ethernet-1 | grep onnected Connected: false Start connected: true
Start connected
$ govc device.info -vm myvm ethernet-1 | grep onnected Connected: false Start connected: true $ govc vm.power -on myvm Powering on VirtualMachine:vm-15... OK $ govc device.info -vm myvm ethernet-1 | grep onnected Connected: true Start connected: true
The text was updated successfully, but these errors were encountered:
vcsim: Fix device connectivity when vm is powered off
2a7cccd
Closes: vmware#2797 Signed-off-by: syuparn <s.hello.spagetti@gmail.com>
3d8ddf1
Successfully merging a pull request may close this issue.
Describe the bug
When vm is powered off, its devices remain to be connected. They should be disconnected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Device
ethernet-0
is disconnected.Affected version
Please provide details on the version used, e.g. release tag, commit, module version, etc.
v0.27.4
Screenshots/Debug Output
If applicable, add screenshots or debug output to help explain your problem.
Device
ethernet-0
is still connected.Additional context
Add any other context about the problem here.
suspended
vm should also be disconnectedStart connected
is trueThe text was updated successfully, but these errors were encountered: