0x0、获取KVM最新源码的方式有三种方式(需要科学上网)
这里给出几个源码的下载地址:
git://git.kernel.org/pub/scm/virt/kvm/kvm.git
https://git.kernel.org/pub/scm/virt/kvm/kvm.git
https://kernel.googlesource.com/pub/scm/virt/kvm/kvm.git
0x1、需要下载kvm的源码 安装git工具
sudo yum install git
#创建目录
cd /usr/local/src
#拉取代码
localhost:kvm azkaban$ git clone https://kernel.googlesource.com/pub/scm/virt/kvm/kvm.git
Cloning into 'kvm'...
remote: Sending approximately 1.46 GiB ...
remote: Counting objects: 10984, done
remote: Total 7164785 (delta 6013714), reused 7164785 (delta 6013714)
Receiving objects: 100% (7164785/7164785), 1.46 GiB | 2.06 MiB/s, done.
Resolving deltas: 100% (6013714/6013714), done.
Checking out files: 100% (66368/66368), done.
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'include/uapi/linux/netfilter/xt_CONNMARK.h'
'include/uapi/linux/netfilter/xt_connmark.h'
'include/uapi/linux/netfilter/xt_DSCP.h'
'include/uapi/linux/netfilter/xt_dscp.h'
'include/uapi/linux/netfilter/xt_MARK.h'
'include/uapi/linux/netfilter/xt_mark.h'
'include/uapi/linux/netfilter/xt_RATEEST.h'
'include/uapi/linux/netfilter/xt_rateest.h'
'include/uapi/linux/netfilter/xt_TCPMSS.h'
'include/uapi/linux/netfilter/xt_tcpmss.h'
'include/uapi/linux/netfilter_ipv4/ipt_ECN.h'
'include/uapi/linux/netfilter_ipv4/ipt_ecn.h'
'include/uapi/linux/netfilter_ipv4/ipt_TTL.h'
'include/uapi/linux/netfilter_ipv4/ipt_ttl.h'
'include/uapi/linux/netfilter_ipv6/ip6t_HL.h'
'include/uapi/linux/netfilter_ipv6/ip6t_hl.h'
'net/netfilter/xt_DSCP.c'
'net/netfilter/xt_dscp.c'
'net/netfilter/xt_HL.c'
'net/netfilter/xt_hl.c'
'net/netfilter/xt_RATEEST.c'
'net/netfilter/xt_rateest.c'
'net/netfilter/xt_TCPMSS.c'
'net/netfilter/xt_tcpmss.c'
'tools/memory-model/litmus-tests/Z6.0+pooncelock+poonceLock+pombonce.litmus'
'tools/memory-model/litmus-tests/Z6.0+pooncelock+pooncelock+pombonce.litmus'
localhost:kvm azkaban$ ls
kvm
localhost:kvm azkaban$ cd kvm/
localhost:kvm azkaban$ ls
COPYING Kconfig README crypto init mm security virt
CREDITS LICENSES arch drivers ipc net sound
Documentation MAINTAINERS block fs kernel samples tools
Kbuild Makefile certs include lib scripts usr
0x2、安装编译工具
[root@localhost source]# yum -y groupinstall "development tools"
Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirror.bit.edu.cn
* updates: mirrors.huaweicloud.com
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
--> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.69-11.el7.noarch
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
--> Processing Dependency: perl(TAP::Parser) for package: automake-1.13.4-3.el7.noarch
---> Package bison.x86_64 0:3.0.4-2.el7 will be installed
---> Package byacc.x86_64 0:1.9.20130304-3.el7 will be installed
---> Package cscope.x86_64 0:15.8-10.el7 will be installed
--> Processing Dependency: emacs-filesystem for package: cscope-15.8-10.el7.x86_64
---> Package ctags.x86_64 0:5.8-13.el7 will be installed
---> Package diffstat.x86_64 0:1.57-4.el7 will be installed
---> Package doxygen.x86_64 1:1.8.5-3.el7 will be installed
---> Package elfutils.x86_64 0:0.176-2.el7 will be installed
--> Processing Dependency: elfutils-libs(x86-64) = 0.176-2.el7 for package: elfutils-0.176-2.el7.x86_64
--> Processing Dependency: elfutils-libelf(x86-64) = 0.176-2.el7 for package: elfutils-0.176-2.el7.x86_64
--> Processing Dependency: libdw.so.1(ELFUTILS_0.175)(64bit) for package: elfutils-0.176-2.el7.x86_64
--> Processing Dependency: libdw.so.1(ELFUTILS_0.173)(64bit) for package: elfutils-0.176-2.el7.x86_64
---> Package flex.x86_64 0:2.5.37-6.el7 will be installed
---> Package gcc.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: libgomp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: cpp = 4.8.5-39.el7 for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libgcc >= 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
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-39.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-39.el7.x86_64
---> Package gcc-c++.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: libstdc++-devel = 4.8.5-39.el7 for package: gcc-c++-4.8.5-39.el7.x86_64
--> Processing Dependency: libstdc++ = 4.8.5-39.el7 for package: gcc-c++-4.8.5-39.el7.x86_64
---> Package gcc-gfortran.x86_64 0:4.8.5-39.el7 will be installed
--> Processing Dependency: libquadmath-devel = 4.8.5-39.el7 for package: gcc-gfortran-4.8.5-39.el7.x86_64
--> Processing Dependency: libquadmath = 4.8.5-39.el7 for package: gcc-gfortran-4.8.5-39.el7.x86_64
--> Processing Dependency: libgfortran = 4.8.5-39.el7 for package: gcc-gfortran-4.8.5-39.el7.x86_64
--> Processing Dependency: libgfortran.so.3()(64bit) for package: gcc-gfortran-4.8.5-39.el7.x86_64
---> Package indent.x86_64 0:2.2.11-13.el7 will be installed
---> Package intltool.noarch 0:0.50.2-7.el7 will be installed
--> Processing Dependency: perl(XML::Parser) for package: intltool-0.50.2-7.el7.noarch
--> Processing Dependency: gettext-devel for package: intltool-0.50.2-7.el7.noarch
---> Package libtool.x86_64 0:2.4.2-22.el7_3 will be installed
---> Package patch.x86_64 0:2.7.1-12.el7_7 will be installed
---> Package patchutils.x86_64 0:0.3.3-4.el7 will be installed
---> Package rcs.x86_64 0:5.9.0-5.el7 will be installed
---> Package redhat-rpm-config.noarch 0:9.1.0-88.el7.centos will be installed
--> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
--> Processing Dependency: zip for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
--> Processing Dependency: python-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
--> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
---> Package rpm-build.x86_64 0:4.11.3-40.el7 will be installed
--> Processing Dependency: rpm = 4.11.3-40.el7 for package: rpm-build-4.11.3-40.el7.x86_64
--> Processing Dependency: unzip for package: rpm-build-4.11.3-40.el7.x86_64
--> Processing Dependency: /usr/bin/gdb-add-index for package: rpm-build-4.11.3-40.el7.x86_64
---> Package rpm-sign.x86_64 0:4.11.3-40.el7 will be installed
--> Processing Dependency: rpm-build-libs(x86-64) = 4.11.3-40.el7 for package: rpm-sign-4.11.3-40.el7.x86_64
---> Package subversion.x86_64 0:1.7.14-14.el7 will be installed
--> Processing Dependency: subversion-libs(x86-64) = 1.7.14-14.el7 for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_wc-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_subr-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_repos-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_ra_svn-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_ra_neon-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_ra_local-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_ra-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_fs_util-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_fs_fs-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_fs_base-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_fs-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_diff-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_delta-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_client-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libneon.so.27()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
---> Package swig.x86_64 0:2.0.10-5.el7 will be installed
---> Package systemtap.x86_64 0:4.0-10.el7_7 will be installed
--> Processing Dependency: systemtap-devel = 4.0-10.el7_7 for package: systemtap-4.0-10.el7_7.x86_64
--> Processing Dependency: systemtap-client = 4.0-10.el7_7 for package: systemtap-4.0-10.el7_7.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-5.el7 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---> Package cpp.x86_64 0:4.8.5-39.el7 will be installed
---> Package dwz.x86_64 0:0.11-3.el7 will be installed
---> Package elfutils-libelf.x86_64 0:0.172-2.el7 will be updated
---> Package elfutils-libelf.x86_64 0:0.176-2.el7 will be an update
---> Package elfutils-libs.x86_64 0:0.172-2.el7 will be updated
---> Package elfutils-libs.x86_64 0:0.176-2.el7 will be an update
---> Package emacs-filesystem.noarch 1:24.3-22.el7 will be installed
---> Package gdb.x86_64 0:7.6.1-115.el7 will be installed
---> Package gettext-devel.x86_64 0:0.19.8.1-2.el7 will be installed
--> Processing Dependency: gettext-common-devel = 0.19.8.1-2.el7 for package: gettext-devel-0.19.8.1-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 = 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
---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgcc.x86_64 0:4.8.5-39.el7 will be an update
---> Package libgfortran.x86_64 0:4.8.5-39.el7 will be installed
---> Package libgomp.x86_64 0:4.8.5-36.el7 will be updated
---> Package libgomp.x86_64 0:4.8.5-39.el7 will be an update
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package libquadmath.x86_64 0:4.8.5-39.el7 will be installed
---> Package libquadmath-devel.x86_64 0:4.8.5-39.el7 will be installed
---> Package libstdc++.x86_64 0:4.8.5-36.el7 will be updated
---> Package libstdc++.x86_64 0:4.8.5-39.el7 will be an update
---> Package libstdc++-devel.x86_64 0:4.8.5-39.el7 will be installed
---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
---> Package neon.x86_64 0:0.30.0-4.el7 will be installed
--> Processing Dependency: libproxy.so.1()(64bit) for package: neon-0.30.0-4.el7.x86_64
--> Processing Dependency: libpakchois.so.0()(64bit) for package: neon-0.30.0-4.el7.x86_64
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
---> Package perl-XML-Parser.x86_64 0:2.41-10.el7 will be installed
---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed
---> Package python-srpm-macros.noarch 0:3-32.el7 will be installed
---> Package rpm.x86_64 0:4.11.3-35.el7 will be updated
--> Processing Dependency: rpm = 4.11.3-35.el7 for package: rpm-libs-4.11.3-35.el7.x86_64
--> Processing Dependency: rpm = 4.11.3-35.el7 for package: rpm-python-4.11.3-35.el7.x86_64
---> Package rpm.x86_64 0:4.11.3-40.el7 will be an update
---> Package rpm-build-libs.x86_64 0:4.11.3-35.el7 will be updated
---> Package rpm-build-libs.x86_64 0:4.11.3-40.el7 will be an update
---> Package subversion-libs.x86_64 0:1.7.14-14.el7 will be installed
---> Package systemtap-client.x86_64 0:4.0-10.el7_7 will be installed
--> Processing Dependency: systemtap-runtime = 4.0-10.el7_7 for package: systemtap-client-4.0-10.el7_7.x86_64
--> Processing Dependency: mokutil for package: systemtap-client-4.0-10.el7_7.x86_64
---> Package systemtap-devel.x86_64 0:4.0-10.el7_7 will be installed
--> Processing Dependency: kernel-devel-uname-r for package: systemtap-devel-4.0-10.el7_7.x86_64
---> Package unzip.x86_64 0:6.0-20.el7 will be installed
---> Package zip.x86_64 0:3.0-11.el7 will be installed
--> Running transaction check
---> Package gettext-common-devel.noarch 0:0.19.8.1-2.el7 will be installed
---> Package glibc.x86_64 0:2.17-260.el7 will be updated
--> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-common-2.17-260.el7.x86_64
---> Package glibc.x86_64 0:2.17-292.el7 will be an update
---> Package glibc-headers.x86_64 0:2.17-292.el7 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-292.el7.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.17-292.el7.x86_64
---> Package kernel-debug-devel.x86_64 0:3.10.0-1062.9.1.el7 will be installed
---> Package libproxy.x86_64 0:0.4.11-11.el7 will be installed
--> Processing Dependency: libmodman.so.1()(64bit) for package: libproxy-0.4.11-11.el7.x86_64
---> Package mokutil.x86_64 0:15-2.el7.centos will be installed
--> Processing Dependency: libefivar.so.1(libefivar.so.0)(64bit) for package: mokutil-15-2.el7.centos.x86_64
--> Processing Dependency: libefivar.so.1(LIBEFIVAR_0.24)(64bit) for package: mokutil-15-2.el7.centos.x86_64
--> Processing Dependency: libefivar.so.1()(64bit) for package: mokutil-15-2.el7.centos.x86_64
---> Package pakchois.x86_64 0:0.4-10.el7 will be installed
---> Package rpm-libs.x86_64 0:4.11.3-35.el7 will be updated
---> Package rpm-libs.x86_64 0:4.11.3-40.el7 will be an update
---> Package rpm-python.x86_64 0:4.11.3-35.el7 will be updated
---> Package rpm-python.x86_64 0:4.11.3-40.el7 will be an update
---> Package systemtap-runtime.x86_64 0:4.0-10.el7_7 will be installed
--> Processing Dependency: libsymtabAPI.so.9.3()(64bit) for package: systemtap-runtime-4.0-10.el7_7.x86_64
--> Processing Dependency: libdyninstAPI.so.9.3()(64bit) for package: systemtap-runtime-4.0-10.el7_7.x86_64
--> Running transaction check
---> Package dyninst.x86_64 0:9.3.1-3.el7 will be installed
--> Processing Dependency: libdwarf.so.0()(64bit) for package: dyninst-9.3.1-3.el7.x86_64
--> Processing Dependency: libboost_date_time-mt.so.1.53.0()(64bit) for package: dyninst-9.3.1-3.el7.x86_64
---> Package efivar-libs.x86_64 0:36-12.el7 will be installed
---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated
---> Package glibc-common.x86_64 0:2.17-292.el7 will be an update
---> Package kernel-headers.x86_64 0:3.10.0-1062.9.1.el7 will be installed
---> Package libmodman.x86_64 0:2.0.1-8.el7 will be installed
--> Running transaction check
---> Package boost-date-time.x86_64 0:1.53.0-27.el7 will be installed
---> Package libdwarf.x86_64 0:20130207-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing for group install "Development Tools":
autoconf noarch 2.69-11.el7 base 701 k
automake noarch 1.13.4-3.el7 base 679 k
bison x86_64 3.0.4-2.el7 base 674 k
byacc x86_64 1.9.20130304-3.el7 base 65 k
cscope x86_64 15.8-10.el7 base 203 k
ctags x86_64 5.8-13.el7 base 155 k
diffstat x86_64 1.57-4.el7 base 35 k
doxygen x86_64 1:1.8.5-3.el7 base 3.6 M
elfutils x86_64 0.176-2.el7 base 305 k
flex x86_64 2.5.37-6.el7 base 293 k
gcc x86_64 4.8.5-39.el7 base 16 M
gcc-c++ x86_64 4.8.5-39.el7 base 7.2 M
gcc-gfortran x86_64 4.8.5-39.el7 base 6.7 M
indent x86_64 2.2.11-13.el7 base 150 k
intltool noarch 0.50.2-7.el7 base 59 k
libtool x86_64 2.4.2-22.el7_3 base 588 k
patch x86_64 2.7.1-12.el7_7 updates 111 k
patchutils x86_64 0.3.3-4.el7 base 104 k
rcs x86_64 5.9.0-5.el7 base 230 k
redhat-rpm-config noarch 9.1.0-88.el7.centos base 81 k
rpm-build x86_64 4.11.3-40.el7 base 149 k
rpm-sign x86_64 4.11.3-40.el7 base 48 k
subversion x86_64 1.7.14-14.el7 base 1.0 M
swig x86_64 2.0.10-5.el7 base 1.3 M
systemtap x86_64 4.0-10.el7_7 updates 15 k
Installing for dependencies:
apr x86_64 1.4.8-5.el7 base 103 k
apr-util x86_64 1.5.2-6.el7 base 92 k
boost-date-time x86_64 1.53.0-27.el7 base 52 k
cpp x86_64 4.8.5-39.el7 base 5.9 M
dwz x86_64 0.11-3.el7 base 99 k
dyninst x86_64 9.3.1-3.el7 base 3.5 M
efivar-libs x86_64 36-12.el7 base 88 k
emacs-filesystem noarch 1:24.3-22.el7 base 58 k
gdb x86_64 7.6.1-115.el7 base 2.4 M
gettext-common-devel noarch 0.19.8.1-2.el7 base 410 k
gettext-devel x86_64 0.19.8.1-2.el7 base 320 k
glibc-devel x86_64 2.17-292.el7 base 1.1 M
glibc-headers x86_64 2.17-292.el7 base 687 k
kernel-debug-devel x86_64 3.10.0-1062.9.1.el7 updates 18 M
kernel-headers x86_64 3.10.0-1062.9.1.el7 updates 8.7 M
libdwarf x86_64 20130207-4.el7 base 109 k
libgfortran x86_64 4.8.5-39.el7 base 300 k
libmodman x86_64 2.0.1-8.el7 base 28 k
libmpc x86_64 1.0.1-3.el7 base 51 k
libproxy x86_64 0.4.11-11.el7 base 64 k
libquadmath x86_64 4.8.5-39.el7 base 190 k
libquadmath-devel x86_64 4.8.5-39.el7 base 53 k
libstdc++-devel x86_64 4.8.5-39.el7 base 1.5 M
m4 x86_64 1.4.16-10.el7 base 256 k
mokutil x86_64 15-2.el7.centos base 42 k
mpfr x86_64 3.1.1-4.el7 base 203 k
neon x86_64 0.30.0-4.el7 base 166 k
pakchois x86_64 0.4-10.el7 base 14 k
perl-Data-Dumper x86_64 2.145-3.el7 base 47 k
perl-Test-Harness noarch 3.28-3.el7 base 302 k
perl-Thread-Queue noarch 3.02-2.el7 base 17 k
perl-XML-Parser x86_64 2.41-10.el7 base 223 k
perl-srpm-macros noarch 1-8.el7 base 4.6 k
python-srpm-macros noarch 3-32.el7 base 8.4 k
subversion-libs x86_64 1.7.14-14.el7 base 922 k
systemtap-client x86_64 4.0-10.el7_7 updates 3.6 M
systemtap-devel x86_64 4.0-10.el7_7 updates 2.2 M
systemtap-runtime x86_64 4.0-10.el7_7 updates 443 k
unzip x86_64 6.0-20.el7 base 170 k
zip x86_64 3.0-11.el7 base 260 k
Updating for dependencies:
elfutils-libelf x86_64 0.176-2.el7 base 194 k
elfutils-libs x86_64 0.176-2.el7 base 291 k
glibc x86_64 2.17-292.el7 base 3.6 M
glibc-common x86_64 2.17-292.el7 base 11 M
libgcc x86_64 4.8.5-39.el7 base 102 k
libgomp x86_64 4.8.5-39.el7 base 158 k
libstdc++ x86_64 4.8.5-39.el7 base 305 k
rpm x86_64 4.11.3-40.el7 base 1.2 M
rpm-build-libs x86_64 4.11.3-40.el7 base 107 k
rpm-libs x86_64 4.11.3-40.el7 base 278 k
rpm-python x86_64 4.11.3-40.el7 base 83 k
Transaction Summary
================================================================================================================================
Install 25 Packages (+40 Dependent packages)
Upgrade ( 11 Dependent packages)
Total download size: 110 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/76): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00:00
(2/76): apr-1.4.8-5.el7.x86_64.rpm | 103 kB 00:00:00
(3/76): bison-3.0.4-2.el7.x86_64.rpm | 674 kB 00:00:00
(4/76): automake-1.13.4-3.el7.noarch.rpm | 679 kB 00:00:00
(5/76): byacc-1.9.20130304-3.el7.x86_64.rpm | 65 kB 00:00:00
(6/76): boost-date-time-1.53.0-27.el7.x86_64.rpm | 52 kB 00:00:00
(7/76): cscope-15.8-10.el7.x86_64.rpm | 203 kB 00:00:00
(8/76): cpp-4.8.5-39.el7.x86_64.rpm | 5.9 MB 00:00:00
(9/76): diffstat-1.57-4.el7.x86_64.rpm | 35 kB 00:00:00
(10/76): ctags-5.8-13.el7.x86_64.rpm | 155 kB 00:00:00
(11/76): dwz-0.11-3.el7.x86_64.rpm | 99 kB 00:00:00
(12/76): doxygen-1.8.5-3.el7.x86_64.rpm | 3.6 MB 00:00:00
(13/76): efivar-libs-36-12.el7.x86_64.rpm | 88 kB 00:00:00
(14/76): dyninst-9.3.1-3.el7.x86_64.rpm | 3.5 MB 00:00:00
(15/76): elfutils-libelf-0.176-2.el7.x86_64.rpm | 194 kB 00:00:00
(16/76): elfutils-0.176-2.el7.x86_64.rpm | 305 kB 00:00:00
(17/76): emacs-filesystem-24.3-22.el7.noarch.rpm | 58 kB 00:00:00
(18/76): elfutils-libs-0.176-2.el7.x86_64.rpm | 291 kB 00:00:00
(19/76): flex-2.5.37-6.el7.x86_64.rpm | 293 kB 00:00:00
(20/76): gcc-4.8.5-39.el7.x86_64.rpm | 16 MB 00:00:00
(21/76): gcc-c++-4.8.5-39.el7.x86_64.rpm | 7.2 MB 00:00:00
(22/76): gdb-7.6.1-115.el7.x86_64.rpm | 2.4 MB 00:00:00
(23/76): gcc-gfortran-4.8.5-39.el7.x86_64.rpm | 6.7 MB 00:00:00
(24/76): glibc-2.17-292.el7.x86_64.rpm | 3.6 MB 00:00:00
(25/76): gettext-devel-0.19.8.1-2.el7.x86_64.rpm | 320 kB 00:00:00
(26/76): glibc-devel-2.17-292.el7.x86_64.rpm | 1.1 MB 00:00:00
(27/76): glibc-common-2.17-292.el7.x86_64.rpm | 11 MB 00:00:00
(28/76): indent-2.2.11-13.el7.x86_64.rpm | 150 kB 00:00:00
(29/76): glibc-headers-2.17-292.el7.x86_64.rpm | 687 kB 00:00:00
(30/76): kernel-headers-3.10.0-1062.9.1.el7.x86_64.rpm | 8.7 MB 00:00:00
(31/76): intltool-0.50.2-7.el7.noarch.rpm | 59 kB 00:00:00
(32/76): libdwarf-20130207-4.el7.x86_64.rpm | 109 kB 00:00:00
(33/76): libgfortran-4.8.5-39.el7.x86_64.rpm | 300 kB 00:00:00
(34/76): libgcc-4.8.5-39.el7.x86_64.rpm | 102 kB 00:00:00
(35/76): libgomp-4.8.5-39.el7.x86_64.rpm | 158 kB 00:00:00
(36/76): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00:00
(37/76): libproxy-0.4.11-11.el7.x86_64.rpm | 64 kB 00:00:00
(38/76): libmodman-2.0.1-8.el7.x86_64.rpm | 28 kB 00:00:00
(39/76): libquadmath-4.8.5-39.el7.x86_64.rpm | 190 kB 00:00:00
(40/76): libquadmath-devel-4.8.5-39.el7.x86_64.rpm | 53 kB 00:00:00
(41/76): libstdc++-4.8.5-39.el7.x86_64.rpm | 305 kB 00:00:00
(42/76): libstdc++-devel-4.8.5-39.el7.x86_64.rpm | 1.5 MB 00:00:00
(43/76): m4-1.4.16-10.el7.x86_64.rpm | 256 kB 00:00:00
(44/76): mokutil-15-2.el7.centos.x86_64.rpm | 42 kB 00:00:00
(45/76): libtool-2.4.2-22.el7_3.x86_64.rpm | 588 kB 00:00:00
(46/76): kernel-debug-devel-3.10.0-1062.9.1.el7.x86_64.rpm | 18 MB 00:00:01
(47/76): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00:00
(48/76): neon-0.30.0-4.el7.x86_64.rpm | 166 kB 00:00:00
(49/76): pakchois-0.4-10.el7.x86_64.rpm | 14 kB 00:00:00
(50/76): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | 47 kB 00:00:00
(51/76): patch-2.7.1-12.el7_7.x86_64.rpm | 111 kB 00:00:00
(52/76): patchutils-0.3.3-4.el7.x86_64.rpm | 104 kB 00:00:00
(53/76): perl-Test-Harness-3.28-3.el7.noarch.rpm | 302 kB 00:00:00
(54/76): perl-Thread-Queue-3.02-2.el7.noarch.rpm | 17 kB 00:00:00
(55/76): perl-srpm-macros-1-8.el7.noarch.rpm | 4.6 kB 00:00:00
(56/76): perl-XML-Parser-2.41-10.el7.x86_64.rpm | 223 kB 00:00:00
(57/76): python-srpm-macros-3-32.el7.noarch.rpm | 8.4 kB 00:00:00
(58/76): redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm | 81 kB 00:00:00
(59/76): rcs-5.9.0-5.el7.x86_64.rpm | 230 kB 00:00:00
(60/76): rpm-4.11.3-40.el7.x86_64.rpm | 1.2 MB 00:00:00
(61/76): rpm-build-libs-4.11.3-40.el7.x86_64.rpm | 107 kB 00:00:00
(62/76): rpm-build-4.11.3-40.el7.x86_64.rpm | 149 kB 00:00:00
(63/76): rpm-libs-4.11.3-40.el7.x86_64.rpm | 278 kB 00:00:00
(64/76): rpm-sign-4.11.3-40.el7.x86_64.rpm | 48 kB 00:00:00
(65/76): rpm-python-4.11.3-40.el7.x86_64.rpm | 83 kB 00:00:00
(66/76): subversion-libs-1.7.14-14.el7.x86_64.rpm | 922 kB 00:00:00
(67/76): subversion-1.7.14-14.el7.x86_64.rpm | 1.0 MB 00:00:00
(68/76): swig-2.0.10-5.el7.x86_64.rpm | 1.3 MB 00:00:00
(69/76): systemtap-client-4.0-10.el7_7.x86_64.rpm | 3.6 MB 00:00:00
(70/76): systemtap-4.0-10.el7_7.x86_64.rpm | 15 kB 00:00:00
(71/76): systemtap-devel-4.0-10.el7_7.x86_64.rpm | 2.2 MB 00:00:00
(72/76): unzip-6.0-20.el7.x86_64.rpm | 170 kB 00:00:00
(73/76): zip-3.0-11.el7.x86_64.rpm | 260 kB 00:00:00
(74/76): systemtap-runtime-4.0-10.el7_7.x86_64.rpm | 443 kB 00:00:00
(75/76): gettext-common-devel-0.19.8.1-2.el7.noarch.rpm | 410 kB 00:00:07
autoconf-2.69-11.el7.noarch.rp FAILED
http://mirrors.aliyun.com/centos/7.7.1908/os/x86_64/Packages/autoconf-2.69-11.el7.noarch.rpm: [Errno 14] curl#56 - "Recv failure: Connection reset by peer"
Trying other mirror.
(76/76): autoconf-2.69-11.el7.noarch.rpm | 701 kB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------
Total 5.1 MB/s | 110 MB 00:00:21
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : libgcc-4.8.5-39.el7.x86_64 1/87
Updating : glibc-2.17-292.el7.x86_64 2/87
warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
Updating : glibc-common-2.17-292.el7.x86_64 3/87
Updating : elfutils-libelf-0.176-2.el7.x86_64 4/87
Updating : libstdc++-4.8.5-39.el7.x86_64 5/87
Updating : rpm-libs-4.11.3-40.el7.x86_64 6/87
Updating : rpm-4.11.3-40.el7.x86_64 7/87
Installing : mpfr-3.1.1-4.el7.x86_64 8/87
Installing : libmpc-1.0.1-3.el7.x86_64 9/87
Updating : rpm-build-libs-4.11.3-40.el7.x86_64 10/87
Updating : elfutils-libs-0.176-2.el7.x86_64 11/87
Installing : apr-1.4.8-5.el7.x86_64 12/87
Installing : libquadmath-4.8.5-39.el7.x86_64 13/87
Installing : m4-1.4.16-10.el7.x86_64 14/87
Installing : apr-util-1.5.2-6.el7.x86_64 15/87
Installing : unzip-6.0-20.el7.x86_64 16/87
Installing : patch-2.7.1-12.el7_7.x86_64 17/87
Installing : zip-3.0-11.el7.x86_64 18/87
Installing : perl-Thread-Queue-3.02-2.el7.noarch 19/87
Installing : libgfortran-4.8.5-39.el7.x86_64 20/87
Installing : elfutils-0.176-2.el7.x86_64 21/87
Installing : cpp-4.8.5-39.el7.x86_64 22/87
Installing : boost-date-time-1.53.0-27.el7.x86_64 23/87
Installing : libmodman-2.0.1-8.el7.x86_64 24/87
Installing : libproxy-0.4.11-11.el7.x86_64 25/87
Installing : libstdc++-devel-4.8.5-39.el7.x86_64 26/87
Installing : libdwarf-20130207-4.el7.x86_64 27/87
Installing : dyninst-9.3.1-3.el7.x86_64 28/87
Installing : systemtap-runtime-4.0-10.el7_7.x86_64 29/87
Installing : dwz-0.11-3.el7.x86_64 30/87
Installing : perl-Data-Dumper-2.145-3.el7.x86_64 31/87
Installing : autoconf-2.69-11.el7.noarch 32/87
Installing : perl-XML-Parser-2.41-10.el7.x86_64 33/87
Installing : pakchois-0.4-10.el7.x86_64 34/87
Installing : neon-0.30.0-4.el7.x86_64 35/87
Installing : subversion-libs-1.7.14-14.el7.x86_64 36/87
Updating : libgomp-4.8.5-39.el7.x86_64 37/87
Installing : efivar-libs-36-12.el7.x86_64 38/87
Installing : mokutil-15-2.el7.centos.x86_64 39/87
Installing : systemtap-client-4.0-10.el7_7.x86_64 40/87
Installing : gdb-7.6.1-115.el7.x86_64 41/87
Installing : kernel-debug-devel-3.10.0-1062.9.1.el7.x86_64 42/87
Installing : 1:emacs-filesystem-24.3-22.el7.noarch 43/87
Installing : perl-srpm-macros-1-8.el7.noarch 44/87
Installing : perl-Test-Harness-3.28-3.el7.noarch 45/87
Installing : automake-1.13.4-3.el7.noarch 46/87
Installing : gettext-common-devel-0.19.8.1-2.el7.noarch 47/87
Installing : gettext-devel-0.19.8.1-2.el7.x86_64 48/87
Installing : kernel-headers-3.10.0-1062.9.1.el7.x86_64 49/87
Installing : glibc-headers-2.17-292.el7.x86_64 50/87
Installing : glibc-devel-2.17-292.el7.x86_64 51/87
Installing : gcc-4.8.5-39.el7.x86_64 52/87
Installing : libquadmath-devel-4.8.5-39.el7.x86_64 53/87
Installing : systemtap-devel-4.0-10.el7_7.x86_64 54/87
Installing : python-srpm-macros-3-32.el7.noarch 55/87
Installing : redhat-rpm-config-9.1.0-88.el7.centos.noarch 56/87
Installing : rpm-build-4.11.3-40.el7.x86_64 57/87
Installing : systemtap-4.0-10.el7_7.x86_64 58/87
Installing : gcc-gfortran-4.8.5-39.el7.x86_64 59/87
Installing : gcc-c++-4.8.5-39.el7.x86_64 60/87
Installing : libtool-2.4.2-22.el7_3.x86_64 61/87
Installing : intltool-0.50.2-7.el7.noarch 62/87
Installing : cscope-15.8-10.el7.x86_64 63/87
Installing : subversion-1.7.14-14.el7.x86_64 64/87
Installing : flex-2.5.37-6.el7.x86_64 65/87
Installing : bison-3.0.4-2.el7.x86_64 66/87
Installing : rpm-sign-4.11.3-40.el7.x86_64 67/87
Updating : rpm-python-4.11.3-40.el7.x86_64 68/87
Installing : 1:doxygen-1.8.5-3.el7.x86_64 69/87
Installing : swig-2.0.10-5.el7.x86_64 70/87
Installing : patchutils-0.3.3-4.el7.x86_64 71/87
Installing : rcs-5.9.0-5.el7.x86_64 72/87
Installing : diffstat-1.57-4.el7.x86_64 73/87
Installing : byacc-1.9.20130304-3.el7.x86_64 74/87
Installing : ctags-5.8-13.el7.x86_64 75/87
Installing : indent-2.2.11-13.el7.x86_64 76/87
Cleanup : rpm-python-4.11.3-35.el7.x86_64 77/87
Cleanup : rpm-build-libs-4.11.3-35.el7.x86_64 78/87
Cleanup : rpm-4.11.3-35.el7.x86_64 79/87
Cleanup : rpm-libs-4.11.3-35.el7.x86_64 80/87
Cleanup : elfutils-libs-0.172-2.el7.x86_64 81/87
Cleanup : libstdc++-4.8.5-36.el7.x86_64 82/87
Cleanup : elfutils-libelf-0.172-2.el7.x86_64 83/87
Cleanup : libgomp-4.8.5-36.el7.x86_64 84/87
Cleanup : glibc-2.17-260.el7.x86_64 85/87
Cleanup : glibc-common-2.17-260.el7.x86_64 86/87
Cleanup : libgcc-4.8.5-36.el7.x86_64 87/87
Verifying : apr-1.4.8-5.el7.x86_64 1/87
Verifying : libdwarf-20130207-4.el7.x86_64 2/87
Verifying : gcc-4.8.5-39.el7.x86_64 3/87
Verifying : 1:doxygen-1.8.5-3.el7.x86_64 4/87
Verifying : python-srpm-macros-3-32.el7.noarch 5/87
Verifying : kernel-headers-3.10.0-1062.9.1.el7.x86_64 6/87
Verifying : glibc-common-2.17-292.el7.x86_64 7/87
Verifying : swig-2.0.10-5.el7.x86_64 8/87
Verifying : gettext-common-devel-0.19.8.1-2.el7.noarch 9/87
Verifying : boost-date-time-1.53.0-27.el7.x86_64 10/87
Verifying : perl-Data-Dumper-2.145-3.el7.x86_64 11/87
Verifying : rpm-build-4.11.3-40.el7.x86_64 12/87
Verifying : apr-util-1.5.2-6.el7.x86_64 13/87
Verifying : systemtap-client-4.0-10.el7_7.x86_64 14/87
Verifying : rpm-libs-4.11.3-40.el7.x86_64 15/87
Verifying : libquadmath-devel-4.8.5-39.el7.x86_64 16/87
Verifying : patchutils-0.3.3-4.el7.x86_64 17/87
Verifying : rcs-5.9.0-5.el7.x86_64 18/87
Verifying : autoconf-2.69-11.el7.noarch 19/87
Verifying : elfutils-0.176-2.el7.x86_64 20/87
Verifying : diffstat-1.57-4.el7.x86_64 21/87
Verifying : libgfortran-4.8.5-39.el7.x86_64 22/87
Verifying : libquadmath-4.8.5-39.el7.x86_64 23/87
Verifying : perl-XML-Parser-2.41-10.el7.x86_64 24/87
Verifying : unzip-6.0-20.el7.x86_64 25/87
Verifying : libstdc++-4.8.5-39.el7.x86_64 26/87
Verifying : subversion-1.7.14-14.el7.x86_64 27/87
Verifying : systemtap-4.0-10.el7_7.x86_64 28/87
Verifying : dyninst-9.3.1-3.el7.x86_64 29/87
Verifying : libmodman-2.0.1-8.el7.x86_64 30/87
Verifying : gcc-c++-4.8.5-39.el7.x86_64 31/87
Verifying : libmpc-1.0.1-3.el7.x86_64 32/87
Verifying : pakchois-0.4-10.el7.x86_64 33/87
Verifying : glibc-devel-2.17-292.el7.x86_64 34/87
Verifying : systemtap-devel-4.0-10.el7_7.x86_64 35/87
Verifying : mokutil-15-2.el7.centos.x86_64 36/87
Verifying : elfutils-libs-0.176-2.el7.x86_64 37/87
Verifying : cpp-4.8.5-39.el7.x86_64 38/87
Verifying : perl-Test-Harness-3.28-3.el7.noarch 39/87
Verifying : glibc-headers-2.17-292.el7.x86_64 40/87
Verifying : rpm-build-libs-4.11.3-40.el7.x86_64 41/87
Verifying : gettext-devel-0.19.8.1-2.el7.x86_64 42/87
Verifying : byacc-1.9.20130304-3.el7.x86_64 43/87
Verifying : m4-1.4.16-10.el7.x86_64 44/87
Verifying : perl-srpm-macros-1-8.el7.noarch 45/87
Verifying : libgomp-4.8.5-39.el7.x86_64 46/87
Verifying : libtool-2.4.2-22.el7_3.x86_64 47/87
Verifying : patch-2.7.1-12.el7_7.x86_64 48/87
Verifying : gcc-gfortran-4.8.5-39.el7.x86_64 49/87
Verifying : flex-2.5.37-6.el7.x86_64 50/87
Verifying : cscope-15.8-10.el7.x86_64 51/87
Verifying : rpm-4.11.3-40.el7.x86_64 52/87
Verifying : mpfr-3.1.1-4.el7.x86_64 53/87
Verifying : efivar-libs-36-12.el7.x86_64 54/87
Verifying : dwz-0.11-3.el7.x86_64 55/87
Verifying : systemtap-runtime-4.0-10.el7_7.x86_64 56/87
Verifying : rpm-sign-4.11.3-40.el7.x86_64 57/87
Verifying : ctags-5.8-13.el7.x86_64 58/87
Verifying : automake-1.13.4-3.el7.noarch 59/87
Verifying : neon-0.30.0-4.el7.x86_64 60/87
Verifying : 1:emacs-filesystem-24.3-22.el7.noarch 61/87
Verifying : kernel-debug-devel-3.10.0-1062.9.1.el7.x86_64 62/87
Verifying : perl-Thread-Queue-3.02-2.el7.noarch 63/87
Verifying : libgcc-4.8.5-39.el7.x86_64 64/87
Verifying : intltool-0.50.2-7.el7.noarch 65/87
Verifying : libstdc++-devel-4.8.5-39.el7.x86_64 66/87
Verifying : rpm-python-4.11.3-40.el7.x86_64 67/87
Verifying : indent-2.2.11-13.el7.x86_64 68/87
Verifying : glibc-2.17-292.el7.x86_64 69/87
Verifying : libproxy-0.4.11-11.el7.x86_64 70/87
Verifying : bison-3.0.4-2.el7.x86_64 71/87
Verifying : subversion-libs-1.7.14-14.el7.x86_64 72/87
Verifying : zip-3.0-11.el7.x86_64 73/87
Verifying : gdb-7.6.1-115.el7.x86_64 74/87
Verifying : elfutils-libelf-0.176-2.el7.x86_64 75/87
Verifying : redhat-rpm-config-9.1.0-88.el7.centos.noarch 76/87
Verifying : rpm-python-4.11.3-35.el7.x86_64 77/87
Verifying : libgcc-4.8.5-36.el7.x86_64 78/87
Verifying : libstdc++-4.8.5-36.el7.x86_64 79/87
Verifying : libgomp-4.8.5-36.el7.x86_64 80/87
Verifying : rpm-libs-4.11.3-35.el7.x86_64 81/87
Verifying : rpm-build-libs-4.11.3-35.el7.x86_64 82/87
Verifying : elfutils-libelf-0.172-2.el7.x86_64 83/87
Verifying : elfutils-libs-0.172-2.el7.x86_64 84/87
Verifying : glibc-2.17-260.el7.x86_64 85/87
Verifying : rpm-4.11.3-35.el7.x86_64 86/87
Verifying : glibc-common-2.17-260.el7.x86_64 87/87
Installed:
autoconf.noarch 0:2.69-11.el7 automake.noarch 0:1.13.4-3.el7 bison.x86_64 0:3.0.4-2.el7
byacc.x86_64 0:1.9.20130304-3.el7 cscope.x86_64 0:15.8-10.el7 ctags.x86_64 0:5.8-13.el7
diffstat.x86_64 0:1.57-4.el7 doxygen.x86_64 1:1.8.5-3.el7 elfutils.x86_64 0:0.176-2.el7
flex.x86_64 0:2.5.37-6.el7 gcc.x86_64 0:4.8.5-39.el7 gcc-c++.x86_64 0:4.8.5-39.el7
gcc-gfortran.x86_64 0:4.8.5-39.el7 indent.x86_64 0:2.2.11-13.el7 intltool.noarch 0:0.50.2-7.el7
libtool.x86_64 0:2.4.2-22.el7_3 patch.x86_64 0:2.7.1-12.el7_7 patchutils.x86_64 0:0.3.3-4.el7
rcs.x86_64 0:5.9.0-5.el7 redhat-rpm-config.noarch 0:9.1.0-88.el7.centos rpm-build.x86_64 0:4.11.3-40.el7
rpm-sign.x86_64 0:4.11.3-40.el7 subversion.x86_64 0:1.7.14-14.el7 swig.x86_64 0:2.0.10-5.el7
systemtap.x86_64 0:4.0-10.el7_7
Dependency Installed:
apr.x86_64 0:1.4.8-5.el7 apr-util.x86_64 0:1.5.2-6.el7
boost-date-time.x86_64 0:1.53.0-27.el7 cpp.x86_64 0:4.8.5-39.el7
dwz.x86_64 0:0.11-3.el7 dyninst.x86_64 0:9.3.1-3.el7
efivar-libs.x86_64 0:36-12.el7 emacs-filesystem.noarch 1:24.3-22.el7
gdb.x86_64 0:7.6.1-115.el7 gettext-common-devel.noarch 0:0.19.8.1-2.el7
gettext-devel.x86_64 0:0.19.8.1-2.el7 glibc-devel.x86_64 0:2.17-292.el7
glibc-headers.x86_64 0:2.17-292.el7 kernel-debug-devel.x86_64 0:3.10.0-1062.9.1.el7
kernel-headers.x86_64 0:3.10.0-1062.9.1.el7 libdwarf.x86_64 0:20130207-4.el7
libgfortran.x86_64 0:4.8.5-39.el7 libmodman.x86_64 0:2.0.1-8.el7
libmpc.x86_64 0:1.0.1-3.el7 libproxy.x86_64 0:0.4.11-11.el7
libquadmath.x86_64 0:4.8.5-39.el7 libquadmath-devel.x86_64 0:4.8.5-39.el7
libstdc++-devel.x86_64 0:4.8.5-39.el7 m4.x86_64 0:1.4.16-10.el7
mokutil.x86_64 0:15-2.el7.centos mpfr.x86_64 0:3.1.1-4.el7
neon.x86_64 0:0.30.0-4.el7 pakchois.x86_64 0:0.4-10.el7
perl-Data-Dumper.x86_64 0:2.145-3.el7 perl-Test-Harness.noarch 0:3.28-3.el7
perl-Thread-Queue.noarch 0:3.02-2.el7 perl-XML-Parser.x86_64 0:2.41-10.el7
perl-srpm-macros.noarch 0:1-8.el7 python-srpm-macros.noarch 0:3-32.el7
subversion-libs.x86_64 0:1.7.14-14.el7 systemtap-client.x86_64 0:4.0-10.el7_7
systemtap-devel.x86_64 0:4.0-10.el7_7 systemtap-runtime.x86_64 0:4.0-10.el7_7
unzip.x86_64 0:6.0-20.el7 zip.x86_64 0:3.0-11.el7
Dependency Updated:
elfutils-libelf.x86_64 0:0.176-2.el7 elfutils-libs.x86_64 0:0.176-2.el7 glibc.x86_64 0:2.17-292.el7
glibc-common.x86_64 0:2.17-292.el7 libgcc.x86_64 0:4.8.5-39.el7 libgomp.x86_64 0:4.8.5-39.el7
libstdc++.x86_64 0:4.8.5-39.el7 rpm.x86_64 0:4.11.3-40.el7 rpm-build-libs.x86_64 0:4.11.3-40.el7
rpm-libs.x86_64 0:4.11.3-40.el7 rpm-python.x86_64 0:4.11.3-40.el7
Complete!
[root@localhost source]# yum install -y ncurses-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirror.bit.edu.cn
* updates: mirrors.huaweicloud.com
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.9-14.20130511.el7_4 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
ncurses-devel x86_64 5.9-14.20130511.el7_4 base 712 k
Transaction Summary
================================================================================================================================
Install 1 Package
Total download size: 712 k
Installed size: 2.1 M
Downloading packages:
ncurses-devel-5.9-14.20130511.el7_4.x86_64.rpm | 712 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : ncurses-devel-5.9-14.20130511.el7_4.x86_64 1/1
Verifying : ncurses-devel-5.9-14.20130511.el7_4.x86_64 1/1
Installed:
ncurses-devel.x86_64 0:5.9-14.20130511.el7_4
Complete!
[root@localhost source]#
0x3、安装KVM运行make menuconfig
[root@localhost kvm]# pwd
/usr/local/src/kvm
[root@localhost kvm]# uname -a
Linux localhost 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost kvm]# cp /boot/config-3.10.0-957.el7.x86_64 .config
[root@localhost kvm]# make menuconfig
需要找到虚拟化选项Virtualization回车
[root@localhost kvm]# make menuconfig
HOSTCC scripts/basic/fixdep
UPD scripts/kconfig/mconf-cfg
HOSTCC scripts/kconfig/mconf.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
HOSTCC scripts/kconfig/lxdialog/inputbox.o
HOSTCC scripts/kconfig/lxdialog/menubox.o
HOSTCC scripts/kconfig/lxdialog/textbox.o
HOSTCC scripts/kconfig/lxdialog/util.o
HOSTCC scripts/kconfig/lxdialog/yesno.o
HOSTCC scripts/kconfig/confdata.o
HOSTCC scripts/kconfig/expr.o
LEX scripts/kconfig/lexer.lex.c
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTCC scripts/kconfig/util.o
HOSTLD scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
.config:687:warning: symbol value 'm' invalid for CPU_FREQ_STAT
.config:929:warning: symbol value 'm' invalid for NF_CT_PROTO_GRE
.config:957:warning: symbol value 'm' invalid for NF_NAT_REDIRECT
.config:960:warning: symbol value 'm' invalid for NF_TABLES_INET
.config:1127:warning: symbol value 'm' invalid for NF_TABLES_IPV4
.config:1131:warning: symbol value 'm' invalid for NF_TABLES_ARP
.config:1172:warning: symbol value 'm' invalid for NF_TABLES_IPV6
.config:1549:warning: symbol value 'm' invalid for NET_DEVLINK
.config:3632:warning: symbol value 'm' invalid for LIRC
.config:4201:warning: symbol value 'm' invalid for HSA_AMD
configuration written to .config
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
[root@localhost kvm]# yum install ncurses*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirror.bit.edu.cn
* updates: mirrors.huaweicloud.com
Package ncurses-devel-5.9-14.20130511.el7_4.x86_64 already installed and latest version
Package ncurses-5.9-14.20130511.el7_4.x86_64 already installed and latest version
Package ncurses-libs-5.9-14.20130511.el7_4.x86_64 already installed and latest version
Package ncurses-base-5.9-14.20130511.el7_4.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package ncurses-static.x86_64 0:5.9-14.20130511.el7_4 will be installed
---> Package ncurses-term.noarch 0:5.9-14.20130511.el7_4 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
ncurses-static x86_64 5.9-14.20130511.el7_4 base 495 k
ncurses-term noarch 5.9-14.20130511.el7_4 base 543 k
Transaction Summary
================================================================================================================================
Install 2 Packages
Total download size: 1.0 M
Installed size: 5.6 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): ncurses-static-5.9-14.20130511.el7_4.x86_64.rpm | 495 kB 00:00:01
(2/2): ncurses-term-5.9-14.20130511.el7_4.noarch.rpm | 543 kB 00:00:01
--------------------------------------------------------------------------------------------------------------------------------
Total 522 kB/s | 1.0 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : ncurses-term-5.9-14.20130511.el7_4.noarch 1/2
Installing : ncurses-static-5.9-14.20130511.el7_4.x86_64 2/2
Verifying : ncurses-static-5.9-14.20130511.el7_4.x86_64 1/2
Verifying : ncurses-term-5.9-14.20130511.el7_4.noarch 2/2
Installed:
ncurses-static.x86_64 0:5.9-14.20130511.el7_4 ncurses-term.noarch 0:5.9-14.20130511.el7_4
Complete!
[root@localhost kvm]# yum install openssl openssl-devel
0x4 编译排错
[root@localhost kvm]# make vmlinux -j 20
error: Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel
make[1]: *** [prepare-objtool] Error 1
make: *** [sub-make] Error 2
#解决方法
[root@localhost kvm]# yum install elfutils-libelf-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirror.bit.edu.cn
* updates: mirrors.huaweicloud.com
Resolving Dependencies
--> Running transaction check
---> Package elfutils-libelf-devel.x86_64 0:0.176-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
elfutils-libelf-devel x86_64 0.176-2.el7 base 39 k
Transaction Summary
================================================================================================================================
Install 1 Package
Total download size: 39 k
Installed size: 32 k
Is this ok [y/d/N]: y
Downloading packages:
elfutils-libelf-devel-0.176-2.el7.x86_64.rpm | 39 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : elfutils-libelf-devel-0.176-2.el7.x86_64 1/1
Verifying : elfutils-libelf-devel-0.176-2.el7.x86_64 1/1
Installed:
elfutils-libelf-devel.x86_64 0:0.176-2.el7
Complete!
继续编译
/bin/sh: bc: command not found
make[2]: *** [include/generated/timeconst.h] Error 127
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2
解决方法 缺少bc
yum install -y bc
[root@localhost kvm]# yum install -y bc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirror.bit.edu.cn
* updates: mirrors.huaweicloud.com
Resolving Dependencies
--> Running transaction check
---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
bc x86_64 1.06.95-13.el7 base 115 k
Transaction Summary
================================================================================================================================
Install 1 Package
Total download size: 115 k
Installed size: 215 k
Downloading packages:
bc-1.06.95-13.el7.x86_64.rpm | 115 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : bc-1.06.95-13.el7.x86_64 1/1
Verifying : bc-1.06.95-13.el7.x86_64 1/1
Installed:
bc.x86_64 0:1.06.95-13.el7
Complete!
重新执行make vmlinux -j 20 #编译内核kernel
配置太高竟然完事了,编译命令中 -j 参数不是必须的,根据自己电脑的性能。他可以让make工具具有多进程来编译可以提升工作效率。
0x5 编译make bzImage
make bzImage ##敲完等着跑 风扇开始转
生成bzImage
0x6 编译模块
make modules -j 20 ##开始
``
如果失败执行安装工具和库
yum groupinstall "Development Libraries"
yum groupinstall "Development Tools"
yum groupinstall "Development tools" "Additional Development"
0x7 安装模块
make modules_install
005.png
安装成功!到此KVM已经编译安装完毕
0x8 安装内核kernel和initramfs
make install
[root@localhost kvm]# make install
sh ./arch/x86/boot/install.sh 5.4.0+ arch/x86/boot/bzImage \
System.map "/boot"
[root@localhost kvm]# ll /boot -t
total 161464
drwx------. 5 root root 97 Jan 5 13:39 grub2
-rw-------. 1 root root 56666044 Jan 5 13:39 initramfs-5.4.0+.img
lrwxrwxrwx. 1 root root 23 Jan 5 13:38 System.map -> /boot/System.map-5.4.0+
lrwxrwxrwx. 1 root root 20 Jan 5 13:38 vmlinuz -> /boot/vmlinuz-5.4.0+
-rw-r--r--. 1 root root 3963149 Jan 5 13:38 System.map-5.4.0+
-rw-r--r--. 1 root root 8505216 Jan 5 13:38 vmlinuz-5.4.0+
drwxr-xr-x. 2 root root 4096 Jan 5 05:45 extlinux
-rw-------. 1 root root 21740933 Jan 4 23:24 initramfs-3.10.0-957.el7.x86_64.img
-rwxr-xr-x. 1 root root 6639904 Jan 4 23:23 vmlinuz-0-rescue-e28d4d3d8df1400c8b2b997d4db454fc
-rw-------. 1 root root 57146467 Jan 4 23:23 initramfs-0-rescue-e28d4d3d8df1400c8b2b997d4db454fc.img
drwxr-xr-x. 2 root root 27 Jan 4 23:21 grub
drwxr-xr-x. 3 root root 17 Jan 4 23:21 efi
-rw-r--r--. 1 root root 314036 Nov 8 2018 symvers-3.10.0-957.el7.x86_64.gz
-rwxr-xr-x. 1 root root 6639904 Nov 8 2018 vmlinuz-3.10.0-957.el7.x86_64
-rw-r--r--. 1 root root 151918 Nov 8 2018 config-3.10.0-957.el7.x86_64
-rw-------. 1 root root 3543471 Nov 8 2018 System.map-3.10.0-957.el7.x86_64
[root@localhost kvm]#
0x9 KVM安装完毕下载Qemu编译安装
[root@localhost src]# git clone https://kernel.googlesource.com/pub/scm/virt/kvm/qemu-kvm.git
Cloning into 'qemu-kvm'...
remote: Sending approximately 149.48 MiB ...
remote: Counting objects: 4398, done
remote: Total 471611 (delta 378049), reused 471611 (delta 378049)
Receiving objects: 100% (471611/471611), 149.48 MiB | 4.22 MiB/s, done.
Resolving deltas: 100% (378049/378049), done.
006.png
安装编译工具
yum install -y zlib-devel glib2 glib2-devel
网友评论