Gvmd.sock does not exist while installing from source

To install the GVM solution , we are using a docker in which all the gvm modules are downloaded and installed from source. Below you can see the docker file. As i understand a specific argument has to be inserted either in the make or the install command. Can you please give us an insight on which argument has to be inserted in which module?.
@bricks

    ENV DEBIAN_FRONTEND=noninteractive
    ENV LANG=C.UTF-8

    COPY install-pkgs.sh /install-pkgs.sh

    RUN bash /install-pkgs.sh

    ENV gvm_libs_version="v11.0.0" \
        openvas_scanner_version="v7.0.0" \
        gvmd_version="v9.0.0" \
        gsa_version="v9.0.0" \
        gvm_tools_version="v2.0.0" \
        openvas_smb="v1.0.5" \
        open_scanner_protocol_daemon="v2.0.0" \
        ospd_openvas="v1.0.0" \
        python_gvm_version="v1.0.0"

    RUN echo "Starting Build..." && mkdir /build

        #
        # install libraries module for the Greenbone Vulnerability Management Solution
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/gvm-libs/archive/$gvm_libs_version.tar.gz && \
        tar -zxf $gvm_libs_version.tar.gz && \
        cd /build/*/ && \
        mkdir build && \
        cd build && \
        cmake -DCMAKE_BUILD_TYPE=Release .. && \
        make && \
        make install && \
        cd /build && \
        rm -rf *

        #
        # install smb module for the OpenVAS Scanner
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/openvas-smb/archive/$openvas_smb.tar.gz && \
        tar -zxf $openvas_smb.tar.gz && \
        cd /build/*/ && \
        mkdir build && \
        cd build && \
        cmake -DCMAKE_BUILD_TYPE=Release .. && \
        make && \
        make install && \
        cd /build && \
        rm -rf *
        
        #
        # Install Greenbone Vulnerability Manager (GVMD)
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/gvmd/archive/$gvmd_version.tar.gz && \
        tar -zxf $gvmd_version.tar.gz && \
        cd /build/*/ && \
        mkdir build && \
        cd build && \
        cmake -DCMAKE_BUILD_TYPE=Release .. && \
        make && \
        make install && \
        cd /build && \
        rm -rf *
        
        #
        # Install Open Vulnerability Assessment System (OpenVAS) Scanner of the Greenbone Vulnerability Management (GVM) Solution
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/openvas-scanner/archive/$openvas_scanner_version.tar.gz && \
        tar -zxf $openvas_scanner_version.tar.gz && \
        cd /build/*/ && \
        mkdir build && \
        cd build && \
        cmake -DCMAKE_BUILD_TYPE=Release .. && \
        make && \
        make install && \
        cd /build && \
        rm -rf *
        
        #
        # Install Greenbone Security Assistant (GSA)
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/gsa/archive/$gsa_version.tar.gz && \
        tar -zxf $gsa_version.tar.gz && \
        cd /build/*/ && \
        mkdir build && \
        cd build && \
        cmake -DCMAKE_BUILD_TYPE=Release .. && \
        make && \
        make install && \
        cd /build && \
        rm -rf *
        
        #
        # Install Greenbone Vulnerability Management Python Library
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/python-gvm/archive/$python_gvm_version.tar.gz && \
        tar -zxf $python_gvm_version.tar.gz && \
        cd /build/*/ && \
        python3 setup.py install && \
        cd /build && \
        rm -rf *
        
        #
        # Install Open Scanner Protocol daemon (OSPd)
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/ospd/archive/$open_scanner_protocol_daemon.tar.gz && \
        tar -zxf $open_scanner_protocol_daemon.tar.gz && \
        cd /build/*/ && \
        python3 setup.py install && \
        cd /build && \
        rm -rf *
        
        #
        # Install Open Scanner Protocol for OpenVAS
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/ospd-openvas/archive/$ospd_openvas.tar.gz && \
        tar -zxf $ospd_openvas.tar.gz && \
        cd /build/*/ && \
        python3 setup.py install && \
        cd /build && \
        rm -rf *
        
        #
        # Install GVM-Tools
        #
        
    RUN cd /build && \
        wget --no-verbose https://github.com/greenbone/gvm-tools/archive/$gvm_tools_version.tar.gz && \
        tar -zxf $gvm_tools_version.tar.gz && \
        cd /build/*/ && \
        python3 setup.py install && \
        echo "/usr/local/lib" > /etc/ld.so.conf.d/openvas.conf && ldconfig && cd / && rm -rf /build

    COPY scripts/* /

CMD '/start.sh'

Environment

Operating system: Ubuntu 18.04 LTS
Kernel: Linux 7c257acafc4a 4.15.0-76-generic #86-Ubuntu SMP Fri Jan 17 17:24:28 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
**Installation method / source:**Source

1 Like

In your case the socket should be in /usr/local/var/run

Please take a look at

for the different settings at compile time. The install prefix and different directory settings are a standard unix thing and are partly distribution specific.

2 Likes