-
Notifications
You must be signed in to change notification settings - Fork 916
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
Create vApp config with OVF Environment transport? #574
Comments
I'll have to look into the transport option, didn't realize there was an option aside from guestinfo. Have you tried using guestinfo for injecting metadata? vApp is not required in that case. For example: View:
Update:
You'll see the value here now:
And read from within the guest:
You can also use rpctool to read the guestinfo injected by an ovf. If you were looking at using an iso to avoid the tools/rpctool requirement, it is possible to read that data using Go too: https://github.com/vmware/vic/tree/master/cmd/rpctool |
No, I haven't tried guestinfo. I have the VMWare Tools installed in the guest, but I had no command line tools available. I guess that's a separate package. I can try that. You got me excited about the Go-based rpctool but I followed it down to find its magic and ended up at https://github.com/vmware/vmw-guestinfo/blob/master/bridge/bridge.go and was a little sad to see the In any case, feel free to close this bug report if it's misguided. I'll research guestinfo and rpc calls more. Thanks! |
rpctool should be included, but may not end up in your PATH, for example:
The go version currently requires cgo for asm. I had started to look at porting to go asm a while back, first with this: https://github.com/sigma/bdoor/blob/master/check.go#L26-L32
But if we can get the asm there and in bridge/backdoor_amd64.c ported to go asm, it would be possible to port the remaining message.c to Go. Any doc is in the source code there and vmware/open-vm-tools from which it is derived. I am planning to look at this again as we want to avoid cgo in vmware/vic too. So, happy to spend more time on this esp. if you can help with the go asm bits. In the meantime, another option, generate / upload / attach an iso yourself:
Also have a floppy example using pure Go to generate the floppy (via github.com/mitchellh/go-fs/fat), would just need to dig it out of some internal code. |
Following up for the go rpc tool part; https://github.com/vmware/vmw-guestinfo is now pure go and Apache 2.0 licensed thanks to @fdawg4l |
This issue is stale because it has been open for 90 days with no |
If I create a VM using the web UI, I'm able to enable the vApp Config option "OVF Environment", with the ISO transport, making the VM have access to metadata from the host on a fake CD-ROM.
govc vm.info -json
on such a VM shows:I'm not seeing a way to enable that option using
govc
, or at least not seeing anything that would make that API call. I see only the auto-generated code:I see other bugs open about OVF but they appear to be unrelated, if I understand them correctly.
Or maybe I should be writing a OVA/OFV file and using
import.ova
/import.ovf
subcommands instead?I was looking for something in
govc vm.change
.Thanks!
The text was updated successfully, but these errors were encountered: