Passing Ctrl-Alt to app in Windows VM

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
jnojr
Posts: 28
Joined: 5. Jul 2013, 20:25
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: CentOS 6.5

Passing Ctrl-Alt to app in Windows VM

Post by jnojr »

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! :-)
mpack
Site Moderator
Posts: 39156
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

Post by mpack »

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.
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Passing Ctrl-Alt to app in Windows VM

Post by Martin »

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?
mpack
Site Moderator
Posts: 39156
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

Post by mpack »

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.
loukingjr
Volunteer
Posts: 8851
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

Post by loukingjr »

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.
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Passing Ctrl-Alt to app in Windows VM

Post by Martin »

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.
mpack
Site Moderator
Posts: 39156
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

Post by mpack »

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.
loukingjr
Volunteer
Posts: 8851
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

Post by loukingjr »

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.
Post Reply