Full GVM-11 Build Guide for CentOS 8

Hi,

I am running CentOS Linux release 8.2.2004 (Core) and I am referring to Full GVM-11 Build Guide for CentOS 8 - Greenbone Community Edition - Greenbone Community Forum

while building each package I am facing CMake Error as mentioned below.

[root@openvas8 build]# pwd
/opt/gvm/src/gvm-libs-11.0.1/build

[root@openvas8 build]#cmake … -DCMAKE_INSTALL_PREFIX=/opt/gvm
CMake Error: The source directory “/opt/gvm/src/gvm-libs-11.0.1/build/…” does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

Any help will be highly appreciated. Thanks in advance and I look forward to hearing from you.

Best Regards,

Kaushal

Hi,

I am following Full GVM-11 Build Guide for CentOS 8. I am facing the below issue while restarting gsad service

[root@openvas8 gvm]# cat /opt/gvm/var/log/gvm/gsad.log
gsad main:MESSAGE:2020-08-15 00h13.17 utc:26014: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h13.17 utc:26015: main: Could not load private SSL key from /opt/gvm/var/lib/gvm/private/CA/serverkey.pem: Failed to open file “/opt/gvm/var/lib/gvm/private/CA/serverkey.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h13.29 utc:26056: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h13.29 utc:26057: main: Could not load private SSL key from /opt/gvm/var/lib/gvm/private/CA/serverkey.pem: Failed to open file “/opt/gvm/var/lib/gvm/private/CA/serverkey.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h14.28 utc:26144: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h14.28 utc:26145: main: Could not load private SSL key from /opt/gvm/var/lib/gvm/private/CA/serverkey.pem: Failed to open file “/opt/gvm/var/lib/gvm/private/CA/serverkey.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h24.06 utc:26692: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h24.06 utc:26693: main: Could not load private SSL key from /opt/gvm/var/lib/gvm/private/CA/serverkey.pem: Failed to open file “/opt/gvm/var/lib/gvm/private/CA/serverkey.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h33.42 utc:27293: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h33.42 utc:27294: main: Could not load SSL certificate from /opt/gvm/var/lib/gvm/CA/servercert.pem: Failed to open file “/opt/gvm/var/lib/gvm/CA/servercert.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h34.53 utc:27360: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h34.53 utc:27361: main: Could not load SSL certificate from /opt/gvm/var/lib/gvm/CA/servercert.pem: Failed to open file “/opt/gvm/var/lib/gvm/CA/servercert.pem”: No such file or directory
[root@openvas8 gvm]# systemctl status gsad
● gsad.service - Job that runs the gsa daemon
Loaded: loaded (/etc/systemd/system/gsad.service; enabled; vendor preset: disabled)
Active: failed (Result: protocol) since Fri 2020-08-14 20:34:53 EDT; 34s ago
Docs: man:gsa
Process: 27360 ExecStart=/opt/gvm/sbin/gsad --listen=0.0.0.0 (code=exited, status=0/SUCCESS)
Main PID: 26058 (code=killed, signal=KILL)

Aug 14 20:34:53 openvas8 systemd[1]: Stopped Job that runs the gsa daemon.
Aug 14 20:34:53 openvas8 systemd[1]: Starting Job that runs the gsa daemon...
Aug 14 20:34:53 openvas8 systemd[1]: gsad.service: Can't open PID file /opt/gvm/var/run/gsad.pid (yet?) after start: No such file or directory
Aug 14 20:34:53 openvas8 systemd[1]: gsad.service: Failed with result 'protocol'.
Aug 14 20:34:53 openvas8 systemd[1]: Failed to start Job that runs the gsa daemon.
[root@openvas8 gvm]# ll /opt/gvm/var/lib/gvm/private/CA/serverkey.pem
-rw-r--r-- 1 gvm gvm 1285 Aug 14 20:33 /opt/gvm/var/lib/gvm/private/CA/serverkey.pem
[root@openvas8 gvm]#

Any help will be highly appreciated. Thanks in Advance.

Best Regards,

Kaushal

hi i am facing this error
can anyone help me in this

Hi,

Is it single dot or double dot or three dot as per the below command line?

cmake … -DCMAKE_INSTALL_PREFIX=/opt/gvm

Thanks and Regards,

Kaushal

1 Like

It is the path to the directory where the sources are located. In this case it is two dots.

@indusvalley @kaushalshriyan but nevertheless I have to admit you should not build from sources if you have such basic issues already. If you don’t know how to install a compiler, run make and cmake it will be a big hurdle for you. Especially with such a big and complicated suite like GVM.

2 Likes

@bricks Thanks for the clarification. Are there binaries for CentOS / RHEL OS?

Hi,

Checking in again if there are any binaries available for GVM based OpenVAS application or is it only to compile from source code available in compressed tar ball file as of now?

[root@openvas8 src]# pwd
/opt/gvm/src
[root@openvas8 src]# ll
total 5168
drwxrwxr-x 11 gvm gvm 4096 Aug 14 20:58 gsa-9.0.1
-rw-r–r-- 1 gvm gvm 1936391 Aug 11 13:47 gsa-9.0.1.tar.gz
drwxrwxr-x 12 gvm gvm 4096 Aug 12 00:32 gvm-libs-11.0.1
-rw-r–r-- 1 gvm gvm 213553 Aug 11 13:47 gvm-libs-11.0.1.tar.gz
drwxr-xr-x 12 gvm gvm 4096 Aug 11 22:14 gvm-libs-master
drwxrwxr-x 11 gvm gvm 4096 Aug 13 21:02 gvmd-9.0.1
-rw-r–r-- 1 gvm gvm 1446748 Aug 11 13:47 gvmd-9.0.1.tar.gz
drwxrwxr-x 13 gvm gvm 4096 Aug 11 21:05 openvas-7.0.1
-rw-r–r-- 1 gvm gvm 429012 Aug 11 13:47 openvas-7.0.1.tar.gz
drwxrwxr-x 10 gvm gvm 4096 Aug 11 20:59 openvas-smb-1.0.5
-rw-r–r-- 1 gvm gvm 1081679 Aug 11 13:48 openvas-smb-1.0.5.tar.gz
drwxrwxr-x 10 gvm gvm 333 Aug 14 12:27 ospd-2.0.1
-rw-r–r-- 1 gvm gvm 87313 Aug 11 13:47 ospd-2.0.1.tar.gz
drwxrwxr-x 11 gvm gvm 4096 Aug 14 12:28 ospd-openvas-1.0.1
-rw-r–r-- 1 gvm gvm 50455 Aug 11 13:47 ospd-openvas-1.0.1.tar.gz
[root@openvas8 src]#

Please comment

Best Regards,

Kaushal

@caseybea
I got here in your order and there was an error

gvm@localhost ~]$ greenbone-ntv-sync
-bash: greenbone-ntv-sync:Command not found
[gvm@localhost ~]$ find /opt/gvm/var/lib/openvas/plugins | wc -l
1

It’s greenbone-nvt-sync. Network Vulnerability Test (NVT).

@caseybea

When I type “greenbone-ntv-sync”, “greenbone-scapdata-sync” and also “greenbone-certdata-sync”, it always comes out the error information “-bash: greenbone-ntv-sync:Command not found”.
I do the steps by your post, and I want to know where I have done wrong.

Hey @benson82208, did you read my message? It is NOT greenbone-ntv-sync. That’s a typo. It is greenbone-nvt-sync!

@bricks
Oh, thank for your reply,
But, I tried “greenbone-nvt-sync”
It still comes out " command not found.

[gvm@localhost ~]$ greenbone-nvt-sync
-bash: greenbone-nvt-sync:Command not found

In that case you don’t have installed the scanner component.

1 Like

do you find solution for this

@bricks
My weak scan was normal, but today I found it failed and the log showed the following error:

lib osp:WARNING:2020-08-25 04h40.06 utc:10073: osp_get_vts_version: element VTS missing.
md manage:WARNING:2020-08-25 04h40.06 utc:10073: manage_update_nvt_cache_osp: failed to get scanner_version

This may occur when the scanner (ospd-openvas) is (still) loading the feed data (the vulnerability tests).

1 Like

2 posts were split to a new topic: Scan config missing

@bricks
what about the issue on compiling openvas. as i said the issue is in post 48 in the other thread

Could you give me the link? I can’t find the post manually.