-
Notifications
You must be signed in to change notification settings - Fork 896
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] library.deploy does not honor OVA spec file via -options (properties) #2599
Comments
Howdy 🖐 nanw1103 ! 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 |
@nanw1103 in general, Go flags need to be specified for before args. Try: % govc library.deploy -options path_to_my_ova_spec.json path_to_the_vm_in_lib my_vm_name |
Untested patch if anyone wants to open a PR:
modified govc/library/deploy.go
@@ -88,10 +88,13 @@ func (cmd *deploy) Description() string {
Examples:
govc library.deploy /library_name/ovf_template vm_name
- govc library.deploy /library_name/ovf_template -options deploy.json`
+ govc library.deploy -options deploy.json /library_name/ovf_template`
}
func (cmd *deploy) Run(ctx context.Context, f *flag.FlagSet) error {
+ if f.NArg() > 2 {
+ return flag.ErrHelp
+ }
path := f.Arg(0)
name := f.Arg(1) |
dougm
added a commit
to dougm/govmomi
that referenced
this issue
Oct 21, 2021
- add example of using library.export to generate options.json Fixes vmware#2599 Fixes vmware#2598
11 tasks
dougm
added a commit
to dougm/govmomi
that referenced
this issue
Oct 21, 2021
- add example of using library.export to generate options.json Fixes vmware#2599 Fixes vmware#2598
yuyin002
pushed a commit
to yuyin002/govmomi
that referenced
this issue
Jan 12, 2022
- add example of using library.export to generate options.json Fixes vmware#2599 Fixes vmware#2598
pradeep288
pushed a commit
to pradeep288/govmomi
that referenced
this issue
Jan 17, 2022
- add example of using library.export to generate options.json Fixes vmware#2599 Fixes vmware#2598
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Deploy OVF in content library using library.deploy, but the config in ova spec file does not work as expected. The following fields are not working:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect the VM to be deployed with powered on, with the OVA property "connectionString" to be set.
Affected version
0.26.1, Mac
Screenshots/Debug Output
Actually, the VM is deployed, and NOT powered on automatically, and the property is NOT set as expected.
The text was updated successfully, but these errors were encountered: