LXC 之CentOS7安装手记
1. 安装CentOS的epel源
LXC的安装包在CentOS的epel源有提供的,使用官网的epel源需要安装一个软件包
-
参考一
yum -y install epel-release #这个软件包里包含epelyum源和GPG的配置
-
参考二
- 作者: liumiaocn
- 来源: https://blog.youkuaiyun.com/liumiaocn/article/details/52348219
# 在Linux上安装LXC Virtualization yum install epel-release yum install debootstrap perl libvirt yum install lxc lxc-templates systemctl status lxc.service systemctl start lxc.service systemctl start libvirtd systemctl status lxc.service
-
过程
[root@localhost ~]# yum -y install epel-release
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 epel-release.noarch.0.7-11 将被 安装
--> 解决依赖关系完成
====================================================================================================================================
Package 架构 版本 源 大小
====================================================================================================================================
正在安装:
epel-release noarch 7-11 extras 15 k
事务概要
====================================================================================================================================
...
Running transaction
正在安装 : epel-release-7-11.noarch 1/1
验证中 : epel-release-7-11.noarch 1/1
已安装:
epel-release.noarch 0:7-11
完毕!
2. 安装lxc和lxc templates
1) lxc
[root@localhost ~]# yum -y install lxc
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 7.7 kB 00:00:00
* epel: epel.scopesky.iq
epel | 4.7 kB 00:00:00
(1/3): epel/x86_64/group_gz | 88 kB 00:00:00
(2/3): epel/x86_64/primary_db | 6.6 MB 00:00:04
(3/3): epel/x86_64/updateinfo | 960 kB 00:00:11
正在解决依赖关系
--> 正在检查事务
---> 软件包 lxc.x86_64.0.1.0.11-1.el7 将被 安装
--> 正在处理依赖关系 lua-lxc(x86-64) = 1.0.11-1.el7,它被软件包 lxc-1.0.11-1.el7.x86_64 需要
--> 正在处理依赖关系 lua-alt-getopt,它被软件包 lxc-1.0.11-1.el7.x86_64 需要
--> 正在处理依赖关系 liblxc.so.1()(64bit),它被软件包 lxc-1.0.11-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 lua-alt-getopt.noarch.0.0.7.0-4.el7 将被 安装
---> 软件包 lua-lxc.x86_64.0.1.0.11-1.el7 将被 安装
--> 正在处理依赖关系 lua-filesystem,它被软件包 lua-lxc-1.0.11-1.el7.x86_64 需要
---> 软件包 lxc-libs.x86_64.0.