How to install gvm on kali linux
Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.
Last updated: April 4, 2026
Key Facts
- GVM is a comprehensive vulnerability scanning and management solution.
- Kali Linux provides specific packages that simplify GVM installation.
- The installation process can take a significant amount of time due to package downloads and compilation.
- Post-installation, a setup script configures GVM and its databases.
- Regular updates of GVM and its feed data are crucial for accurate scanning.
Overview
The Greenbone Vulnerability Management (GVM) framework, formerly known as Greenbone Security Assistant (GSA), is a powerful and widely used open-source tool for vulnerability scanning and management. It provides a comprehensive suite of tools to detect security weaknesses in networks and systems. Kali Linux, a distribution specifically designed for penetration testing and digital forensics, offers excellent support for installing and running GVM, making it an accessible option for security professionals and enthusiasts.
Why Install GVM on Kali Linux?
Kali Linux is built with security in mind, and integrating GVM enhances its capabilities significantly. GVM allows users to:
- Perform automated vulnerability scans on target systems and networks.
- Identify known vulnerabilities, misconfigurations, and potential exploits.
- Manage and prioritize remediation efforts based on scan results.
- Generate detailed reports for compliance and security audits.
- Stay updated with the latest threat intelligence through regular feed updates.
Installing GVM on Kali Linux provides a robust, all-in-one platform for proactive security assessment.
Prerequisites
Before you begin the installation, ensure that your Kali Linux system is up-to-date. Open a terminal and run the following commands:
sudo apt updatesudo apt upgrade -yThis ensures that all your system packages are current, minimizing potential conflicts during the GVM installation.
Installation Steps
The installation of GVM on Kali Linux can be achieved through the distribution's package manager. The primary package to install is typically named `gvm`.
Step 1: Install the GVM Package
Execute the following command in your terminal:
sudo apt install gvm -yThis command will download and install the core GVM components, including the Greenbone Security Assistant (GSA) web interface, the scanner (OpenVAS), and supporting libraries. The installation process can take a considerable amount of time, as it may involve downloading several gigabytes of data and potentially compiling some components.
Step 2: Run the GVM Setup Script
Once the package installation is complete, you need to run the GVM setup script. This script initializes GVM, configures its databases, and downloads the initial vulnerability feed data. Run the following command:
sudo gvm-setupThis script performs several critical tasks:
- Database Initialization: Sets up and configures the necessary databases for GVM.
- Feed Synchronization: Downloads the latest Network Vulnerability Tests (NVTs), SCAP data, and CERT-Bund data. This is a lengthy process and requires a stable internet connection. It can take several hours, depending on your internet speed and system performance.
- User Creation: You will be prompted to set a password for the `admin` user, which is used to log into the GVM web interface. Ensure you choose a strong, memorable password.
Step 3: Start GVM Services
After the setup script finishes, you need to start the GVM services. The command to manage GVM services is typically `gvm-start`.
sudo gvm-startThis command starts the GVM daemon, the scanner daemon, and the GVM-Tools daemon, enabling the web interface and scanning functionalities.
Step 4: Check GVM Status
To verify that GVM is running correctly, you can check its status:
sudo gvm-tools --statusThis command should show that all GVM components are active.
Step 5: Access the GVM Web Interface
The Greenbone Security Assistant (GSA) web interface is the primary way to interact with GVM. By default, it runs on port 9392. Open your web browser and navigate to:
https://localhost:9392
You will be prompted to log in. Use the username `admin` and the password you set during the `gvm-setup` process. You might encounter a security warning due to the self-signed certificate; you can proceed by accepting the risk.
Post-Installation and Updates
Once GVM is installed and running, it's essential to keep its vulnerability feeds updated. The feeds contain the information GVM uses to identify vulnerabilities.
To update the feeds manually, you can use:
sudo runuser -u _gvm -- greenbone-nvt-syncsudo runuser -u _gvm -- greenbone-feed-sync --type SCAPsudo runuser -u _gvm -- greenbone-feed-sync --type CERTAlternatively, you can often restart GVM services, which may trigger an update, or configure automatic updates.
Periodically, you may also need to update the GVM software itself. This is typically done using `apt`:
sudo apt updatesudo apt upgrade gvm -yIt is recommended to run these updates regularly to ensure GVM is effective against the latest threats.
Troubleshooting Common Issues
Long Feed Synchronization Times: The initial feed synchronization can take many hours. Ensure you have a stable internet connection and sufficient disk space. If it fails, you can try running the sync commands manually again.
Web Interface Not Accessible: Verify that GVM services are running using `sudo gvm-tools --status`. Check firewall rules if you are trying to access it from a different machine. Ensure you are using `https` and the correct port (9392).
Login Issues: Double-check the password you set during `gvm-setup`. If you've forgotten it, you might need to reset it, which can involve reconfiguring GVM or finding password reset scripts specific to your GVM version.
Conclusion
Installing and configuring GVM on Kali Linux provides a powerful vulnerability assessment tool. By following these steps, you can set up a system capable of identifying security risks and helping you maintain a more secure environment. Remember to keep your GVM feeds and software updated for optimal performance and accuracy.
More How To in Daily Life
Also in Daily Life
More "How To" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Installing and Using GVM on Kali | Kali Linux DocumentationCC-BY-SA-4.0
- Greenbone Security Assistant (GVM) - GitHubGPL-2.0-or-later
- OpenVAS Official Websitefair-use
Missing an answer?
Suggest a question and we'll generate an answer for it.