About keyboard
-
demonstrate
- Posts: 5
- Joined: 26. Nov 2009, 13:26
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Windows XP
About keyboard
Hi, I am not sure it is proper to post my problem here. If not, could you please tell me where to ask. I will be truly grateful.
I am using virtualbox for MS Windows. I can find a keyboard device in the guest OS with some drivers installed. So when I am typing some characters in the guest OS, it is virtualbox that captures my keyboard behaviors and translate those keystrokes for the virtual machine. But is the translated key strokes sent to the applications in Windows via the keyboard driver?
I am using one of the notorious net banks. It installs a proprietary ActiveX component to the IE in Windows. When my password is typed, it rejected to log in, saying that the input is not from local keyboard. I have searched the web and found out that It will even check whether the input is from local keyboard (PS or USB) or soft-keyboards. I am not sure it can discover it is running in a virtual machine though. But I think it is not that advanced. There is a saying that VMware users may cheat the ActiveX component into believing the input is from a true keyboard. Then I am a little curious why virtualbox can't make it.
My first guess is that maybe virtualbox isn't translating the key strokes from host to the keyboard driver Windows is using. Instead, it may send the key via something like RDP. But I don't know how to verify this. Would someone who knows about it or where to find the fact kindly tell me? It will be highly appreciated!
If my guess holds, is it possible to adjust the key sending procedure?
Many thanks!
I am using virtualbox for MS Windows. I can find a keyboard device in the guest OS with some drivers installed. So when I am typing some characters in the guest OS, it is virtualbox that captures my keyboard behaviors and translate those keystrokes for the virtual machine. But is the translated key strokes sent to the applications in Windows via the keyboard driver?
I am using one of the notorious net banks. It installs a proprietary ActiveX component to the IE in Windows. When my password is typed, it rejected to log in, saying that the input is not from local keyboard. I have searched the web and found out that It will even check whether the input is from local keyboard (PS or USB) or soft-keyboards. I am not sure it can discover it is running in a virtual machine though. But I think it is not that advanced. There is a saying that VMware users may cheat the ActiveX component into believing the input is from a true keyboard. Then I am a little curious why virtualbox can't make it.
My first guess is that maybe virtualbox isn't translating the key strokes from host to the keyboard driver Windows is using. Instead, it may send the key via something like RDP. But I don't know how to verify this. Would someone who knows about it or where to find the fact kindly tell me? It will be highly appreciated!
If my guess holds, is it possible to adjust the key sending procedure?
Many thanks!
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: About keyboard
It would have helped a great deal if you could tell us WHICH combinations you're having problems with. Also note if you changed the keyboard driver from the default and if the layout is that of your actual keyboard/Host setting.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
demonstrate
- Posts: 5
- Joined: 26. Nov 2009, 13:26
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Windows XP
Re: About keyboard
I am using Debian sid + experimental as the host. The virtualbox is open-source edition 3.0.10.Sasquatch wrote:It would have helped a great deal if you could tell us WHICH combinations you're having problems with. Also note if you changed the keyboard driver from the default and if the layout is that of your actual keyboard/Host setting.
The guest OS is Windows XP professional, installed in virtualbox with only updates from Microsoft and no modification to hardware drivers.
The ActiveX component is installed on the guest (namely XP with IE 6). The problem is that this component (for logging into that net bank) rejects my password, saying it is not from local keyboard (namely the local keyboard of the virtual machine, I guess).
Is this information that you need? If you need more, please feel free to tell me.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: About keyboard
Still have to repeat myself, and I really hate that.
WHICH keyboard shortcuts are not working!?
If you have a USB keyboard, install the PUEL version and pass the keyboard to the VM through USB. That's also an option.
WHICH keyboard shortcuts are not working!?
If you have a USB keyboard, install the PUEL version and pass the keyboard to the VM through USB. That's also an option.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
demonstrate
- Posts: 5
- Joined: 26. Nov 2009, 13:26
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Windows XP
Re: About keyboard
It is not SHORTCUTS that I am talking about.
I am saying this again. Hope I have made it clear.
I want to log into my netbank. It asks for my password. Usually there is a text box. I type mine there. There are asterisks in the text box. I think you must have seen a similar condition when you log into this forum.
But the netbank writes their own ActiveX component for "security". This ActiveX component has a text box for the password but it also detects the source of the keyboard strokes. E.g. if I am using some soft-keyboards provided by Microsoft, it won't let me log in.
It has nothing to do with SHORTCUTS, e.g. Ctrl-Alt-Delete.
Thanks!
I am saying this again. Hope I have made it clear.
I want to log into my netbank. It asks for my password. Usually there is a text box. I type mine there. There are asterisks in the text box. I think you must have seen a similar condition when you log into this forum.
But the netbank writes their own ActiveX component for "security". This ActiveX component has a text box for the password but it also detects the source of the keyboard strokes. E.g. if I am using some soft-keyboards provided by Microsoft, it won't let me log in.
It has nothing to do with SHORTCUTS, e.g. Ctrl-Alt-Delete.
Thanks!
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: About keyboard
You're the first to mention this. All VB does is send the event that's from the Host keyboard to the Guest. So if your key would send the code 0x85, that would be send to the Guest. The Guest then translates that code with it's layout mapping for the corresponding character. E.g. you have the Host set to US International, but the Guest to British, pressing Shift+3 would usually correspond to #, but the Guest would make it to the British Pound.
I gave you possible solution, take it or leave it. I don't see a reason why you don't have a real keyboard in the VM by default.
I gave you possible solution, take it or leave it. I don't see a reason why you don't have a real keyboard in the VM by default.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
demonstrate
- Posts: 5
- Joined: 26. Nov 2009, 13:26
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Windows XP
Re: About keyboard
BTW in previous tests done by other users of the netbank, they found if you run a native Windows XP with a PS/2 keyboard and another USB keyboards to the PC, the ActiveX component only recognizes the input from the PS/2 keyboard.
-
Sasquatch
- Volunteer
- Posts: 17798
- Joined: 17. Mar 2008, 13:41
- Primary OS: Debian other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Windows 7, Linux
- Location: /dev/random
Re: About keyboard
Then that plugin is messed up pretty bad. Some systems don't even have PS/2 connectors. The keyboard in VB is 'connected' through PS/2, because in the PUEL version you can enable USB, and the OSE doesn't even have USB.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org
Retired from this Forum since OSSO introduction.
-
demonstrate
- Posts: 5
- Joined: 26. Nov 2009, 13:26
- Primary OS: Debian other
- VBox Version: OSE Debian
- Guest OSses: Windows XP
Re: About keyboard
Well... I am 100% sure the layout does not matter here. Hope my example sheds some light on what this ActiveX component does.Sasquatch wrote:You're the first to mention this. All VB does is send the event that's from the Host keyboard to the Guest. So if your key would send the code 0x85, that would be send to the Guest. The Guest then translates that code with it's layout mapping for the corresponding character. E.g. you have the Host set to US International, but the Guest to British, pressing Shift+3 would usually correspond to #, but the Guest would make it to the British Pound.
I gave you possible solution, take it or leave it. I don't see a reason why you don't have a real keyboard in the VM by default.
If the layout really matters, the password I type there is probably wrong. Then it might be more reasonable for the server from the bank to respond to me with a "wrong password". However, the password is not even sent. The ActiveX component somewhat recognizes that my typing is not from the local keyboard of the Windows XP.
Thanks for your previous advice on PUEL edition. I am trying to add another keyboard to the VM. But I am not quite optimistic about it either.
-
MarkCranness
- Volunteer
- Posts: 875
- Joined: 10. Oct 2009, 06:27
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP
Re: About keyboard
Based on looking at the OSE version source code, I think VirtualBox emulates a PS/2 i8042 controller for the keyboard, and creates virtual interrupts and virtual hardware port changes for keystrokes sent.demonstrate wrote:So when I am typing some characters in the guest OS, it is virtualbox that captures my keyboard behaviors and translate those keystrokes for the virtual machine. But is the translated key strokes sent to the applications in Windows via the keyboard driver?
So as far as the guest is concerned there is a real live keyboard behind a real live hardware controller.
On my guest, Device Manager shows standard MS drivers for the keyboard device:
i8042prt.sys - Provider: Microsoft Corporation
kdbclass.sys - Provider: Microsoft Corporation
Re. Your comment about that ActiveX and USB keyboards: What happens if you boot the VM with USB disabled in the VirtualBox settings?
Perhaps keyboard input happens differently when the Guest Additions are not installed? Perhaps try un-installing the Guest Additions and seeing what happens then? (If it is acceptable to run that VM without Guest Additions)
(Certainly mouse input is different when GA is installed: it uses a mouse filter driver (installed somehow), but I can't see any evidence that keyboard input would be different.)
Of no relevance at all: I note that the Guest Additions for OSE does have its own i8042prt.sys file, used for a Windows NT4 mouse driver.
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: About keyboard
Have you tried simply opening up a text editor inside the guest and typing in the password in plain text? That will tell you if the layout matches the keyboard, and you are typing what you think you are.demonstrate wrote:If the layout really matters, the password I type there is probably wrong
-
lyon
- Posts: 1
- Joined: 4. Oct 2009, 12:32
- Primary OS: Linux other
- VBox Version: OSE Fedora
- Guest OSses: xp
Re: About keyboard
Hi All,
I am having the same problem.
Xwindows is presenting VirtualBox, but keyboard events are not
passed into ANY application (mouse events are working OK).
I have tried many different apps, and none of them are responding to
keyboard events.
I am running x-windows on my mac (and this works fine).
Virtualbox is running under fedora 12 alpha.
Ciao,
- DL
I am having the same problem.
Xwindows is presenting VirtualBox, but keyboard events are not
passed into ANY application (mouse events are working OK).
I have tried many different apps, and none of them are responding to
keyboard events.
I am running x-windows on my mac (and this works fine).
Virtualbox is running under fedora 12 alpha.
Ciao,
- DL
-
MarkCranness
- Volunteer
- Posts: 875
- Joined: 10. Oct 2009, 06:27
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP
Re: About keyboard
@lyon: Is this a recent P2V or V2V conversion? If so, then try using Device Manager to delete all keyboard devices and reboot the guest. 'My Computer' on the desktop>Right-click>Manage>Device Manager>Keyboards>(Select all keyboards under tree)>Right-click>Uninstall>repeat and reboot.
Try re-installing the Guest Additions? (section 4 of the user manual).
Try re-installing the Guest Additions? (section 4 of the user manual).