<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/index.php?action=history&amp;feed=atom&amp;title=Setting_up_GVM_21.4</id>
	<title>Setting up GVM 21.4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/index.php?action=history&amp;feed=atom&amp;title=Setting_up_GVM_21.4"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_GVM_21.4&amp;action=history"/>
	<updated>2026-04-30T19:39:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_GVM_21.4&amp;diff=22032&amp;oldid=prev</id>
		<title>Encode: Change link to Repositories page</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_GVM_21.4&amp;diff=22032&amp;oldid=prev"/>
		<updated>2022-06-27T03:34:12Z</updated>

		<summary type="html">&lt;p&gt;Change link to Repositories page&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:34, 27 June 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Install =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Install =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Enable_Community_Repository&lt;/del&gt;|Enable the community repository]] and install the required packages:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Repositories#Enabling_the_community_repository&lt;/ins&gt;|Enable the community repository]] and install the required packages:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Cmd|apk add openvas openvas-config gvmd gvm-libs gsad ospd-openvas}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Cmd|apk add openvas openvas-config gvmd gvm-libs gsad ospd-openvas}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Encode</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Setting_up_GVM_21.4&amp;diff=21618&amp;oldid=prev</id>
		<title>Fcolista: Created page with &quot;= Greenbone Vulnerability Management (GVM) 21.4 = = Introduction =  Greenbone Vulnerability Management is available in community repository.  The version 21.4, at the moment o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Setting_up_GVM_21.4&amp;diff=21618&amp;oldid=prev"/>
		<updated>2022-02-25T09:55:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Greenbone Vulnerability Management (GVM) 21.4 = = Introduction =  Greenbone Vulnerability Management is available in community repository.  The version 21.4, at the moment o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Greenbone Vulnerability Management (GVM) 21.4 =&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
Greenbone Vulnerability Management is available in community repository.&lt;br /&gt;
&lt;br /&gt;
The version 21.4, at the moment of the writing, is available on edge.&lt;br /&gt;
&lt;br /&gt;
This How-To will guide you to install a complete server solution for vulnerability scanning and vulnerability management solution.&lt;br /&gt;
&lt;br /&gt;
= Install =&lt;br /&gt;
[[Enable_Community_Repository|Enable the community repository]] and install the required packages:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add openvas openvas-config gvmd gvm-libs gsad ospd-openvas}}&lt;br /&gt;
&lt;br /&gt;
= Configuration = &lt;br /&gt;
&lt;br /&gt;
== PostgreSQL  ==&lt;br /&gt;
&lt;br /&gt;
OpenVAS relies on PostgreSQL, that now is mandatory.&lt;br /&gt;
&lt;br /&gt;
Start PostgreSQL and add it to default runlevel:&lt;br /&gt;
 rc-service postgresql setup&lt;br /&gt;
 rc-service postgresql start&lt;br /&gt;
 rc-update add postgresql&lt;br /&gt;
&lt;br /&gt;
Create and configure the gvm database:&lt;br /&gt;
&lt;br /&gt;
 su postgres&lt;br /&gt;
 createuser -DRS gvm&lt;br /&gt;
 createdb -O gvm gvmd&lt;br /&gt;
 psql gvmd&lt;br /&gt;
 create role dba with superuser noinherit;&lt;br /&gt;
 grant dba to gvm;&lt;br /&gt;
 create extension if not exists &amp;quot;uuid-ossp&amp;quot;;&lt;br /&gt;
 create extension &amp;quot;pgcrypto&amp;quot;;&lt;br /&gt;
 exit&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
== GVMd  ==&lt;br /&gt;
&lt;br /&gt;
GVMd run as gvm user.&lt;br /&gt;
&lt;br /&gt;
Generate the certificate.&lt;br /&gt;
&lt;br /&gt;
The certificate infrastructure enables GVMd to communicate in a secure manner and is used for authentication and authorization before establishing TLS connections between the daemons.&lt;br /&gt;
&lt;br /&gt;
You can setup the certificate automatically with:&lt;br /&gt;
 su gvm&lt;br /&gt;
 gvm-manage-certs -a&lt;br /&gt;
 exit&lt;br /&gt;
