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

Pass boot command to iao booted vm #1224

Closed
guillermo-menjivar opened this issue Sep 5, 2018 · 6 comments
Closed

Pass boot command to iao booted vm #1224

guillermo-menjivar opened this issue Sep 5, 2018 · 6 comments

Comments

@guillermo-menjivar
Copy link

I am not sure if this is the right place for this- but here we go.
I am dealing with an iso appliance that does not have a timeout on the boot menu. I leverage govc to build and mount the iso and even boot. But the problem is that the iso does not move forward until the enter key is pressed. In addition the iso brings a "performance" image that we sometimes use. I wanted to know if govc allows me to pass "up/down/enter" control keys.

@dougm
Copy link
Member

dougm commented Sep 5, 2018

govc doesn't support this, but we could consider adding it if we find the right API. For example, the generated govmomi bindings include the PutUsbScanCodes() method:
https://www.virtuallyghetto.com/2017/09/automating-vm-keystrokes-using-the-vsphere-api-powercli.html

That requires 6.5, what version are you using? Could you look for other options and include any summary + links here?

@guillermo-menjivar
Copy link
Author

guillermo-menjivar commented Sep 5, 2018

ya I am using 6.5. Ya I can def add links to what I find thanks @dougm

@guillermo-menjivar
Copy link
Author

Also thanks for the link

@guillermo-menjivar
Copy link
Author

guillermo-menjivar commented Sep 5, 2018

cool looks like this project is using it and actually referencing the same post you mentioned https://github.com/jetbrains-infra/packer-builder-vsphere/blob/8754ddc709902e2f9575cc8e6f213542eda44ff8/driver/vm_keyboard.go#L52
no ?

@dougm
Copy link
Member

dougm commented Sep 6, 2018

Nice, that looks like exactly what we'd need. I wonder if @mkuzmin would be interested in contributing the TypeOnKeyboard method to govmomi? Or ok with us integrating?

@dougm dougm added this to the 2018.12 milestone Nov 29, 2018
@dougm
Copy link
Member

dougm commented Nov 29, 2018

Fixed by #1322

@dougm dougm closed this as completed Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants