Enabling keyboard in VM locks Ubuntu host

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mbakerDPS
Posts: 13
Joined: 19. Aug 2013, 23:59

Enabling keyboard in VM locks Ubuntu host

Post by mbakerDPS »

All,

I usually enable my USB keyboard in my Win 7 VM, which disables it from my Ubuntu host.

Today, however, I left my computer alone long enough that the Ubuntu host locked up (as it usually does after 15min).

So...with the keyboard locked by the Win 7 VM, I couldn't type in my password to unlock my Ubuntu screen! I was screwed! I had to do a hard reboot...

Any thoughts on this issue?

Thanks!

-m
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Enabling keyboard in VM locks Ubuntu host

Post by Perryg »

Yes. Keyboards are a shared resource and you should never select to transfer the keyboard to the guest.
mbakerDPS
Posts: 13
Joined: 19. Aug 2013, 23:59

Re: Enabling keyboard in VM locks Ubuntu host

Post by mbakerDPS »

I don't know how to get the keyboard functioning correctly in the VM / guest without enabling it...any thoughts?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Enabling keyboard in VM locks Ubuntu host

Post by Perryg »

Post the guests log file (as an attachment)
See Online Users Manual for the location of the file.
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: Enabling keyboard in VM locks Ubuntu host

Post by mpack »

mbakerDPS wrote:I don't know how to get the keyboard functioning correctly in the VM / guest without enabling it...any thoughts?
If the keyboard is functioning in your host then by definition all host applications can use it, and VirtualBox is nothing special in this regard. OTOH, stealing ownership of the keyboard from the host which was already using it... is not likely to be a good idea if you want to continue using the host (and the VM can't run without the host).

Make sure that non of your VM USB filters can match the host keyboard. It's possible however that you'll have problems if your guest was installed to expect an actual USB keyboard instead of the virtual PS/2 keyboard that VMs normally use. We'll see how adaptable your guest is!
mbakerDPS
Posts: 13
Joined: 19. Aug 2013, 23:59

Re: Enabling keyboard in VM locks Ubuntu host

Post by mbakerDPS »

All,

Here is the most recent log file for my machine.

Some keyboard errors I'm getting in the VM:

- keyboard entry doesn't happen until I hit escape twice, then the keyboard is recognized and I can start typing (actually this is a problem in an Ubuntu VM as well...)
- the Window button (between CTRL and ALT) doesn't work, so opening a new windows explorer window is a pain (which I usually accomplish using Window+E)

Let me know if this helps!

Thank you all!

-m
Attachments
VBox.log
Log file for checking keyboard errors
(74.38 KiB) Downloaded 13 times
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: Enabling keyboard in VM locks Ubuntu host

Post by mpack »

I can't tell from that last message whether you've ignored or acted upon the suggestions already given.

If you're not attempting to grab ownership of the host keyboard, and your guest OS is configured to expect a PS/2 keyboard with the correct layout, then it should all work just like it does for the rest of us.

Incidentally, where did this Win7 guest come from? Did you install it from a setup DVD yourself?
mbakerDPS
Posts: 13
Joined: 19. Aug 2013, 23:59

Re: Enabling keyboard in VM locks Ubuntu host

Post by mbakerDPS »

I think you're referring to:
Make sure that non of your VM USB filters can match the host keyboard. It's possible however that you'll have problems if your guest was installed to expect an actual USB keyboard instead of the virtual PS/2 keyboard that VMs normally use. We'll see how adaptable your guest is!
I'm not really sure what to do there, to be honest.

The WIn 7 install came from a DVD our IT department uses for installs, and yes, I installed it myself...

Thank you!
Post Reply