Create credentials used to interact with gvmd:&lt;br /&gt;
&lt;br /&gt;
 rc-service gvmd start&lt;br /&gt;
 su gvm&lt;br /&gt;
 gvmd --create-user=admin --password=admin&lt;br /&gt;
&lt;br /&gt;
Certain resources that were previously part of the gvmd source code are now shipped via the feed. An example is the config &amp;quot;Full and Fast&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
gvmd will only create these resources if a &amp;quot;Feed Import Owner&amp;quot; is configured:&lt;br /&gt;
&lt;br /&gt;
 gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value &amp;lt;uuid_of_user&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The UUIDs of all created users can be found using&lt;br /&gt;
&lt;br /&gt;
 gvmd --get-users --verbose&lt;br /&gt;
&lt;br /&gt;
Make sure that gvmd responds with &amp;quot;USER CREATED&amp;quot;. If you run through these steps fast, and gvm is in the middle of something, it may not create the user until it is done with what it is computing.&lt;br /&gt;
&lt;br /&gt;
== Update GVM definitions ==&lt;br /&gt;
&lt;br /&gt;
Download the GVM definitions and start GVMd, as gvm user.&lt;br /&gt;
Be patient...it will take a while: &lt;br /&gt;
&lt;br /&gt;
  su gvm&lt;br /&gt;
  greenbone-feed-sync --type GVMD_DATA&lt;br /&gt;
  greenbone-feed-sync --type SCAP&lt;br /&gt;
  greenbone-feed-sync --type CERT&lt;br /&gt;
  exit&lt;br /&gt;
&lt;br /&gt;
This three feeds needs to be scheduled via cron.&lt;br /&gt;
&lt;br /&gt;
Add gvmd to start on boot:&lt;br /&gt;
&lt;br /&gt;
 rc-update add gvmd&lt;br /&gt;
&lt;br /&gt;
Download NVT definitions:&lt;br /&gt;
&lt;br /&gt;
 su gvm&lt;br /&gt;
 greenbone-nvt-sync&lt;br /&gt;
&lt;br /&gt;
== Greenbone Security Assistant (GSAD) ==&lt;br /&gt;
&lt;br /&gt;
Configure Greenbone Security Assistant (GSAD) to listen to other interfaces rather than localhost only, so it is reachable from other hosts.&lt;br /&gt;
&lt;br /&gt;
Create &amp;#039;&amp;#039;&amp;#039;/etc/conf.d/gsad:&amp;#039;&amp;#039;&amp;#039; with:&lt;br /&gt;
 echo &amp;#039;GSAD_LISTEN_ADDRESS=&amp;quot;0.0.0.0&amp;quot;&amp;#039; &amp;gt; /etc/conf.d/gsad&lt;br /&gt;
&lt;br /&gt;
Start GSAD and add it to default runlevel:&lt;br /&gt;
 rc-service gsad start&lt;br /&gt;
 rc-update add gsad&lt;br /&gt;
&lt;br /&gt;
Open the browser at the IP address where GSAD is running, on http port 9392, and login with the credentials previously created.&lt;br /&gt;
&lt;br /&gt;
Happy vulnerability assessment!&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting=&lt;br /&gt;
&lt;br /&gt;
==greenbone-nvt-sync can&amp;#039;t create /run/ospd/feed-update.lock==&lt;br /&gt;
If during the first greenbone-nvt-sync, or greenbone-feed-sync, you get an error about can&amp;#039;t create /run/ospd/feed-update.lock permission denied you might&amp;#039;ve run ospd / openvas too early. In /var/log/gvm/openvas.log there will be a loop where ospd is looking for the feed files which don&amp;#039;t exist. Kill the process, then manually remove the lock file. However, if it looks like it is actively syncing the feed (iftop), then let it complete the sync first.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server]]&lt;br /&gt;
[[Category:Monitoring]]&lt;/div&gt;</summary>
		<author><name>Fcolista</name></author>
	</entry>
</feed>