Opened 17 years ago

Closed 16 years ago

#722 closed defect (fixed)

VBoxVRDP unnecessarily connects to an X server on Linux

Reported by: Robert Bordelon Owned by:
Component: other Version: VirtualBox 1.5.0
Keywords: VBoxVRDP Cc:
Guest type: other Host type: other


When starting headless sessions, VBoxVRDP apparently connects to the X server if possible, even though it does not actually use it (since that's the whole point of having a headless session.)

This behavior causes any headless sessions started from a graphical environment (i.e. one which has a valid DISPLAY environment variable) to be termimated (and marked "aborted") if the X server is shut down -- for instance if the user logs out. This problem is present whether VBoxVRDP is started directly or via "VBoxManage startvm <Session> -type vrdp".

Here is a log snippet of such a session:

VirtualBox VRDP Headless Interface 1.5.0
(C) 2005-2007 innotek GmbH
All rights reserved

Listening on port 3393

<X server is shut down>

X connection to hostbox:0.0 broken (explicit kill or server shutdown).

This problem can be worked around by unsetting the DISPLAY environment variable before starting headless sessions, or by starting from an non-graphical session, but I believe a more roubust solution would be to have VBoxVRDP not connect to the X server in the first place since such a connection is not needed.

Change History (3)

comment:1 by Michael Thayer, 17 years ago

Is that guest using the shared clipboard? And if so, does deactivating it make a difference?

in reply to:  1 comment:2 by Robert Bordelon, 17 years ago

Replying to michael:

Is that guest using the shared clipboard? And if so, does deactivating it make a difference?

The guest session was indeed using the shared clipboard. Deactivating it did fix this problem.

How could a shared clipboard work in a headless session anyway?

comment:3 by Sander van Leeuwen, 16 years ago

Resolution: fixed
Status: newclosed

This is fixed in 1.5.2.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use