Hi,
I’m running GVM-11 and I would like to know what is the best way to migrate the GVM-11 version to the new GVM-20.08. Is it possible to update or eventually install the new version while keeping the existing configuration?
Can you tell me if there is any documentation about it?
I can’t speak for packages you are getting from a distribution. With a source build you need to stop all services, build all components and install all components. You need to add the pgcrypto postgres extension (https://github.com/greenbone/gvmd/blob/gvmd-20.08/INSTALL.md#setting-up-the-postgresql-database) and to run gvmd --migrate to update the database to the current schema.
Because we moved report formats, port lists and scan configs to be shipped with the feed you need to set a Feed Import Owner (https://github.com/greenbone/gvmd/blob/gvmd-20.08/INSTALL.md#set-the-feed-import-owner). Afterwards you need sync the feed to get certs, scap, nvts and the new parts (report formats, port lists, scan configs). After restarting the services GVM should be up and running.
For more details and hints please take a look at GVM 20.08 (stable, initial release 2020-08-12)
Specific errors and problems may occur due to your personal setup or configuration chosen by the distribution packagers.
One big topic is for example a PostgreSQL update. This hasn’t really something to do with GVM but how the new PostgresSQL version is installed, updated and configured and may lead to several problems.
Hi bricks,
thank you for your suggestion, it seems easy but i’m sure something will go wrong, however i will try to follow the operations you described and see what happens.
I’ll let you know as soon as possible.
This gave me a brand new blank gvm-20.08 installation. But in order to get all my tasks and stuff back from gvm-11 I had to dump and then restore my postgresql database. I found out some steps to do so over on the bottom of https://github.com/vulnbe/greenbone-source-edition-overlay
also setting the feed import owner config was definitely important in order to get my reports working.
Hi,
I downloaded and recompiled all the new components of GVM-20, or rather almost all, in fact I was unable to recompile GVMD. At the moment everything works perfectly but I am still using GVM version 9.
The scans and all data in the database are working fine and are taking advantage of the new GVM-libs 20.8.1 including the GSA, however compiling the GVMD-20.8.1 package returns errors.
I tried to compile gvmd-20 using the previous guide for CentOS 8 and GVM-9 posted in this section of the forum but it doesn’t work.
Has anyone tried this before? Do you have any advice?
Thank you!
Getting the guide I was referring to suggested editing the CMakeList file as follows before proceeding to build:
[root@~]# vi /opt/gvm/src/gvmd-9.0.1/CMakeLists.txt
change this:
set (CMAKE_C_FLAGS “${CMAKE_C_FLAGS} -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64”)
to this:
set (CMAKE_C_FLAGS “${CMAKE_C_FLAGS} -Wall -lpq -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -D_FILE_OFFSET_BITS=64”)
Is this still valid for GVMD-20.8 version?
CMake command is still correct?
$ cmake … -DCMAKE_INSTALL_PREFIX=/opt/gvm/ -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/pgsql/server -DPostgreSQL_INCLUDE_DIR=/usr/include/pgsql/server -DPostgreSQL_LIBRARY=/usr/lib64/pgsql