How to Install the OpenVAS Greenbone Scanner: Pick Docker, Source or a VM, Then Run a First Scan

The usual way to install the OpenVAS scanner is as Greenbone Community Edition, using the Docker Compose containers in Greenbone’s container guide, on a host with at least 2 CPU cores, 4 GB of RAM and 20 GB of free storage. A source build of the scanner stack (the project’s INSTALL.md names its reference system) and a prepared virtual machine are the alternatives. Two details catch first-time installers: the built-in login is admin with the password admin until you change it, and the web interface listens on 127.0.0.1 only, so a remote server shows nothing from outside. On naming, “OpenVAS” is the scanner engine inside Greenbone Community Edition, and Greenbone’s documents page, checked on November 13, 2026, lists OPENVAS SCAN manuals for 25.0, 24.10 and 22.04 next to an OPENVAS COMMUNITY EDITION manual. This guide follows the Community Edition.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Docker containers, a scanner-only source build or a prepared VM

Choose the route before typing a command, because a wrong choice means a rebuild. Docker suits most readers: Greenbone supplies the services as container images and a ready Compose file, so there is no compiler to set up, no service user to create and no feed tool to run by hand. The source build is for the scanner stack alone; Greenbone’s full installation guide says that installing gvmd, pq-gvm, gsa and gsad is not needed if you only want the scanner stack. The prepared VM is what the openvas-scanner README recommends if you are not comfortable building from source.

RouteWhat you end up withWhat you do by handChoose it when
Docker Community ContainersThe full Community Edition stack: database, manager, scanner controller, web interface and feed data, all as containersInstall Docker Engine and the Compose v2 plugin, download the Compose file, change the admin passwordYou want a working web interface with the least upkeep (the default for most readers)
Scanner-only source buildThe scanner stack; Greenbone’s full installation guide says installing gvmd, pq-gvm, gsa and gsad is not needed for itSeven prerequisites: gvm user and group, environment variables re-set in every new shell, a source type, a GnuPG key and signature check, Redis, a feed sync, a sudoers entryYou want just the scanner stack and are comfortable on Debian Stable, the developers’ reference system
Prepared virtual machineGreenbone Enterprise TRIAL, a prepared VM with a readily available setupNothing to buildGreenbone’s own advice if building from source is unfamiliar

The README carries a warning that the Greenbone Community Containers were under development at the time of the page, so read release notes before upgrading a stack you depend on. The same repository also holds a Rust project that aims to replace openvas-scanner, ospd-openvas and notus-scanner. If you follow a source-build tutorial older than the repository, check it against the current guides first.

Sizing the host before you pull anything

Greenbone’s container guide, read on November 13, 2026, lists two sizes: a minimal one and a recommended one.

ComponentMinimalRecommended
CPU cores24
RAM4 GB8 GB
Available storage20 GB60 GB

On the software side the same page expects Docker Engine 24.x or newer, the Docker Compose v2 plugin (the docker compose command with a space, not the old docker-compose binary) and an operating system such as Ubuntu Server 24.04 LTS or similar. You need an account that can run Docker and at least one machine you are allowed to scan.

Install phase: from a bare Ubuntu host to a login at https://127.0.0.1

The 13 steps below run in phases: install, first scan and operate. Each ends with a state you can check before moving on.

1. Install Docker Engine and the Compose plugin

#!/usr/bin/env bash
set -euo pipefail

tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT

sudo apt-get update
sudo apt-get install -y curl ca-certificates
curl -fsSL https://get.docker.com -o "$tmp/get-docker.sh"
sudo sh "$tmp/get-docker.sh"
sudo usermod -aG docker "$USER"
echo "Log out and back in so the docker group applies to your shell."

If you would rather not log out, newgrp docker starts a shell that already has the docker group (a general Linux technique, not a Greenbone instruction). Done when, in a fresh login or that new shell, both of these print a version:

newgrp docker
docker --version
docker compose version

If the second command fails, install the Compose v2 plugin before continuing, because every later command uses it.

2. Download Greenbone’s Compose file

#!/usr/bin/env bash
set -euo pipefail

export DOWNLOAD_DIR="$HOME/openvas"
mkdir -p "$DOWNLOAD_DIR"
trap 'rm -f "$DOWNLOAD_DIR/compose.yaml.part"' EXIT

curl -f -L -o "$DOWNLOAD_DIR/compose.yaml.part" \
  https://greenbone.github.io/docs/latest/_static/compose.yaml
mv "$DOWNLOAD_DIR/compose.yaml.part" "$DOWNLOAD_DIR/compose.yaml"
ls -la "$DOWNLOAD_DIR"

Done when compose.yaml is listed with a non-zero size. The download goes to a temporary name first, so a failed transfer cannot leave a half-written file that Compose then tries to read. Greenbone’s guide refers to the folder as $DOWNLOAD_DIR, and the commands below use the same variable.

3. Pull the images and start the stack

#!/usr/bin/env bash
set -euo pipefail

