Skip to content
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

[BUG] govc: Unable to clone a vm when using the -host.dns flag #2849

Closed
makelarisjr opened this issue May 17, 2022 · 1 comment · Fixed by #2850
Closed

[BUG] govc: Unable to clone a vm when using the -host.dns flag #2849

makelarisjr opened this issue May 17, 2022 · 1 comment · Fixed by #2850

Comments

@makelarisjr
Copy link
Contributor

Describe the bug
When cloning a VM if you specify the -host.dns flag it throws the error expected VirtualMachine entity, got HostSystem

To Reproduce
Steps to reproduce the behavior:
Clone a VM and specify the -host.dns flag
Example: ./govc vm.clone -vm "TestDHCP" -host.dns "esxi-eu-dev-01.example.com" testvm

Expected behavior
Continue with the cloning of the VM

Affected version
govc v0.28.0

@github-actions
Copy link
Contributor

Howdy 🖐   makelarisjr ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.

makelarisjr added a commit to makelarisjr/govmomi that referenced this issue May 17, 2022
makelarisjr added a commit to makelarisjr/govmomi that referenced this issue May 18, 2022
dougm added a commit to dougm/govmomi that referenced this issue Jun 1, 2022
PR vmware#2850 fix a search flag issue with the vm.clone command, but caused an issue with the vm.migrate command.
Rather than embed the SearchFlag directly, vm.migrate needs to embed the VirtualMachineFlag

Issue vmware#2849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant