I'm trying to set up a VM for view-only RDP access. To this end, I enabled RDP and set Client/DisableInput=1 as per http://www.virtualbox.org/manual/ch07.h ... tomization. When connecting with rdesktop it all works as intended. However, when connecting with Microsoft's RDP client (I tested mstsc on Windows 7 as well as the Mac version), the client forces its resolution upon the VM, which I do not want. Disabling auto-resize (cmd-G) doesn't help either.
I really expected that the DisableInput setting would cause VirtualBox to ignore any input which would alter the state of the VM, which includes resulation changes. Is there some other way to achieve this? Is it possible e.g. to force the VBoxVideo driver to a fixed resolution?
I'm runnning VirtualBox 4.0.12 on Mac OS X 10.5.8, the VM is running Ubuntu 10.04.3.
Prevent RDP clients changing screen resolution
-
Sebastian Flothow
- Posts: 5
- Joined: 29. Sep 2011, 15:34
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux (Ubuntu Lucid)
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Prevent RDP clients changing screen resolution
When using the RDP are you still reaching the guest via the host ip and port to the guest so the vRdp server is being used instead of the guests remote share?
-
Sebastian Flothow
- Posts: 5
- Joined: 29. Sep 2011, 15:34
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux (Ubuntu Lucid)
Re: Prevent RDP clients changing screen resolution
Yes, I'm connecting to the host. There is no screen sharing server running within the guest OS.
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Prevent RDP clients changing screen resolution
With Microsoft RDP client you set the screen resolution in the client RDP settings. It does not respect the settings in the target machine. It can be larger or smaller.
Bill
-
Sebastian Flothow
- Posts: 5
- Joined: 29. Sep 2011, 15:34
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux (Ubuntu Lucid)
Re: Prevent RDP clients changing screen resolution
Well, yes, that's the problem I stated above, and I need to change this. The idea here is to allow anonymous view-only access to a VM for everyone on the same LAN during a lecture, having clients change the resolution is not acceptable in this scenario.BillG wrote:With Microsoft RDP client you set the screen resolution in the client RDP settings. It does not respect the settings in the target machine.
I noticed that when switching the VM to a text console (ctrl-alt-F1), or during startup/shutdown, when it is running at a fixed low resolution, VirtualBox will simply pad the image it sends to RDP clients with black borders. So obviously VirtualBox does have code to handle the case where the actual resolution differs from the one a client requests, I just want this behavior to kick in as well when running X (instead of resizing the VM's screen).
-
Sebastian Flothow
- Posts: 5
- Joined: 29. Sep 2011, 15:34
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux (Ubuntu Lucid)
Re: Prevent RDP clients changing screen resolution
Looks like I found a solution (though I only tested with the Mac client so far, will try a Windows 7 client tonight) – I simply configured X manually, and listed only the resolution I want to use. Specifically, I ran Xorg -configure to create a default config file, and then changed the screen section as follows:
Code: Select all
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Modes "1024x768"
EndSubSection
EndSection-
Sebastian Flothow
- Posts: 5
- Joined: 29. Sep 2011, 15:34
- Primary OS: Mac OS X Leopard
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux (Ubuntu Lucid)
Re: Prevent RDP clients changing screen resolution
Connecting with the Windows 7 client now also works as I intended, connecting with two clients at the same time works as well. So the issue is solved for me, though of course this solution is linux-specific, and I still think the DisableInput attribute should cause VirtualBox to ignore resize requests (or perhaps there should be another attribute to control this).