1

我试图在 CentOS 6 上安装 OpenVZ。
我使用此指令安装 OpenVZ:
https

: //www.unixmen.com/install-and-configure-openvz-on-centos/ 我尝试更新内核,修改 openvz 存储库,没有任何帮助。这是问题所在:

[root@CentOS-69-64-minimal ~]# yum install vzkernel
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.fra10.de.leaseweb.net
 * extras: mirror.fra10.de.leaseweb.net
 * openvz-kernel-rhel6: mirror.netinch.com
 * openvz-utils: mirror.netinch.com
 * updates: mirror.fra10.de.leaseweb.net
Resolving Dependencies
--> Running transaction check
---> Package vzkernel.x86_64 0:2.6.32-042stab131.1 will be installed
--> Processing Dependency: kernel-firmware >= 2.6.32-754.el6 for package: vzkernel-2.6.32-042stab131.1.x86_64
--> Finished Dependency Resolution
Error: Package: vzkernel-2.6.32-042stab131.1.x86_64 (openvz-kernel-rhel6)
           Requires: kernel-firmware >= 2.6.32-754.el6
           Installed: kernel-firmware-2.6.32-696.30.1.el6.noarch (@updates)
               kernel-firmware = 2.6.32-696.30.1.el6
           Available: kernel-firmware-2.6.32-696.el6.noarch (base)
               kernel-firmware = 2.6.32-696.el6
           Available: kernel-firmware-2.6.32-696.1.1.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.1.1.el6
           Available: kernel-firmware-2.6.32-696.3.1.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.3.1.el6
           Available: kernel-firmware-2.6.32-696.3.2.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.3.2.el6
           Available: kernel-firmware-2.6.32-696.6.3.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.6.3.el6
           Available: kernel-firmware-2.6.32-696.10.1.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.10.1.el6
           Available: kernel-firmware-2.6.32-696.10.2.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.10.2.el6
           Available: kernel-firmware-2.6.32-696.10.3.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.10.3.el6
           Available: kernel-firmware-2.6.32-696.13.2.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.13.2.el6
           Available: kernel-firmware-2.6.32-696.16.1.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.16.1.el6
           Available: kernel-firmware-2.6.32-696.18.7.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.18.7.el6
           Available: kernel-firmware-2.6.32-696.20.1.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.20.1.el6
           Available: kernel-firmware-2.6.32-696.23.1.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.23.1.el6
           Available: kernel-firmware-2.6.32-696.28.1.el6.noarch (updates)
               kernel-firmware = 2.6.32-696.28.1.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@CentOS-69-64-minimal ~]#

另外,我找不到任何在 centos 7、debian 9 或 ubuntu 上安装 openvz 的方法。看起来 OpenVZ 快要死了。它太糟糕了,因为我经常使用它。

4

2 回答 2

0

你可以kernel-firmware >= 2.6.32-754.el6[centosplus]回购中找到。只需在您的 repo 文件中启用它,/etc/yum.repos.d/如下所示:

[centosplus] 
name=CentOS-$releasever - Plus 
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus 
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ 
gpgcheck=1 
enabled=1 
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
于 2018-08-06T11:14:18.260 回答
0

目前我在同样的问题之后安装了 vzkernel。

问题是新版本需要 CentOS 7+ 的内核,而 CentOS 6.9 不可用,所以我设法下载了旧版本的 vzkernel 软件包并使用 RPM 安装它。

  1. 下载最新的兼容 RPM

    wget http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab126.2/vzkernel-2.6.32-042stab126.2.x86_64.rpm

  2. 安装它

    rpm -ivh vzkernel-2.6.32-042stab126.2.x86_64.rpm

  3. 核实

    rpm -qa vzkernel

  4. 利润。

于 2018-07-03T12:26:34.450 回答