What is XVFB service?
Michael Gray
Updated on April 05, 2026
Xvfb (short for X virtual framebuffer) is an in-memory display server for UNIX-like operating system (e.g., Linux). It enables you to run graphical applications without a display (e.g., browser tests on a CI server) while also having the ability to take screenshots.
How do I start XVFB service?
controlling the services
- Set the service to auto-start on bootstrap with systemctl enable [email protected]:99.
- Unset auto-starting the service with systemctl disable [email protected]:99.
- Start the service manually with systemctl start [email protected]:99.
- Stop the service manually with systemctl stop [email protected]:99.
What does XVFB run do?
How do I know if Xvfb is running?
Optional: Verify that XVFB is running:
- Run the following command, where sysname is the system name, and n is the display number that you are checking: /usr/lpp/X11/Xamples/bin/xprop -display sysname:n -root | grep VFB.
- If XVFB is running, you will see the following string: XVFB_SCREEN(STRING) = “TRUE” .
How do I know if Xvfb is installed?
Determine whether Xvfb is installed:
- Execute the following command in a command shell: $ which Xvfb. If a path to Xvfb appears, Xvfb is already installed. Alternatively, Xvfb is not installed.
- If Xvfb is already installed, skip to step 3.
How do I install XVFB?
Install Xvfb:
- Enter the following command to initiate the installation: $ sudo yum install Xvfb. A password prompt might appear.
- If a password prompt appears, enter the password for the privileged user account on the application server. A confirmation prompt appears.
- Enter Y, and press Enter.
What is Xvfb in Jenkins?
What is it? Lets you control Xvfb virtual frame buffer X11 server with each build. It starts Xvfb before the build starts, and stops it with the build. This is very useful if your build requires X11 access, for instance runs tests that require GUI.
What is Xdpyinfo?
xdpyinfo is a utility for displaying information about an X server. It is used to examine the capabilities of a server, the predefined values for various parameters used in communicating between clients and the server, and the different types of screens, visuals, and X11 protocol extensions that are available.
How do you test if XVFB is working?
What is Xvfb used for?
Xvfb (short for X virtual framebuffer) is an in-memory display server for UNIX-like operating system (e.g., Linux). It enables you to run graphical applications without a display (e.g., browser tests on a CI server) while also having the ability to take screenshots.
How do I start and stop Xvfb?
Use xvfb-run to launch the tests (no display port declaration necessary) NOTE: This approach will start and stop Xvfb for you. In setup we are creating an instance of the headless library and issuing a .start command (which starts Xvfb). In teardown we stop Xvfb by with the .destroy after closing the browser with @driver.quit.
How do I run Xvfb on a specific display port?
Start Xvfb on a specific display port and background the process Tell the terminal session to use the display port NOTE: This approach will keep Xvfb running in the background until the process is killed. Use xvfb-run to launch the tests (no display port declaration necessary)
How do I install Xvfb on Linux?
Before we can use Xvfb, we need to install it (along with the browser we want if it’s not already loaded). In Linux we need to find the relevant package names for the package manager and install them (e.g., apt-get install xvfb firefox for Debian based systems like Ubuntu, yum install Xvfb firefox for RedHat based systems, etc.).