GPUOpen-LibrariesAndSDKs / MxGPU-Virtualization

MIT License
182 stars 83 forks source link

How I solute the problem? #6

Open fanghuafan opened 6 years ago

fanghuafan commented 6 years ago

Hello!

When I run ./gim.sh,I got this problem:

Current User is root
check: /usr/src/linux-headers-4.4.0-124-generic

make -C /lib/modules/4.4.0-124-generic/build M=/etc/libvirt/qemu/linux-4.4.0/MxGPU-Virtualization/drv modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-124-generic'
  Building modules, stage 2.
  MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-124-generic'

make -C /lib/modules/4.4.0-124-generic/build M=/etc/libvirt/qemu/linux-4.4.0/MxGPU-Virtualization/drv INSTALL_MOD_DIR=GIM modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-124-generic'
  INSTALL /etc/libvirt/qemu/linux-4.4.0/MxGPU-Virtualization/drv/gim.ko
At main.c:222:
- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
  DEPMOD  4.4.0-124-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-124-generic'

How I solute this problem? Thank you!!!

flintcq commented 6 years ago

install ssl lib

fanghuafan commented 6 years ago

@flintcq

I run this shell: $ apt-get install libssl-dev but the result is the same.

flintcq commented 6 years ago

try install followings:

libssl1.0.0:amd64 1.0.2g-1ubuntu4.12 amd64 Secure Sockets Layer toolkit - shared libraries openssl 1.0.2g-1ubuntu4.12 amd64 Secure Sockets Layer toolkit - cryptographic utility

fanghuafan commented 6 years ago

@flintcq

Could it be a configuration problem? My configuration version:

Ubuntu server version
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:    16.04
Codename:   xenial

KVM version
kvm -version
QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.26), Copyright (c) 2003-2008 Fabrice Bellard

QEMU version
# qemu-img --help | grep version
qemu-img version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.26), Copyright (c) 2004-2008 Fabrice Bellard
       conversion. If the number of bytes is 0, the source will not be scanned for

Libvirt version   
# virsh version 
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0

Other
root@kpa:/etc/libvirt/qemu/linux-4.4.0/MxGPU-Virtualization# lspci | grep AMD
pcilib: Error reading /sys/bus/pci/devices/0000:82:00.0/label: Operation not permitted
82:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tonga XT GL [FirePro S7150]
root@kpa:/etc/libvirt/qemu/linux-4.4.0/MxGPU-Virtualization# lsmod | grep gim
gim                   700416  0
fanghuafan commented 6 years ago

@flintcq I‘m so sorry! I want to know how to run this:

libssl1.0.0:amd64 1.0.2g-1ubuntu4.12 amd64 Secure Sockets Layer toolkit - shared libraries
openssl 1.0.2g-1ubuntu4.12 amd64 Secure Sockets Layer toolkit - cryptographic utility

Thank you very much!

falcon78921 commented 6 years ago

Hi @fanghuafan,

I had this problem as well. I remember the error going away when I compiled the kernel with the patches in the git repo.

To do what @flintcq recommends, it should be something like this:

sudo apt-get install libssl1.0.0:amd64

flintcq commented 6 years ago

@fanghuafan use the following command to install: apt-get install libssl1.0.0 openssl the reason i don't directly give this answer to you is that i think you should/could do it by your self by using google to get what you need to know, such as to find a package using command "apt-cache search libssl1.0.0"

fanghuafan commented 6 years ago

thank you! @flintcq @falcon78921 after i install ssl, but the problem remains unsolved. this is my installation:

root@kpa:/etc/libvirt/qemu/linux-4.4.0/MxGPU-Virtualization/drv# dpkg -l | grep ssl
ii  docbook-dsssl                              1.79-9                                     all          modular DocBook DSSSL stylesheets, for print and HTML
ii  libflac8:amd64                             1.3.1-4                                    amd64        Free Lossless Audio Codec - runtime C library
ii  libgnutls-openssl27:amd64                  3.4.10-4ubuntu1.4                          amd64        GNU TLS library - OpenSSL wrapper
ii  libssl1.0.0:amd64                          1.0.2g-1ubuntu4.12                         amd64        Secure Sockets Layer toolkit - shared libraries
ii  libwavpack1:amd64                          4.75.2-2ubuntu0.1                          amd64        audio codec (lossy and lossless) - library
ii  libxmlsec1-openssl                         1.2.20-2ubuntu4                            amd64        Openssl engine for the XML security library
ii  openssl                                    1.0.2g-1ubuntu4.12                         amd64        Secure Sockets Layer toolkit - cryptographic utility
ii  python-openssl                             0.15.1-2build1                             all          Python 2 wrapper around the OpenSSL library

i search this problem by google, but i didn't getting the right answer. i was thinking if I was using the version.

flintcq commented 6 years ago

sign-file: certs/signing_key.pem: No such file or directory

i found the file in my os:

/usr/src/linux-source-4.4.0/linux-source-4.4.0/certs/signing_key.pem

that means your are not extract kernel source to its right place

bqf9979 commented 2 years ago

已解决:

执行下面的代码,直接复制了运行

cat >x509.genkey <<-EOF [ req ] default_bits = 4096 distinguished_name = req_distinguished_name prompt = no string_mask = utf8only x509_extensions = myexts

[ req_distinguished_name ] CN = Modules

[ myexts ] basicConstraints=critical,CA:FALSE keyUsage=digitalSignature subjectKeyIdentifier=hash authorityKeyIdentifier=keyid EOF openssl req -new -nodes -utf8 -sha512 -days 36500 -batch -x509 -config x509.genkey -outform DER -out signing_key.x509 -keyout signing_key.pem mv signing_key.pem signing_key.x509 find /usr/src/*-generic/certs