Я пытаюсь загрузить гостевые дополнения VirtualBox на виртуальную машину Centos 7, но у меня возникают трудности.
Я выполнил следующие инструкции: https://www.if -not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/
результаты попытки установить заголовки ядра и т. д. с yum не далипредоставьте правильные версии заголовков, запрошенные гостевой установкой VirtualBox:
[root@localhost ~]# yum install gcc kernel-devel kernel-headers dkms make bzip2 perl
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.its.sfu.ca
* elrepo: muug.ca
* epel: mirror.csclub.uwaterloo.ca
* extras: mirror.its.sfu.ca
* updates: mirror.its.sfu.ca
Package 1:make-3.82-24.el7.x86_64 already installed and latest version
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Package 4:perl-5.16.3-294.el7_6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package dkms.noarch 0:2.7.1-1.el7 will be installed
--> Processing Dependency: elfutils-libelf-devel for package: dkms-2.7.1-1.el7.noarch
---> Package gcc.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-39.el7.x86_64
---> Package kernel-devel.x86_64 0:3.10.0-1062.1.1.el7 will be installed
---> Package kernel-headers.x86_64 0:3.10.0-1062.1.1.el7 will be installed
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-39.el7 will be installed
---> Package elfutils-libelf-devel.x86_64 0:0.176-2.el7 will be installed
--> Processing Dependency: pkgconfig(zlib) for package: elfutils-libelf-devel-0.176-2.el7.x86_64
---> Package glibc-devel.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: glibc-headers = 2.17-292.el7 for package: glibc-devel-2.17-292.el7.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.17-292.el7.x86_64
--> Running transaction check
---> Package glibc-headers.x86_64 0:2.17-292.el7 will be installed
---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
--> Finished Dependency Resolution
ependencies Resolved
===================================================================================================================
Package Arch Version Repository Size
===================================================================================================================
Installing:
dkms noarch 2.7.1-1.el7 epel 75 k
gcc x86_64 4.8.5-39.el7 base 16 M
kernel-devel x86_64 3.10.0-1062.1.1.el7 updates 18 M
kernel-headers x86_64 3.10.0-1062.1.1.el7 updates 8.7 M
Installing for dependencies:
cpp x86_64 4.8.5-39.el7 base 5.9 M
elfutils-libelf-devel x86_64 0.176-2.el7 base 39 k
glibc-devel x86_64 2.17-292.el7 base 1.1 M
glibc-headers x86_64 2.17-292.el7 base 687 k
zlib-devel x86_64 1.2.7-18.el7 base 50 k
Transaction Summary
===================================================================================================================
Install 4 Packages (+5 Dependent packages)
Total download size: 50 M
Installed size: 98 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for updates
(1/9): elfutils-libelf-devel-0.176-2.el7.x86_64.rpm | 39 kB 00:00:01
(2/9): glibc-headers-2.17-292.el7.x86_64.rpm | 687 kB 00:00:03
(3/9): glibc-devel-2.17-292.el7.x86_64.rpm | 1.1 MB 00:00:05
(4/9): cpp-4.8.5-39.el7.x86_64.rpm | 5.9 MB 00:00:07
warning: /var/cache/yum/x86_64/7/epel/packages/dkms-2.7.1-1.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for dkms-2.7.1-1.el7.noarch.rpm is not installed
(5/9): dkms-2.7.1-1.el7.noarch.rpm | 75 kB 00:00:07
(6/9): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:00:01
(7/9): kernel-headers-3.10.0-1062.1.1.el7.x86_64.rpm | 8.7 MB 00:00:17
(8/9): kernel-devel-3.10.0-1062.1.1.el7.x86_64.rpm | 18 MB 00:00:21
(9/9): gcc-4.8.5-39.el7.x86_64.rpm | 16 MB 00:00:32
-------------------------------------------------------------------------------------------------------------------
Total 1.5 MB/s | 50 MB 00:00:32
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-11.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kernel-headers-3.10.0-1062.1.1.el7.x86_64 1/9
Installing : glibc-headers-2.17-292.el7.x86_64 2/9
Installing : glibc-devel-2.17-292.el7.x86_64 3/9
Installing : cpp-4.8.5-39.el7.x86_64 4/9
Installing : gcc-4.8.5-39.el7.x86_64 5/9
Installing : zlib-devel-1.2.7-18.el7.x86_64 6/9
Installing : elfutils-libelf-devel-0.176-2.el7.x86_64 7/9
Installing : kernel-devel-3.10.0-1062.1.1.el7.x86_64 8/9
Installing : dkms-2.7.1-1.el7.noarch 9/9
Verifying : glibc-devel-2.17-292.el7.x86_64 1/9
Verifying : glibc-headers-2.17-292.el7.x86_64 2/9
Verifying : kernel-devel-3.10.0-1062.1.1.el7.x86_64 3/9
Verifying : zlib-devel-1.2.7-18.el7.x86_64 4/9
Verifying : elfutils-libelf-devel-0.176-2.el7.x86_64 5/9
Verifying : dkms-2.7.1-1.el7.noarch 6/9
Verifying : cpp-4.8.5-39.el7.x86_64 7/9
Verifying : gcc-4.8.5-39.el7.x86_64 8/9
Verifying : kernel-headers-3.10.0-1062.1.1.el7.x86_64 9/9
Installed:
dkms.noarch 0:2.7.1-1.el7 gcc.x86_64 0:4.8.5-39.el7 kernel-devel.x86_64 0:3.10.0-1062.1.1.el7
kernel-headers.x86_64 0:3.10.0-1062.1.1.el7
Dependency Installed:
cpp.x86_64 0:4.8.5-39.el7 elfutils-libelf-devel.x86_64 0:0.176-2.el7 glibc-devel.x86_64 0:2.17-292.el7
glibc-headers.x86_64 0:2.17-292.el7 zlib-devel.x86_64 0:1.2.7-18.el7
Complete!
[root@localhost ~]# ll /usr/src/kernels
total 4
drwxr-xr-x. 22 root root 4096 Sep 22 16:44 3.10.0-1062.1.1.el7.x86_64
[root@localhost ~]# uname -r
4.4.193-1.el7.elrepo.x86_64
гостевая установка VirtualBox жалуется:
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.0.12 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.0.12 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel
4.4.193-1.el7.elrepo.x86_64. Please install them and execute
/sbin/rcvboxadd setup
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.
Press Return to close this window...
как я могу получить правильную версию заголовков, установленных на этомустановка