1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="additions-linux-graphics-mouse">
|
---|
4 | <title>Graphics and Mouse Integration</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>
|
---|
8 | In Linux and Oracle Solaris guests, <ph conkeyref="vbox-conkeyref-phrases/product-name"/> graphics
|
---|
9 | and mouse integration goes through the X Window System.
|
---|
10 | <ph conkeyref="vbox-conkeyref-phrases/product-name"/> can use the X.Org variant of the system, or
|
---|
11 | XFree86 version 4.3 which is identical to the first X.Org
|
---|
12 | release. During the installation process, the X.Org display
|
---|
13 | server will be set up to use the graphics and mouse drivers
|
---|
14 | which come with the Guest Additions.
|
---|
15 | </p>
|
---|
16 | <p>
|
---|
17 | After installing the Guest Additions into a fresh installation
|
---|
18 | of a supported Linux distribution or Oracle Solaris system,
|
---|
19 | many unsupported systems will work correctly too, the guest's
|
---|
20 | graphics mode will change to fit the size of the
|
---|
21 | <ph conkeyref="vbox-conkeyref-phrases/product-name"/> window on the host when it is resized. You can
|
---|
22 | also ask the guest system to switch to a particular resolution
|
---|
23 | by sending a video mode hint using the
|
---|
24 | <userinput>VBoxManage</userinput> tool.
|
---|
25 | </p>
|
---|
26 | <p>
|
---|
27 | Multiple guest monitors are supported in guests using the
|
---|
28 | X.Org server version 1.3, which is part of release 7.3 of the
|
---|
29 | X Window System version 11, or a later version. The layout of
|
---|
30 | the guest screens can be adjusted as needed using the tools
|
---|
31 | which come with the guest operating system.
|
---|
32 | </p>
|
---|
33 | <p> If you want to understand more about the details of how the X.Org drivers are set up, in
|
---|
34 | particular if you want to use them in a setting which our installer does not handle correctly,
|
---|
35 | see <xref href="guestxorgsetup.dita">Guest Graphics and Mouse Driver Setup in Depth</xref>. </p>
|
---|
36 | <p>
|
---|
37 | Starting from <ph conkeyref="vbox-conkeyref-phrases/product-name"/> 7, Linux guest screen resize
|
---|
38 | functionality for guests running VMSVGA graphics configuration
|
---|
39 | has been changed. Since then, this functionality consists of a
|
---|
40 | standalone daemon called VBoxDRMClient and its Desktop
|
---|
41 | Environment helper counterpart.
|
---|
42 | </p>
|
---|
43 | <p>
|
---|
44 | VBoxDRMClient runs as a root process and is a bridge between
|
---|
45 | the host and the guest's vmwgfx driver. This means that
|
---|
46 | VBoxDRMClient listens to screen resize hints from the host and
|
---|
47 | forwards them to the vmwgfx driver. This enables guest screen
|
---|
48 | resize functionality to be available before the user has
|
---|
49 | performed a graphical login.
|
---|
50 | </p>
|
---|
51 | <p>
|
---|
52 | In order to perform Desktop Environment specific actions, such
|
---|
53 | as setting the primary screen in a multimonitor setup, a
|
---|
54 | Desktop Environment helper is used. Once the user has
|
---|
55 | performed a graphical login operation, the helper daemon
|
---|
56 | starts with user session scope and attempts to connect to
|
---|
57 | VBoxDRMClient using an IPC connection. When VBoxDRMClient has
|
---|
58 | received a corresponding command from the host, it is
|
---|
59 | forwarded to the helper daemon over IPC and the action is then
|
---|
60 | performed.
|
---|
61 | </p>
|
---|
62 | <p>
|
---|
63 | By default, VBoxDRMClient allows any process to connect to its
|
---|
64 | IPC socket. This can be restricted by using the following
|
---|
65 | steps:
|
---|
66 | </p>
|
---|
67 | <ol>
|
---|
68 | <li>
|
---|
69 | <p>
|
---|
70 | The Guest Additions Linux installer creates a
|
---|
71 | <codeph>vboxdrmipc</codeph> user group. A corresponding
|
---|
72 | user needs to be added to this group.
|
---|
73 | </p>
|
---|
74 | </li>
|
---|
75 | <li>
|
---|
76 | <p>
|
---|
77 | You must set the <codeph>DRMIpcRestricted</codeph> guest
|
---|
78 | property, as follows:
|
---|
79 | </p>
|
---|
80 | <pre xml:space="preserve">VBoxManage guestproperty set "VM name" /VirtualBox/GuestAdd/DRMIpcRestricted 1 \
|
---|
81 | --flags RDONLYGUEST</pre>
|
---|
82 | <p>
|
---|
83 | It is important to set only the RDONLYGUEST flag for the
|
---|
84 | property, so that it cannot be changed from inside the
|
---|
85 | guest.
|
---|
86 | </p>
|
---|
87 | </li>
|
---|
88 | </ol>
|
---|
89 | <note>
|
---|
90 | <p>
|
---|
91 | Both steps are required. If one of them is missing, all
|
---|
92 | processes will have access to the IPC socket.
|
---|
93 | </p>
|
---|
94 | </note>
|
---|
95 | <p>
|
---|
96 | Restricted mode can be disabled by unsetting the guest
|
---|
97 | property, as follows:
|
---|
98 | </p>
|
---|
99 | <pre xml:space="preserve">VBoxManage guestproperty unset "VM name" /VirtualBox/GuestAdd/DRMIpcRestricted</pre>
|
---|
100 | </body>
|
---|
101 |
|
---|
102 | </topic>
|
---|