export DOWNLOAD_DIR="$HOME/openvas"
docker compose -f "$DOWNLOAD_DIR/compose.yaml" pull
docker compose -f "$DOWNLOAD_DIR/compose.yaml" up -d
docker compose -f "$DOWNLOAD_DIR/compose.yaml" ps -a

These are the pull and up -d commands from Greenbone’s container guide, and -a makes ps list stopped containers as well. Expect service names such as pg-gvm, redis-server, gvmd, ospd-openvas, gsad, gsa and nginx. The scanner needs a running Redis server to temporarily store information on scanned hosts, per INSTALL.md, and nginx is the front end that publishes the web interface on 127.0.0.1:443 and 127.0.0.1:9392.

The feed-data containers behave differently from older write-ups. As of November 13, 2026, Greenbone’s compose.yaml sets KEEP_ALIVE: 1 on feed-data containers such as scap-data and cert-bund-data and gates dependent services on service_healthy, so those containers stay running. The one-shot setup containers that use service_completed_successfully (gpg-data, pg-gvm-migrator and configure-openvas in Greenbone’s docker-compose.yml as read on November 13, 2026) run once and exit with code 0, so they are expected to show as exited. Done when every other container shows as running or healthy. If one of those exits with a non-zero code, or any other container has exited, read its log (see the table at the end). To follow the feed-data containers while they load, tail their logs and stop with Ctrl+C:

docker compose -f "$DOWNLOAD_DIR/compose.yaml" logs -f scap-data
docker compose -f "$DOWNLOAD_DIR/compose.yaml" logs -f cert-bund-data

4. Change the admin password and open the web interface

Greenbone’s guide says a user admin with the password admin is created by default, calls that insecure and recommends a new password. Run the command once the stack is up.

#!/usr/bin/env bash
set -euo pipefail

export DOWNLOAD_DIR="$HOME/openvas"
: "${GVM_NEW_PASSWORD:?export GVM_NEW_PASSWORD with a long random passphrase first}"

docker compose -f "$DOWNLOAD_DIR/compose.yaml" exec -u gvmd gvmd \
  gvmd --user=admin --new-password="$GVM_NEW_PASSWORD"

The nginx front end publishes the interface on 127.0.0.1:443 and 127.0.0.1:9392 only. Open https://127.0.0.1 in a browser on the same machine and accept the self-signed certificate warning. On a remote server, nothing will answer from your laptop. A general technique, not a Greenbone instruction, is an SSH port forward that carries a free local port of your choice to the server’s loopback:

ssh -N -L LOCAL_PORT:127.0.0.1:443 [email protected]
# replace LOCAL_PORT with any free port on your laptop, then browse to https://127.0.0.1:LOCAL_PORT

Done when you can log in as admin with the new password. Leave the loopback binding alone; the tunnel is what keeps a scanner that holds credentials off the open network.

First-scan phase: hold until the feed loads, then scan one host you own

5. Wait for the feed

The scanner starts with no tests: the INSTALL.md file says the collection of Network Vulnerability Tests is empty at first and should be synchronized from a feed before the scanner’s first start. With an empty collection there is nothing to run, so a clean-looking report proves nothing. Give the feed data time to load before you scan. Done when every container other than the one-shot setup containers is running or healthy and the logs have gone quiet. To watch the manager while it imports, follow its log and stop with Ctrl+C:

docker compose -f "$HOME/openvas/compose.yaml" logs -f gvmd

6. Create a target

In the web interface, create a target for a machine you own or are authorized in writing to scan. A disposable lab VM is the right first target. Done when the target appears in the list.

7. Add credentials for an authenticated scan

For an authenticated scan, create a dedicated least-privilege account on the target machine and attach its credential to the target from step 6. Done when the target is saved with the credential attached.

8. Choose a scan configuration

Select Full and fast for the first task. Keep the ultimate variants out of the default rotation: Greenbone’s GOS 24.10 manual says Full and fast ultimate expands Full and fast “with VTs that could disrupt services or systems or even cause shutdowns”, and the Full and very deep ultimate configuration is an ultimate variant too. Use them only on systems that can accept an interruption. Done when the configuration is selected for your task.

9. Launch the task and watch it

Create a task with your target and configuration, and start it. Done when the task reaches Done and its report lists findings with severities. If progress sits at 0%, restart the scan controller with docker compose -f "$HOME/openvas/compose.yaml" restart ospd-openvas, which is the fix Greenbone’s container troubleshooting page gives for connection errors, then start the task again.

Scripting later: gvm-tools with pipx

If you plan to drive the scanner from scripts, the gvm-tools install page recommends pipx with the PyPI package. A plain pip install no longer works out of the box on newer distributions such as Ubuntu 23.04 or Debian 12 because of PEP 668, and the page says to use pipx instead, which replaces the hand-made virtual environment older guides used.

#!/usr/bin/env bash
set -euo pipefail

# assumes pipx is already installed
pipx ensurepath
pipx install gvm-tools
# open a new shell, then:
gvm-cli --help

Operate phase: reading, scheduling, updating and locking down

10. Triage the report

Read the report from the highest severity down. Done when each high-severity finding has an owner or a recorded reason to ignore it. Our guide to running a vulnerability scan covers what to do with the results.

