在CentOS 6上安装OpenVZ

时间:2018-07-01 22:23:27

标签: centos kernel openvz

我正在尝试在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即将消亡。它是如此糟糕,原因是我大量使用它。

2 个答案:

答案 0 :(得分: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. 利润。

答案 1 :(得分:0)

您可以在kernel-firmware >= 2.6.32-754.el6仓库中找到[centosplus]。只需在/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