Skip to content

Upgrades

Upgrade CQ from V2.15 to V2.20

Prerequisites

  • A CYBERQUEST 2.15 instance must be installed

  • Back-up by creating a snapshot of the CYBERQUEST VM is recommended in this stage

  • CYBERQUEST 2.20 packets must be downloaded prior to the beginning of the upgrade process

Technical operations

Access your CYBERQUEST instance via ssh and follow the steps bellow:

1.Login as root with password toor1 and select Exit option

Alt Image

The result should loook like this:

Alt Image

2.Create a new folder using th following command:

mkdir /home/superadmin/upgrade

The result should loook like this:

Alt Image

3.Copy from Prerequisitis.7z file the following folders: packages and cq to the CYBERQUEST server in the following path: /home/superadmin/upgrade

Alt Image

4.Edit the file cyberquest.list

A.Open the file cyberquest.list using the following command:

nano /etc/apt/sources.list.d/cyberquest.list

B.Coment the row:

Alt Image

C.Save and Exit

Alt Image

Alt Image

5.Upate CYBERQUEST server using the following command:

apt-get update

6.Upgrade CYBERQUEST server using the following command:

apt-get upgrade

Select Yes on "Do you want to continue? [Y/n]"

Alt Image

7.Reboot CYBERQUEST server using the following command:

reboot

8.Login as root with password toor1

Alt Image

Select Exit option

Alt Image

9.Edit the following file sources.list

A.Open the file sources.list using the following command:

nano /etc/apt/sources.list

B.Replace stretch with buster using Ctrl + \

Alt Image

Alt Image

C.Select A to replace All

Alt Image

Alt Image

D.Save and Exit

Alt Image

Alt Image

10.Upate CYBERQUEST server using the following command:

apt-get update

11.Upgrade CYBERQUEST server

A.Upgrade CYBERQUEST server using the following command:

apt-get upgrade

B.Select y on "Do you want to continue? [Y/n]"

Alt Image

C.Press q button

Alt Image

D.Select Yes on "Restart services during package upgrades without asking?"

Alt Image

E.Press Enter on "crontab (Y/I/N/O/D/Z) [default=N] ?"

Alt Image

12.Update CYBERQUEST server

A.Update CYBERQUEST server using the following command:

apt-get dist-upgrade

B.Select Y on "Do you want to continue? [Y/n]"

Alt Image

C.Press q button

Alt Image

D.Press Enter on "limits.conf (Y/I/N/O/D/Z) [default=N] ?"

Alt Image

E.Press Enter on "rsyslog.conf (Y/I/N/O/D/Z) [default=N] ?"

Alt Image

F.Press Enter on "sysctl.conf (Y/I/N/O/D/Z) [default=N] ?"

Alt Image

G.Press Enter on "tools.conf (Y/I/N/O/D/Z) [default=N] ?"

Alt Image

H.Select "openssl-server: keep the local version currently installed" and press "Enter"

Alt Image

I.Reboot CYBERQUEST server

Alt Image

13.Install all deb files in the following path: /home/superadmin/upgrade/packages

A.Change the path to: /home/superadmin/upgrade/packages using the following command:

cd /home/superadmin/upgrade/packages

B.Install the packages using the following command:

dpkg -i *

14.Fix dependency using the following command:

apt-get -f install

Press Y on "Do you want to continue? [Y/n]"

Alt Image

15.Unintall networkagent.service

A.Use the following command to stop networkagent.service:

systemctl stop networkagent.service

B.Use the following command to disable networkagent.service:

systemctl disable networkagent.service

C.Use the following command to remove networkagent.service:

apt-get remove networkagent

Press y on "Do you want to continue? [Y/n]"

Alt Image

16.Install CYBERQUEST services

A.Change the path using the following command:

cd ..

B.Change the path using the following command:

cd cq

C.Open the file elasticsearch.in.sh using the following command:

sudo nano /usr/share/elasticsearch/bin/elasticsearch.in.sh 

D.Comment the line:

#  ES_GC_OPTS="$ES_GC_OPTS -XX:+UseParNewGC" 

Search in to nano with Ctrl+W for 'UseParNewGC' to jump to the line abouve. Put "#" in front of the line.

Alt Image

Alt Image

Alt Image

E.Save and Exit

Alt Image

Alt Image

F.Install CYBERQUEST services using the following commands:

dpkg -i administration_2.15.5_amd64.deb 
dpkg -i DataStorage-2.20.6-Prerelease.deb 
dpkg -i data-correlation-2.20.8-debian_buster.deb 
dpkg -i data-server-2.20.41-debian_buster.deb 
dpkg -i data-acquisition-2.20.95-debian_buster.deb 

Press Enter on "lic (Y/I/N/O/D/Z) [default=N] ?"

Alt Image

dpkg -i cqweb.2.20.298-Prerelease.deb 

17.Change path and owner

A.Change path using the following command:

cd /var/opt/cyberquest/reports

B.Change owner using the following command:

sudo chown -R www-data:www-data slimapp 

C.Reboot CYBERQUEST server

Alt Image

18.Change java

A.Use the following command to chenge java:

update-alternatives --config java

B.Select option "2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode" and press Enter

Alt Image

C.Reboot CYBERQUEST server

19.Logon to web interface and check the About page in Settings:

Alt Image