11. Schedule recurring scans

Set up a recurring schedule for the task. Choose a frequency and a time when the target can take the load. Done when the task shows its next run time.

12. Update the images and feed data

#!/usr/bin/env bash
set -euo pipefail

export DOWNLOAD_DIR="$HOME/openvas"
docker compose -f "$DOWNLOAD_DIR/compose.yaml" pull
docker compose -f "$DOWNLOAD_DIR/compose.yaml" up -d
docker compose -f "$DOWNLOAD_DIR/compose.yaml" ps -a

Run this on a schedule you control, for example from cron. After an update that bumps versions, the troubleshooting page has you rebuild the manager’s data if the interface looks stale:

docker compose -f "$HOME/openvas/compose.yaml" exec -u gvmd gvmd \
  gvmd --rebuild-gvmd-data=all

Done when every container other than the one-shot setup containers shows as running or healthy again.

13. Export and lock down

Hand the report to whoever patches. For hardening, keep the admin password from step 4, keep the loopback binding and reach the interface through a tunnel, and create a separate role-limited GSA user for each analyst instead of sharing admin. Scan only systems you own or have written permission to test. Done when no one logs in as admin day to day.

Building only the scanner from source on Debian

The scanner-only path covers the scanner stack alone, so the GSA workflow above belongs to the container route, and here you take on every dependency yourself. INSTALL.md names Debian Stable as the reference system used by most developers and warns the build might fail on any other system. The prerequisites that Greenbone documents, in the order you meet them:

  1. A dedicated user. Greenbone’s source-build prerequisites have the services run as a gvm user and a group of the same name.
  2. Environment variables. They are lost when the shell closes, for example across a reboot mid-guide, and must be set again.
  3. A source type. The guide offers release tarballs, git tags or release branches, and uses tarballs.
  4. Signature check. Import the Greenbone Community Signing public key and verify downloads with GnuPG. The fingerprint published in the README is 8AE4 BE42 9B60 A59B 311C 2E73 9823 FAA6 0ED1 E580; compare it to the key you imported.
  5. Redis. The scanner needs a running Redis server to hold information about scanned hosts. As checked on November 13, 2026, the prerequisites list in INSTALL.md gives redis >= 5.0.3.
  6. A feed sync. Run greenbone-feed-sync before the first start; the collection is empty until you do, and it should be updated regularly.
  7. Root rights for the scanner. Some tests need root for operations such as packet forgery, and without it results are likely incomplete. Greenbone’s answer is a sudoers entry for the user that runs ospd-openvas:
<user> ALL = NOPASSWD: <install prefix>/sbin/openvas

Build and install commands are in Greenbone’s source-build guide and are not repeated here, so they stay in step with the release you download. When something fails, the scanner writes to /var/log/gvm/openvas.log by default and the log level is set in openvas_log.conf.

When the stack is up but the scan comes back empty or stuck

For the container stack, start with docker compose -f "$HOME/openvas/compose.yaml" ps -a to see which container stopped or is unhealthy, then read that container’s log with docker compose -f "$HOME/openvas/compose.yaml" logs SERVICE, replacing SERVICE with its name.

SymptomLikely causeFix
Web interface will not loadAnother service already holds port 443 or 9392, or you are browsing from a different machine than the serverRun ss -tulpn to find the clash and stop it; from another machine use the SSH tunnel in step 4
A long-running container shows as exitedAs of November 13, 2026 the compose file keeps feed-data containers running with KEEP_ALIVE: 1; the one-shot setup containers (gpg-data, pg-gvm-migrator, configure-openvas) finish by designRead that container’s log with logs SERVICE, fix the cause, then run up -d again
Scan finds nothing on a host you know is vulnerableFeed not fully loadedFollow the feed-data and gvmd logs as in steps 3 and 5 and wait until they go quiet
Task sits at 0% or ospd-openvas is unhealthyLost connection between controller and scannerRun restart ospd-openvas, then start the task again
Authenticated scan reports no local checksThe credential from step 7 may not log in to the target, or may lack rights on itRe-check the credential and account on the target, then start the task again
Interface shows stale data after an updateManager data needs rebuilding after a version bumpRun gvmd --rebuild-gvmd-data=all as in step 12
Source build: results look incompleteScanner not running as root and no sudoers entryAdd the sudoers line above or run the scanner as root
Source build: no tests availableEmpty NVT collectionRun greenbone-feed-sync
Source build: scanner cannot store host dataRedis not running or older than the redis >= 5.0.3 in INSTALL.md’s prerequisites listStart Redis and confirm its version
Source build: cause unclearDetails are in the scanner logRead /var/log/gvm/openvas.log and raise the level in openvas_log.conf

If your targets are container images rather than hosts, our Trivy tutorial covers the lighter tool, and the WPScan guide covers WordPress sites.

Nadia Dubois

Nadia Dubois

AI, software and the business of tech

Nadia Dubois covers AI, software and the business of tech for Tech Insider: AI models and the products built on them, developer and productivity software, pricing, and the company decisions and regulation that shape the industry.

View all articles