Passing Ctrl-Alt to app in Windows VM

Discussions related to using VirtualBox on Mac OS X hosts.

Passing Ctrl-Alt to app in Windows VM

Postby jnojr » 21. Jul 2015, 21:01

My physical host is a Mac. In it, I have a VM running Windows 7. In that VM, I'm using the VMware vSphere client. When vSphere captures the cursor, I can't figure out how to let it go. I'm not trying to get my VM to release the cursor, it's the app inside of the VM.

Help! :-)
jnojr
 
Posts: 28
Joined: 5. Jul 2013, 20:25
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: CentOS 6.5

Re: Passing Ctrl-Alt to app in Windows VM

Postby mpack » 22. Jul 2015, 09:57

Nested VMs are not supported.

If the nested VM requires a crazy key combination - chosen because it will usually be ignored by other host software - then of course VirtualBox ignores it too. The only way you could pass those keys would be with a VBoxManage script on the host.
mpack
Site Moderator
 
Posts: 29944
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Passing Ctrl-Alt to app in Windows VM

Postby Martin » 22. Jul 2015, 11:22

That is not nested VMs.
It is just the VMware Client running in a Windows VM.
Ctrl-Alt releases the mouse/keyboard capture from the VMware Console, like pressing the host key does for Virtualbox. And I don't think that is a "crazy key combination"...

What is your host key, and did you try it with the left or with the right keys?
Martin
Volunteer
 
Posts: 2254
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: Passing Ctrl-Alt to app in Windows VM

Postby mpack » 22. Jul 2015, 11:58

I think you are reading far more into a turn of phrase than is actually there. Does "unusual key combination" work better for you?

The point is that the combination must be unusual otherwise you may rob the host of functionality. Ctrl+Alt are usually regarded as modifiers, not keystrokes in themselves, nor are they treated specially by VirtualBox. I don't know at what point an OS X host will send a keystroke signal to the VirtualBox host process, but obviously VBox can't translate and transmit the signal to the VM before that happens, so certainly no app running inside the VM can see the translated keystroke.
mpack
Site Moderator
 
Posts: 29944
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Passing Ctrl-Alt to app in Windows VM

Postby loukingjr » 22. Jul 2015, 12:08

FWIW, I brought up the On Screen Keyboard in my Windows 7 guest and it does recognize the Ctrl and Alt keys being pressed.

I guess this might help: VB 5.0 - OSX 10.11 < shouldn't matter, OSX 10.10 should be the same.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8827
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run

Re: Passing Ctrl-Alt to app in Windows VM

Postby Martin » 22. Jul 2015, 12:35

mpack wrote:The point is that the combination must be unusual otherwise you may rob the host of functionality. Ctrl+Alt are usually regarded as modifiers, not keystrokes in themselves, nor are they treated specially by VirtualBox. I don't know at what point an OS X host will send a keystroke signal to the VirtualBox host process, but obviously VBox can't translate and transmit the signal to the VM before that happens, so certainly no app running inside the VM can see the translated keystroke.

Vbox definitely sends "modifier key presses" directly to the guest, otherwise you wouldn't be able for example to show the window menus in Explorer or Firefox by pressing the Alt key.
Martin
Volunteer
 
Posts: 2254
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Linux, OS/2

Re: Passing Ctrl-Alt to app in Windows VM

Postby mpack » 22. Jul 2015, 12:39

Martin wrote:Vbox definitely sends "modifier key presses" directly to the guest, otherwise you wouldn't be able for example to show the window menus in Explorer or Firefox by pressing the Alt key.

Good point.
mpack
Site Moderator
 
Posts: 29944
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Passing Ctrl-Alt to app in Windows VM

Postby loukingjr » 22. Jul 2015, 12:40

The default "Host" key for OSX hosts is the left Command key btw.

edit: I would think since the Host key gives control of the cursor back to the host it should work.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
loukingjr
Volunteer
 
Posts: 8827
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: just about all that run


Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: Google [Bot] and 17 guests