-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
ctrl-tab not sent during boot_command #4290
Comments
Please supply a full template and log. Also it would be great if you can retry with 0.12.1, released yesterday. Please supply the information requested in the issue template: |
Updated the gist. Platform details:
|
interesting. the proper scan code list for virtualbox is at http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html according to the source code https://github.com/mitchellh/packer/blob/master/builder/virtualbox/common/step_type_boot_command.go#L109 and to me it looks like it's correct. I verified on ubuntu with I wonder if adding a |
Already tried with the additional wait, did not help.
…On Sat 17 Dec 2016, 02:07 Matthew Hooker ***@***.***> wrote:
interesting. the proper scan code list for virtualbox is at
http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html according to the
source code
https://github.com/mitchellh/packer/blob/master/builder/virtualbox/common/step_type_boot_command.go#L109
and to me it looks like it's correct. I verified on ubuntu with showkey
<https://linux.die.net/man/1/showkey>.
I wonder if adding a <wait> in between key ctrlOn and tab would help.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4290 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHSjvvymsrfkHQyui78Eb2SwFs98He9wks5rIzXngaJpZM4LPF6x>
.
|
@mwhooker the scancodes that are passed are indeed correct but it seems the OS does not react to Not 100% sure about this though, it should be tested. |
merged in something with might fix this if you care to try (#4247) Otherwise I think the best next step is to test your theory and add a new
in |
@mwhooker just tested with latest Go code and am now getting the below error. Command used: boot_command:
log output:
|
What's your version of VirtualBox? |
@aairey @rickard-von-essen I'm seeing this error too. I've tried installing various versions of Virtualbox but it makes no difference. Virtualbox versions: |
My boot command looks like this:
Looking at the console it seems to be able to type the boot command up to |
@DanHam That seems like a different issue, as I understand it this is specific for |
@rickard-von-essen Sorry. To clarify, I'm seeing the same error as @aairey with the latest version of the Go code. In other words that error appears to be a general problem with any boot command rather than being specific to a boot command that includes From my log output:
Clearly my boot command is different to @aairey 's but I'm seeing the same error and have seen it with the Virtualbox versions mentioned above |
@DanHam Yes it is a different issue that I am now stumbling upon and that you are getting. @rickard-von-essen I'm on virtualbox 5.1.10 r112026 |
@aairey Right. That was my suspicion too. It looks as though I should have opened a new issue... I had (incorrectly?) assumed those changes were made to try and fix the problem you were having. |
@aairey @rickard-von-essen I've just reverted the changes made to builder/virtualbox/common/step_type_boot_command.go in #4305 and tested successfully. So there is some issue with the new code that PR introduced. These changes are very recent - is it possible work is still in progress? |
@DanHam Can you open a new issue. |
@rickard-von-essen Done. Please feel free to delete my comments in this issue if it helps. @aairey Apologies if I've muddied the waters... |
I can't really debug this kiosk product. If you want help it would be easier if I could have the minimum json to reproduce, a clear explanation of what the expected behavior is and what the actual behavior is, and a way to debug. according to the faq, a number of hoops must be jumped through to get to the terminal: http://porteus-kiosk.org/faq.html If you can provide a json that allows me to see the error and step into the terminal so I can investigate, I might be able to provide more help. I ran the provided json (however the given version of the iso doesn't seem to exist any more), and as far as I could tell it worked, so I need more info about where it's breaking |
I will try with a newer version and get back to you.
Altough indeed a terminal was not possible in that previous version, so I
expect the same with the current version.
There is only a text wizard, hence the need for ctrl-tab to exit a text box
and jump to the buttons below it.
Maybe some alt key combo might work too, but I think I tried that already
...
Anyway, will get back to it soon.
…On Thu 12 Jan 2017, 22:38 Matthew Hooker ***@***.***> wrote:
I can't really debug this kiosk product.
If you want help it would be easier if I could have the minimum json to
reproduce, a clear explanation of what the expected behavior is and what
the actual behavior is, and a way to debug.
according to the faq, a number of hoops must be jumped through to get to
the terminal: http://porteus-kiosk.org/faq.html
If you can provide a json that allows me to see the error and step into
the terminal so I can investigate, I might be able to provide more help.
I ran the provided json (however the given version of the iso doesn't seem
to exist any more), and as far as I could tell it worked, so I need more
info about where it's breaking
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4290 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHSjvgEk4b7r7kpUjNCATfML03anALzAks5rRp1agaJpZM4LPF6x>
.
|
It seems with the latest version, it is working as intended. The keycodes are passed along using |
I am trying to send a ctrl-tab as a boot_command, but cannot get it to work.
I opened an issue about this before (#3028) and thought it would be fixed after PR #3767.
However I don't think the correct scancode is sent.
I need it to ctrl-tab out of a text field in an install wizard.
IMHO, the scancode that should be sent is
94
, from this scancodes list.Maybe an extra 'key' will have to be created in packer that just sends this scancode.
Actually it would be nice to send an arbitrary scancode, if at all possible.
More details in this gist.
Environment:
virtualbox-iso
The text was updated successfully, but these errors were encountered: