1Section "Device" 2 Identifier "XSPICE" 3 Driver "spiceqxl" 4 5 # ---- Network and security options 6 7 # Do not require a client password. 8 # default: False 9 #Option "SpiceDisableTicketing" "False" 10 11 # Set the password required to connect to the Spice server. 12 #Option "SpicePassword" "" 13 14 # Enable usage of SASL supported by the spice-gtk client. Not required, 15 # default: False 16 #Option "SpiceSasl" "False" 17 18 # Use Spice's regular unencrypted port. One of SpicePort or SpiceTlsPort 19 # must be specified. SpicePort can also be set through the XSPICE_PORT 20 # environment variable or the --port Xspice option. 21 # Specify 0 to disable the use of the regular port 22 # default: 5900 23 #Option "SpicePort" "5900" 24 25 # Use a TLS (encrypted) port. One of SpicePort or SpiceTlsPort must be 26 # specified. SpiceTlsPort can also be set through the XSPICE_TLS_PORT 27 # environment variable or the --tls-port Xspice option. 28 #Option "SpiceTlsPort" "5900" 29 30 # Set the directory where the CA certificate, server key and server 31 # certificate are searched for TLS, using the same predefined names QEMU 32 # uses: 33 # cacert.pem, server-key.pem, server-cert.pem 34 #Option "SpiceX509Dir" "" 35 36 # Set the CA certificate file location for TLS. 37 #Option "SpiceCacertFile" "" 38 39 # Set the server key file location for TLS. 40 #Option "SpiceX509KeyFile" "" 41 42 # Set the server key's password for TLS. 43 #Option "SpiceX509KeyPassword" "" 44 45 # Set the server certificate file location for TLS. 46 #Option "SpiceX509CertFile" "" 47 48 # Set the server DH file location for TLS. 49 #Option "SpiceDhFile" "" 50 51 # Set the TLS ciphers preference order. 52 #Option "SpiceTlsCiphers" "" 53 54 # Listen to a specific interface. 55 # default: Listen to all (0.0.0.0). 56 #Option "SpiceAddr" "" 57 58 # Set to True to only listen on IPv4 interfaces. 59 # default: False 60 #Option "SpiceIPV4Only" "False" 61 62 # Set to True to only listen on IPv6 interfaces. 63 # default: False 64 #Option "SpiceIPV6Only" "False" 65 66 # If set, the Spice server will exit when the first client disconnects. 67 # default: False 68 #Option "SpiceExitOnDisconnect" "True" 69 70 71 # ---- Monitor configuration options 72 73 # The number of heads to allocate by default. 74 # default: 4 75 #Option "NumHeads" "4" 76 77 78 # ---- Compression options 79 80 # Set zlib glz wan compression. Options are auto, never, always. 81 # default: auto 82 #Option "SpiceZlibGlzWanCompression" "" 83 84 # Set jpeg wan compression. Options are auto, never, always. 85 # default: auto 86 #Option "SpiceJpegWanCompression" "" 87 88 # Set image compression. Options are off, auto_glz, auto_lz, quic, glz, lz. 89 # default: auto_glz 90 #Option "SpiceImageCompression" "" 91 92 # If non zero, the driver will render all operations to the frame buffer, 93 # and keep track of a changed rectangle list. The changed rectangles 94 # will be transmitted at the rate requested (e.g. 10 frames per second). 95 # This can dramatically reduce network bandwidth for some use cases. 96 #Option "SpiceDeferredFPS" "10" 97 98 # Set the streaming video method. Options are filter, off, all. 99 # default: filter 100 #Option "SpiceStreamingVideo" "" 101 102 # Sets a semicolon-separated list of preferred video codecs. 103 # Each takes the form encoder:codec, with spice:mjpeg being the default, 104 # and other options being provided by gstreamer for the mjpeg, vp8 and h264 105 # codecs. 106 #Option "SpiceVideoCodecs" "" 107 108 # Enable caching of images directly written with uxa->put_image. 109 # default: True 110 #Option "EnableImageCache" "True" 111 112 # Enable caching of images created by uxa->prepare_access. 113 # default: True 114 #Option "EnableFallbackCache" "True" 115 116 # Enable the use of off-screen surfaces. 117 # default: True 118 #Option "EnableSurfaces" "True" 119 120 121 # ---- Xspice-specific buffer options 122 123 # Buffer Size notes: 124 # The following buffer sizes are used for Xspice only. 125 # If you are using the DFPS mode, surface ram is not used, 126 # and you can set it to 1. 127 # Otherwise, the surface buffer should be at least as large 128 # as the frame buffer, and probably a multiple like 8. 129 # The command buffer ram should also be substantially larger 130 # than the frame buffer, and note that the frame buffer occupies 131 # the front of the command buffer. Hence, our default size 132 # is a command buffer 7x the size of the frame buffer. 133 # If you see 'Out of memory' errors in your xorg.log, you probably need 134 # to increase the surface or command buffer sizes. 135 136 # The amount of surface buffer ram, in megabytes, to allocate. 137 # default: 128 138 #Option "SurfaceBufferSize" "128" 139 140 # The amount of command buffer ram, in megabytes, to allocate. 141 # default: 128 142 #Option "CommandBufferSize" "128" 143 144 # The amount of frame buffer ram, in megabytes, to reserve 145 # This is reserved out of the CommandBuffer RAM 146 # This governs the maximum size the X screen can be; 147 # 4 Heads at 1920x1080 require 32M of RAM 148 # default: 16 149 #Option "FrameBufferSize" "16" 150 151 152 # ---- VDAgent options 153 154 # Whether or not to accept Vdagent connections. 155 # default: False 156 #Option "SpiceVdagentEnabled" "False" 157 158 # Default path to listen for agent virtual io connections. 159 # default: /tmp/xspice-virtio" 160 #Option "SpiceVdagentVirtioPath" "/tmp/xspice-virtio" 161 162 # Default path to listen for agent uinput connections. 163 # default: /tmp/xspice-uinput 164 #Option "SpiceVdagentUinputPath" "/tmp/xspice-uinput" 165 166 # Default user id to set for the Virtio and Uinput sockets. 167 # Note: both uid and gid must be given for either to take effect. 168 # default: 0, or none 169 #Option "SpiceVdagentUid" "0" 170 171 # Default group id to set for the Virtio and Uinput sockets. 172 # Note: both uid and gid must be given for either to take effect. 173 # default: 0, or none 174 #Option "SpiceVdagentGid" "0" 175 176 # Set Spice Agent Mouse - Use Agent mouse if an agent connects. 177 # default: True 178 #Option "SpiceAgentMouse" "True" 179 180 # Set Spice Playback compression. 181 # default: True 182 #Option "SpicePlaybackCompression" "True" 183 184 # Disable copy and paste. 185 # default: False 186 #Option "SpiceDisableCopyPaste" "False" 187 188 # If a directory is given, any file in that directory will be read 189 # for audio data to be sent to the client. 190 # default: Not set. 191 #Option "SpicePlaybackFIFODir" "/tmp/" 192 193 # A unix domain name for a unix domain socket to communicate with 194 # a spiceccid smartcard driver. 195 # default: Not set. 196 #Option "SpiceSmartCardFile" "/tmp/spice.pcsc.comm" 197EndSection 198 199Section "InputDevice" 200 Identifier "XSPICE POINTER" 201 Driver "xspice pointer" 202EndSection 203 204Section "InputDevice" 205 Identifier "XSPICE KEYBOARD" 206 Driver "xspice keyboard" 207EndSection 208 209Section "Monitor" 210 Identifier "Configured Monitor" 211EndSection 212 213Section "Screen" 214 Identifier "XSPICE Screen" 215 Monitor "Configured Monitor" 216 Device "XSPICE" 217 DefaultDepth 24 218EndSection 219 220Section "ServerLayout" 221 Identifier "XSPICE Example" 222 Screen "XSPICE Screen" 223 InputDevice "XSPICE KEYBOARD" 224 InputDevice "XSPICE POINTER" 225EndSection 226 227# Prevent udev from loading vmmouse in a vm and crashing. 228Section "ServerFlags" 229 Option "AutoAddDevices" "False" 230EndSection 231