一 安装KVM

1、Check CPU是否支持虚拟化,输出vmx或svm则支持。

[root@kvmhost001 xml]#  cat /proc/cpuinfo | egrep 'vmx|svm'  

flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec arat md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec arat md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec arat md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec arat md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec arat md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec arat md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec arat md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

flags  : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch ssbd ibrs ibpb stibp tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec arat md_clear spec_ctrl intel_stibp flush_l1d arch_capabilities

[root@kvmhost001 xml]#

2、查看系统版本

[root@kvmhost001 xml]# cat /etc/centos-release

CentOS Linux release 7.7.1908 (Core)

[root@kvmhost001 xml]#


3、查看是否加载KVM

[root@kvmhost001 xml]#  lsmod | grep kvm

kvm_intel             188644  0  
kvm                   621480  1 kvm_intel

irqbypass              13503  1 kvm

[root@kvmhost001 xml]#

如上显示则已加载,否则执行如下命令:

[root@kvmhost001 xml]# modprobe kvm


4、关闭selinux

<可选>

5、安装KVM相关软件包

[root@kvmhost001 xml]# yum install qemu-kvm qemu-img \

virt-manager libvirt libvirt-python virt-manager \

libvirt-client virt-install virt-viewer -y


qemu-kvm: KVM模块

libvirt: 虚拟管理模块

virt-manager: 图形界面管理虚拟机

virt-install: 虚拟机命令行安装工具


[root@kvmhost001 xml]# yum install qemu-kvm qemu-img \
> virt-manager libvirt libvirt-python virt-manager \
> libvirt-client virt-install virt-viewer -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.ustc.edu.cn
 * extras: mirrors.ustc.edu.cn
 * updates: mirrors.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package libvirt.x86_64 0:4.5.0-36.el7_9.3 will be installed
--> Processing Dependency: libvirt-libs = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-secret = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-qemu = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-nwfilter = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-nodedev = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-network = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-lxc = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-interface = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-config-nwfilter = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-config-network = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon = 4.5.0-36.el7_9.3 for package: libvirt-4.5.0-36.el7_9.3.x86_64
---> Package libvirt-client.x86_64 0:4.5.0-36.el7_9.3 will be installed
--> Processing Dependency: libvirt-bash-completion = 4.5.0-36.el7_9.3 for package: libvirt-client-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: gnutls-utils for package: libvirt-client-4.5.0-36.el7_9.3.x86_64
---> Package libvirt-python.x86_64 0:4.5.0-1.el7 will be installed
---> Package qemu-img.x86_64 10:1.5.3-167.el7 will be updated
---> Package qemu-img.x86_64 10:1.5.3-175.el7_9.1 will be an update
--> Processing Dependency: libgfapi.so.0(GFAPI_6.0)(64bit) for package: 10:qemu-img-1.5.3-175.el7_9.1.x86_64
---> Package qemu-kvm.x86_64 10:1.5.3-167.el7 will be updated
---> Package qemu-kvm.x86_64 10:1.5.3-175.el7_9.1 will be an update
--> Processing Dependency: qemu-kvm-common = 10:1.5.3-175.el7_9.1 for package: 10:qemu-kvm-1.5.3-175.el7_9.1.x86_64
---> Package virt-install.noarch 0:1.5.0-7.el7 will be installed
--> Processing Dependency: virt-manager-common = 1.5.0-7.el7 for package: virt-install-1.5.0-7.el7.noarch
---> Package virt-manager.noarch 0:1.5.0-7.el7 will be installed
---> Package virt-viewer.x86_64 0:5.0-18.el7 will be installed
--> Running transaction check
---> Package glusterfs-api.x86_64 0:3.12.2-47.2.el7 will be updated
---> Package glusterfs-api.x86_64 0:6.0-37.el7 will be an update
--> Processing Dependency: glusterfs-libs(x86-64) = 6.0-37.el7 for package: glusterfs-api-6.0-37.el7.x86_64
--> Processing Dependency: glusterfs-client-xlators(x86-64) = 6.0-37.el7 for package: glusterfs-api-6.0-37.el7.x86_64
--> Processing Dependency: glusterfs(x86-64) = 6.0-37.el7 for package: glusterfs-api-6.0-37.el7.x86_64
---> Package gnutls-utils.x86_64 0:3.3.29-9.el7_6 will be installed
--> Processing Dependency: gnutls-dane(x86-64) = 3.3.29-9.el7_6 for package: gnutls-utils-3.3.29-9.el7_6.x86_64
--> Processing Dependency: libgnutls-dane.so.0(DANE_0_0)(64bit) for package: gnutls-utils-3.3.29-9.el7_6.x86_64
--> Processing Dependency: libgnutls-dane.so.0()(64bit) for package: gnutls-utils-3.3.29-9.el7_6.x86_64
---> Package libvirt-bash-completion.x86_64 0:4.5.0-36.el7_9.3 will be installed
---> Package libvirt-daemon.x86_64 0:4.5.0-23.el7 will be updated
--> Processing Dependency: libvirt-daemon = 4.5.0-23.el7 for package: libvirt-daemon-driver-storage-core-4.5.0-23.el7.x86_64
--> Processing Dependency: libvirt-daemon = 4.5.0-23.el7 for package: libvirt-daemon-kvm-4.5.0-23.el7.x86_64
---> Package libvirt-daemon.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-config-network.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-config-network.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-config-nwfilter.x86_64 0:4.5.0-36.el7_9.3 will be installed
---> Package libvirt-daemon-driver-interface.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-interface.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-lxc.x86_64 0:4.5.0-36.el7_9.3 will be installed
---> Package libvirt-daemon-driver-network.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-network.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-nodedev.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-nodedev.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-nwfilter.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-nwfilter.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-qemu.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-qemu.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-secret.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-secret.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-storage.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage.x86_64 0:4.5.0-36.el7_9.3 will be an update
--> Processing Dependency: libvirt-daemon-driver-storage-scsi = 4.5.0-36.el7_9.3 for package: libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-rbd = 4.5.0-36.el7_9.3 for package: libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-mpath = 4.5.0-36.el7_9.3 for package: libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-logical = 4.5.0-36.el7_9.3 for package: libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-iscsi = 4.5.0-36.el7_9.3 for package: libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-gluster = 4.5.0-36.el7_9.3 for package: libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64
--> Processing Dependency: libvirt-daemon-driver-storage-disk = 4.5.0-36.el7_9.3 for package: libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64
---> Package libvirt-libs.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-libs.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package qemu-kvm-common.x86_64 10:1.5.3-167.el7 will be updated
---> Package qemu-kvm-common.x86_64 10:1.5.3-175.el7_9.1 will be an update
---> Package virt-manager-common.noarch 0:1.5.0-7.el7 will be installed
--> Processing Dependency: python-ipaddr for package: virt-manager-common-1.5.0-7.el7.noarch
--> Running transaction check
---> Package glusterfs.x86_64 0:3.12.2-47.2.el7 will be updated
--> Processing Dependency: glusterfs(x86-64) = 3.12.2-47.2.el7 for package: glusterfs-fuse-3.12.2-47.2.el7.x86_64
---> Package glusterfs.x86_64 0:6.0-37.el7 will be an update
---> Package glusterfs-client-xlators.x86_64 0:3.12.2-47.2.el7 will be updated
---> Package glusterfs-client-xlators.x86_64 0:6.0-37.el7 will be an update
---> Package glusterfs-libs.x86_64 0:3.12.2-47.2.el7 will be updated
--> Processing Dependency: glusterfs-libs(x86-64) = 3.12.2-47.2.el7 for package: glusterfs-cli-3.12.2-47.2.el7.x86_64
---> Package glusterfs-libs.x86_64 0:6.0-37.el7 will be an update
---> Package gnutls-dane.x86_64 0:3.3.29-9.el7_6 will be installed
---> Package libvirt-daemon-driver-storage-core.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage-core.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-storage-disk.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage-disk.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-storage-gluster.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage-gluster.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-storage-iscsi.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage-iscsi.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-storage-logical.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage-logical.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-storage-mpath.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage-mpath.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-storage-rbd.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage-rbd.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-driver-storage-scsi.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-driver-storage-scsi.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package libvirt-daemon-kvm.x86_64 0:4.5.0-23.el7 will be updated
---> Package libvirt-daemon-kvm.x86_64 0:4.5.0-36.el7_9.3 will be an update
---> Package python-ipaddr.noarch 0:2.1.11-2.el7 will be installed
--> Running transaction check
---> Package glusterfs-cli.x86_64 0:3.12.2-47.2.el7 will be updated
---> Package glusterfs-cli.x86_64 0:6.0-37.el7 will be an update
---> Package glusterfs-fuse.x86_64 0:3.12.2-47.2.el7 will be updated
---> Package glusterfs-fuse.x86_64 0:6.0-37.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================================================================
 Package                                                      Arch                          Version                                        Repository                      Size
================================================================================================================================================================================
Installing:
 libvirt                                                      x86_64                        4.5.0-36.el7_9.3                               updates                        203 k
 libvirt-client                                               x86_64                        4.5.0-36.el7_9.3                               updates                        500 k
 libvirt-python                                               x86_64                        4.5.0-1.el7                                    base                           343 k
 virt-install                                                 noarch                        1.5.0-7.el7                                    base                            97 k
 virt-manager                                                 noarch                        1.5.0-7.el7                                    base                           661 k
 virt-viewer                                                  x86_64                        5.0-18.el7                                     base                           395 k
Updating:
 qemu-img                                                     x86_64                        10:1.5.3-175.el7_9.1                           updates                        703 k
 qemu-kvm                                                     x86_64                        10:1.5.3-175.el7_9.1                           updates                        1.9 M
Installing for dependencies:
 gnutls-dane                                                  x86_64                        3.3.29-9.el7_6                                 base                            36 k
 gnutls-utils                                                 x86_64                        3.3.29-9.el7_6                                 base                           238 k
 libvirt-bash-completion                                      x86_64                        4.5.0-36.el7_9.3                               updates                        203 k
 libvirt-daemon-config-nwfilter                               x86_64                        4.5.0-36.el7_9.3                               updates                        210 k
 libvirt-daemon-driver-lxc                                    x86_64                        4.5.0-36.el7_9.3                               updates                        335 k
 python-ipaddr                                                noarch                        2.1.11-2.el7                                   base                            35 k
 virt-manager-common                                          noarch                        1.5.0-7.el7                                    base                           1.2 M
Updating for dependencies:
 glusterfs                                                    x86_64                        6.0-37.el7                                     base                           619 k
 glusterfs-api                                                x86_64                        6.0-37.el7                                     base                            86 k
 glusterfs-cli                                                x86_64                        6.0-37.el7                                     base                           175 k
 glusterfs-client-xlators                                     x86_64                        6.0-37.el7                                     base                           836 k
 glusterfs-fuse                                               x86_64                        6.0-37.el7                                     base                           128 k
 glusterfs-libs                                               x86_64                        6.0-37.el7                                     base                           395 k
 libvirt-daemon                                               x86_64                        4.5.0-36.el7_9.3                               updates                        844 k
 libvirt-daemon-config-network                                x86_64                        4.5.0-36.el7_9.3                               updates                        204 k
 libvirt-daemon-driver-interface                              x86_64                        4.5.0-36.el7_9.3                               updates                        242 k
 libvirt-daemon-driver-network                                x86_64                        4.5.0-36.el7_9.3                               updates                        416 k
 libvirt-daemon-driver-nodedev                                x86_64                        4.5.0-36.el7_9.3                               updates                        241 k
 libvirt-daemon-driver-nwfilter                               x86_64                        4.5.0-36.el7_9.3                               updates                        265 k
 libvirt-daemon-driver-qemu                                   x86_64                        4.5.0-36.el7_9.3                               updates                        751 k
 libvirt-daemon-driver-secret                                 x86_64                        4.5.0-36.el7_9.3                               updates                        232 k
 libvirt-daemon-driver-storage                                x86_64                        4.5.0-36.el7_9.3                               updates                        202 k
 libvirt-daemon-driver-storage-core                           x86_64                        4.5.0-36.el7_9.3                               updates                        442 k
 libvirt-daemon-driver-storage-disk                           x86_64                        4.5.0-36.el7_9.3                               updates                        233 k
 libvirt-daemon-driver-storage-gluster                        x86_64                        4.5.0-36.el7_9.3                               updates                        241 k
 libvirt-daemon-driver-storage-iscsi                          x86_64                        4.5.0-36.el7_9.3                               updates                        231 k
 libvirt-daemon-driver-storage-logical                        x86_64                        4.5.0-36.el7_9.3                               updates                        234 k
 libvirt-daemon-driver-storage-mpath                          x86_64                        4.5.0-36.el7_9.3                               updates                        229 k
 libvirt-daemon-driver-storage-rbd                            x86_64                        4.5.0-36.el7_9.3                               updates                        236 k
 libvirt-daemon-driver-storage-scsi                           x86_64                        4.5.0-36.el7_9.3                               updates                        231 k
 libvirt-daemon-kvm                                           x86_64                        4.5.0-36.el7_9.3                               updates                        202 k
 libvirt-libs                                                 x86_64                        4.5.0-36.el7_9.3                               updates                        4.2 M
 qemu-kvm-common                                              x86_64                        10:1.5.3-175.el7_9.1                           updates                        439 k

Transaction Summary
================================================================================================================================================================================
Install  6 Packages (+ 7 Dependent packages)
Upgrade  2 Packages (+26 Dependent packages)

Total size: 19 M
Total download size: 17 M
Downloading packages:
No Presto metadata available for base
No Presto metadata available for updates
warning: /var/cache/yum/x86_64/7/base/packages/glusterfs-api-6.0-37.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY    ]  0.0 B/s |    0 B  --:--:-- ETA 
Public key for glusterfs-api-6.0-37.el7.x86_64.rpm is not installed
(1/35): glusterfs-api-6.0-37.el7.x86_64.rpm                                                                                                              |  86 kB  00:00:05     
(2/35): glusterfs-6.0-37.el7.x86_64.rpm                                                                                                                  | 619 kB  00:00:05     
(3/35): gnutls-dane-3.3.29-9.el7_6.x86_64.rpm                                                                                                            |  36 kB  00:00:00     
(4/35): glusterfs-cli-6.0-37.el7.x86_64.rpm                                                                                                              | 175 kB  00:00:06     
(5/35): gnutls-utils-3.3.29-9.el7_6.x86_64.rpm                                                                                                           | 238 kB  00:00:00     
(6/35): glusterfs-libs-6.0-37.el7.x86_64.rpm                                                                                                             | 395 kB  00:00:00     
Public key for libvirt-4.5.0-36.el7_9.3.x86_64.rpm is not installed       8% [=====-                                                          ] 107 kB/s | 1.5 MB  00:02:26 ETA 
(7/35): libvirt-4.5.0-36.el7_9.3.x86_64.rpm                                                                                                              | 203 kB  00:00:05     
(8/35): libvirt-bash-completion-4.5.0-36.el7_9.3.x86_64.rpm                                                                                              | 203 kB  00:00:05     
(9/35): libvirt-daemon-config-network-4.5.0-36.el7_9.3.x86_64.rpm                                                                                        | 204 kB  00:00:00     
(10/35): libvirt-client-4.5.0-36.el7_9.3.x86_64.rpm                                                                                                      | 500 kB  00:00:00     
(11/35): libvirt-daemon-config-nwfilter-4.5.0-36.el7_9.3.x86_64.rpm                                                                                      | 210 kB  00:00:00     
(12/35): libvirt-daemon-driver-lxc-4.5.0-36.el7_9.3.x86_64.rpm                                                                                           | 335 kB  00:00:00     
(13/35): libvirt-daemon-driver-network-4.5.0-36.el7_9.3.x86_64.rpm                                                                                       | 416 kB  00:00:00     
(14/35): libvirt-daemon-driver-nodedev-4.5.0-36.el7_9.3.x86_64.rpm                                                                                       | 241 kB  00:00:00     
(15/35): libvirt-daemon-driver-nwfilter-4.5.0-36.el7_9.3.x86_64.rpm                                                                                      | 265 kB  00:00:00     
(16/35): libvirt-daemon-driver-secret-4.5.0-36.el7_9.3.x86_64.rpm                                                                                        | 232 kB  00:00:00     
(17/35): libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64.rpm                                                                                       | 202 kB  00:00:00     
(18/35): libvirt-daemon-driver-qemu-4.5.0-36.el7_9.3.x86_64.rpm                                                                                          | 751 kB  00:00:00     
(19/35): libvirt-daemon-driver-storage-disk-4.5.0-36.el7_9.3.x86_64.rpm                                                                                  | 233 kB  00:00:00     
(20/35): libvirt-daemon-driver-storage-core-4.5.0-36.el7_9.3.x86_64.rpm                                                                                  | 442 kB  00:00:00     
(21/35): libvirt-daemon-driver-storage-logical-4.5.0-36.el7_9.3.x86_64.rpm                                                                               | 234 kB  00:00:00     
(22/35): libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.3.x86_64.rpm                                                                               | 241 kB  00:00:00     
(23/35): libvirt-daemon-driver-storage-mpath-4.5.0-36.el7_9.3.x86_64.rpm                                                                                 | 229 kB  00:00:00     
(24/35): libvirt-daemon-driver-storage-rbd-4.5.0-36.el7_9.3.x86_64.rpm                                                                                   | 236 kB  00:00:00     
(25/35): libvirt-daemon-kvm-4.5.0-36.el7_9.3.x86_64.rpm                                                                                                  | 202 kB  00:00:00     
(26/35): qemu-img-1.5.3-175.el7_9.1.x86_64.rpm                                                                                                           | 703 kB  00:00:00     
(27/35): qemu-kvm-1.5.3-175.el7_9.1.x86_64.rpm                                                                                                           | 1.9 MB  00:00:01     
(28/35): qemu-kvm-common-1.5.3-175.el7_9.1.x86_64.rpm                                                                                                    | 439 kB  00:00:00     
(29/35): libvirt-libs-4.5.0-36.el7_9.3.x86_64.rpm                                                                                                        | 4.2 MB  00:00:02     
(30/35): python-ipaddr-2.1.11-2.el7.noarch.rpm                                                                                                           |  35 kB  00:00:05     
(31/35): libvirt-python-4.5.0-1.el7.x86_64.rpm                                                                                                           | 343 kB  00:00:05     
(32/35): virt-install-1.5.0-7.el7.noarch.rpm                                                                                                             |  97 kB  00:00:00     
(33/35): virt-manager-1.5.0-7.el7.noarch.rpm                                                                                                             | 661 kB  00:00:00     
(34/35): virt-viewer-5.0-18.el7.x86_64.rpm                                                                                                               | 395 kB  00:00:00     
(35/35): virt-manager-common-1.5.0-7.el7.noarch.rpm                                                                                                      | 1.2 MB  00:00:00     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                           858 kB/s |  17 MB  00:00:20     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-7.1908.0.el7.centos.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libvirt-libs-4.5.0-36.el7_9.3.x86_64                                                                                                                        1/69 
  Updating   : libvirt-daemon-4.5.0-36.el7_9.3.x86_64                                                                                                                      2/69 
  Updating   : glusterfs-libs-6.0-37.el7.x86_64                                                                                                                            3/69 
  Updating   : libvirt-daemon-driver-network-4.5.0-36.el7_9.3.x86_64                                                                                                       4/69 
  Updating   : libvirt-daemon-driver-nwfilter-4.5.0-36.el7_9.3.x86_64                                                                                                      5/69 
  Updating   : glusterfs-client-xlators-6.0-37.el7.x86_64                                                                                                                  6/69 
  Updating   : glusterfs-6.0-37.el7.x86_64                                                                                                                                 7/69 
  Updating   : glusterfs-api-6.0-37.el7.x86_64                                                                                                                             8/69 
  Updating   : 10:qemu-img-1.5.3-175.el7_9.1.x86_64                                                                                                                        9/69 
  Updating   : libvirt-daemon-driver-storage-core-4.5.0-36.el7_9.3.x86_64                                                                                                 10/69 
  Updating   : libvirt-daemon-driver-qemu-4.5.0-36.el7_9.3.x86_64                                                                                                         11/69 
  Updating   : libvirt-daemon-driver-nodedev-4.5.0-36.el7_9.3.x86_64                                                                                                      12/69 
  Updating   : libvirt-daemon-driver-secret-4.5.0-36.el7_9.3.x86_64                                                                                                       13/69 
  Updating   : libvirt-daemon-driver-interface-4.5.0-36.el7_9.3.x86_64                                                                                                    14/69 
  Updating   : libvirt-daemon-driver-storage-disk-4.5.0-36.el7_9.3.x86_64                                                                                                 15/69 
  Updating   : libvirt-daemon-driver-storage-logical-4.5.0-36.el7_9.3.x86_64                                                                                              16/69 
  Updating   : libvirt-daemon-driver-storage-scsi-4.5.0-36.el7_9.3.x86_64                                                                                                 17/69 
  Updating   : libvirt-daemon-driver-storage-mpath-4.5.0-36.el7_9.3.x86_64                                                                                                18/69 
  Updating   : libvirt-daemon-driver-storage-iscsi-4.5.0-36.el7_9.3.x86_64                                                                                                19/69 
  Updating   : libvirt-daemon-driver-storage-rbd-4.5.0-36.el7_9.3.x86_64                                                                                                  20/69 
  Installing : libvirt-daemon-config-nwfilter-4.5.0-36.el7_9.3.x86_64                                                                                                     21/69 
  Updating   : libvirt-daemon-config-network-4.5.0-36.el7_9.3.x86_64                                                                                                      22/69 
  Installing : libvirt-daemon-driver-lxc-4.5.0-36.el7_9.3.x86_64                                                                                                          23/69 
  Updating   : glusterfs-cli-6.0-37.el7.x86_64                                                                                                                            24/69 
  Updating   : libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.3.x86_64                                                                                              25/69 
  Updating   : libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64                                                                                                      26/69 
  Installing : libvirt-python-4.5.0-1.el7.x86_64                                                                                                                          27/69 
  Updating   : 10:qemu-kvm-common-1.5.3-175.el7_9.1.x86_64                                                                                                                28/69 
  Updating   : 10:qemu-kvm-1.5.3-175.el7_9.1.x86_64                                                                                                                       29/69 
  Installing : python-ipaddr-2.1.11-2.el7.noarch                                                                                                                          30/69 
  Installing : virt-manager-common-1.5.0-7.el7.noarch                                                                                                                     31/69 
  Installing : gnutls-dane-3.3.29-9.el7_6.x86_64                                                                                                                          32/69 
  Installing : gnutls-utils-3.3.29-9.el7_6.x86_64                                                                                                                         33/69 
  Installing : libvirt-bash-completion-4.5.0-36.el7_9.3.x86_64                                                                                                            34/69 
  Installing : libvirt-client-4.5.0-36.el7_9.3.x86_64                                                                                                                     35/69 
  Installing : libvirt-4.5.0-36.el7_9.3.x86_64                                                                                                                            36/69 
  Installing : virt-install-1.5.0-7.el7.noarch                                                                                                                            37/69 
  Installing : virt-manager-1.5.0-7.el7.noarch                                                                                                                            38/69 
  Updating   : libvirt-daemon-kvm-4.5.0-36.el7_9.3.x86_64                                                                                                                 39/69 
  Updating   : glusterfs-fuse-6.0-37.el7.x86_64                                                                                                                           40/69 
  Installing : virt-viewer-5.0-18.el7.x86_64                                                                                                                              41/69 
  Cleanup    : libvirt-daemon-kvm-4.5.0-23.el7.x86_64                                                                                                                     42/69 
  Cleanup    : libvirt-daemon-driver-storage-4.5.0-23.el7.x86_64                                                                                                          43/69 
  Cleanup    : libvirt-daemon-config-network-4.5.0-23.el7.x86_64                                                                                                          44/69 
  Cleanup    : libvirt-daemon-driver-storage-gluster-4.5.0-23.el7.x86_64                                                                                                  45/69 
  Cleanup    : libvirt-daemon-driver-qemu-4.5.0-23.el7.x86_64                                                                                                             46/69 
  Cleanup    : 10:qemu-kvm-1.5.3-167.el7.x86_64                                                                                                                           47/69 
  Cleanup    : glusterfs-fuse-3.12.2-47.2.el7.x86_64                                                                                                                      48/69 
  Cleanup    : libvirt-daemon-driver-network-4.5.0-23.el7.x86_64                                                                                                          49/69 
  Cleanup    : libvirt-daemon-driver-storage-disk-4.5.0-23.el7.x86_64                                                                                                     50/69 
  Cleanup    : libvirt-daemon-driver-storage-logical-4.5.0-23.el7.x86_64                                                                                                  51/69 
  Cleanup    : libvirt-daemon-driver-storage-scsi-4.5.0-23.el7.x86_64                                                                                                     52/69 
  Cleanup    : libvirt-daemon-driver-storage-iscsi-4.5.0-23.el7.x86_64                                                                                                    53/69 
  Cleanup    : libvirt-daemon-driver-storage-mpath-4.5.0-23.el7.x86_64                                                                                                    54/69 
  Cleanup    : libvirt-daemon-driver-storage-rbd-4.5.0-23.el7.x86_64                                                                                                      55/69 
  Cleanup    : libvirt-daemon-driver-storage-core-4.5.0-23.el7.x86_64                                                                                                     56/69 
  Cleanup    : 10:qemu-img-1.5.3-167.el7.x86_64                                                                                                                           57/69 
  Cleanup    : glusterfs-api-3.12.2-47.2.el7.x86_64                                                                                                                       58/69 
  Cleanup    : libvirt-daemon-driver-interface-4.5.0-23.el7.x86_64                                                                                                        59/69 
  Cleanup    : libvirt-daemon-driver-nodedev-4.5.0-23.el7.x86_64                                                                                                          60/69 
  Cleanup    : libvirt-daemon-driver-nwfilter-4.5.0-23.el7.x86_64                                                                                                         61/69 
  Cleanup    : libvirt-daemon-driver-secret-4.5.0-23.el7.x86_64                                                                                                           62/69 
  Cleanup    : libvirt-daemon-4.5.0-23.el7.x86_64                                                                                                                         63/69 
  Cleanup    : glusterfs-3.12.2-47.2.el7.x86_64                                                                                                                           64/69 
  Cleanup    : glusterfs-client-xlators-3.12.2-47.2.el7.x86_64                                                                                                            65/69 
  Cleanup    : glusterfs-cli-3.12.2-47.2.el7.x86_64                                                                                                                       66/69 
  Cleanup    : glusterfs-libs-3.12.2-47.2.el7.x86_64                                                                                                                      67/69 
  Cleanup    : libvirt-libs-4.5.0-23.el7.x86_64                                                                                                                           68/69 
  Cleanup    : 10:qemu-kvm-common-1.5.3-167.el7.x86_64                                                                                                                    69/69 
  Verifying  : libvirt-daemon-driver-storage-disk-4.5.0-36.el7_9.3.x86_64                                                                                                  1/69 
  Verifying  : libvirt-bash-completion-4.5.0-36.el7_9.3.x86_64                                                                                                             2/69 
  Verifying  : gnutls-dane-3.3.29-9.el7_6.x86_64                                                                                                                           3/69 
  Verifying  : python-ipaddr-2.1.11-2.el7.noarch                                                                                                                           4/69 
  Verifying  : virt-viewer-5.0-18.el7.x86_64                                                                                                                               5/69 
  Verifying  : libvirt-python-4.5.0-1.el7.x86_64                                                                                                                           6/69 
  Verifying  : libvirt-daemon-config-network-4.5.0-36.el7_9.3.x86_64                                                                                                       7/69 
  Verifying  : libvirt-daemon-driver-nwfilter-4.5.0-36.el7_9.3.x86_64                                                                                                      8/69 
  Verifying  : glusterfs-api-6.0-37.el7.x86_64                                                                                                                             9/69 
  Verifying  : libvirt-daemon-driver-lxc-4.5.0-36.el7_9.3.x86_64                                                                                                          10/69 
  Verifying  : libvirt-4.5.0-36.el7_9.3.x86_64                                                                                                                            11/69 
  Verifying  : glusterfs-client-xlators-6.0-37.el7.x86_64                                                                                                                 12/69 
  Verifying  : libvirt-daemon-kvm-4.5.0-36.el7_9.3.x86_64                                                                                                                 13/69 
  Verifying  : 10:qemu-kvm-1.5.3-175.el7_9.1.x86_64                                                                                                                       14/69 
  Verifying  : libvirt-daemon-driver-nodedev-4.5.0-36.el7_9.3.x86_64                                                                                                      15/69 
  Verifying  : libvirt-daemon-driver-storage-logical-4.5.0-36.el7_9.3.x86_64                                                                                              16/69 
  Verifying  : libvirt-daemon-config-nwfilter-4.5.0-36.el7_9.3.x86_64                                                                                                     17/69 
  Verifying  : 10:qemu-kvm-common-1.5.3-175.el7_9.1.x86_64                                                                                                                18/69 
  Verifying  : libvirt-daemon-driver-secret-4.5.0-36.el7_9.3.x86_64                                                                                                       19/69 
  Verifying  : libvirt-client-4.5.0-36.el7_9.3.x86_64                                                                                                                     20/69 
  Verifying  : libvirt-daemon-driver-storage-scsi-4.5.0-36.el7_9.3.x86_64                                                                                                 21/69 
  Verifying  : libvirt-daemon-driver-interface-4.5.0-36.el7_9.3.x86_64                                                                                                    22/69 
  Verifying  : glusterfs-cli-6.0-37.el7.x86_64                                                                                                                            23/69 
  Verifying  : virt-install-1.5.0-7.el7.noarch                                                                                                                            24/69 
  Verifying  : glusterfs-libs-6.0-37.el7.x86_64                                                                                                                           25/69 
  Verifying  : libvirt-daemon-driver-storage-mpath-4.5.0-36.el7_9.3.x86_64                                                                                                26/69 
  Verifying  : libvirt-daemon-4.5.0-36.el7_9.3.x86_64                                                                                                                     27/69 
  Verifying  : glusterfs-fuse-6.0-37.el7.x86_64                                                                                                                           28/69 
  Verifying  : 10:qemu-img-1.5.3-175.el7_9.1.x86_64                                                                                                                       29/69 
  Verifying  : libvirt-daemon-driver-qemu-4.5.0-36.el7_9.3.x86_64                                                                                                         30/69 
  Verifying  : libvirt-daemon-driver-storage-iscsi-4.5.0-36.el7_9.3.x86_64                                                                                                31/69 
  Verifying  : virt-manager-1.5.0-7.el7.noarch                                                                                                                            32/69 
  Verifying  : libvirt-daemon-driver-storage-core-4.5.0-36.el7_9.3.x86_64                                                                                                 33/69 
  Verifying  : libvirt-libs-4.5.0-36.el7_9.3.x86_64                                                                                                                       34/69 
  Verifying  : libvirt-daemon-driver-network-4.5.0-36.el7_9.3.x86_64                                                                                                      35/69 
  Verifying  : virt-manager-common-1.5.0-7.el7.noarch                                                                                                                     36/69 
  Verifying  : libvirt-daemon-driver-storage-4.5.0-36.el7_9.3.x86_64                                                                                                      37/69 
  Verifying  : glusterfs-6.0-37.el7.x86_64                                                                                                                                38/69 
  Verifying  : libvirt-daemon-driver-storage-rbd-4.5.0-36.el7_9.3.x86_64                                                                                                  39/69 
  Verifying  : libvirt-daemon-driver-storage-gluster-4.5.0-36.el7_9.3.x86_64                                                                                              40/69 
  Verifying  : gnutls-utils-3.3.29-9.el7_6.x86_64                                                                                                                         41/69 
  Verifying  : libvirt-daemon-driver-storage-core-4.5.0-23.el7.x86_64                                                                                                     42/69 
  Verifying  : 10:qemu-img-1.5.3-167.el7.x86_64                                                                                                                           43/69 
  Verifying  : libvirt-daemon-driver-secret-4.5.0-23.el7.x86_64                                                                                                           44/69 
  Verifying  : libvirt-daemon-driver-storage-mpath-4.5.0-23.el7.x86_64                                                                                                    45/69 
  Verifying  : libvirt-daemon-driver-network-4.5.0-23.el7.x86_64                                                                                                          46/69 
  Verifying  : 10:qemu-kvm-1.5.3-167.el7.x86_64                                                                                                                           47/69 
  Verifying  : libvirt-daemon-driver-storage-rbd-4.5.0-23.el7.x86_64                                                                                                      48/69 
  Verifying  : glusterfs-api-3.12.2-47.2.el7.x86_64                                                                                                                       49/69 
  Verifying  : libvirt-daemon-driver-qemu-4.5.0-23.el7.x86_64                                                                                                             50/69 
  Verifying  : libvirt-daemon-driver-storage-scsi-4.5.0-23.el7.x86_64                                                                                                     51/69 
  Verifying  : libvirt-daemon-driver-storage-disk-4.5.0-23.el7.x86_64                                                                                                     52/69 
  Verifying  : glusterfs-libs-3.12.2-47.2.el7.x86_64                                                                                                                      53/69 
  Verifying  : libvirt-daemon-driver-storage-iscsi-4.5.0-23.el7.x86_64                                                                                                    54/69 
  Verifying  : libvirt-daemon-driver-storage-gluster-4.5.0-23.el7.x86_64                                                                                                  55/69 
  Verifying  : libvirt-daemon-driver-storage-4.5.0-23.el7.x86_64                                                                                                          56/69 
  Verifying  : libvirt-daemon-kvm-4.5.0-23.el7.x86_64                                                                                                                     57/69 
  Verifying  : libvirt-libs-4.5.0-23.el7.x86_64                                                                                                                           58/69 
  Verifying  : libvirt-daemon-driver-nodedev-4.5.0-23.el7.x86_64                                                                                                          59/69 
  Verifying  : libvirt-daemon-driver-nwfilter-4.5.0-23.el7.x86_64                                                                                                         60/69 
  Verifying  : glusterfs-fuse-3.12.2-47.2.el7.x86_64                                                                                                                      61/69 
  Verifying  : libvirt-daemon-4.5.0-23.el7.x86_64                                                                                                                         62/69 
  Verifying  : glusterfs-cli-3.12.2-47.2.el7.x86_64                                                                                                                       63/69 
  Verifying  : glusterfs-client-xlators-3.12.2-47.2.el7.x86_64                                                                                                            64/69 
  Verifying  : libvirt-daemon-config-network-4.5.0-23.el7.x86_64                                                                                                          65/69 
  Verifying  : 10:qemu-kvm-common-1.5.3-167.el7.x86_64                                                                                                                    66/69 
  Verifying  : glusterfs-3.12.2-47.2.el7.x86_64                                                                                                                           67/69 
  Verifying  : libvirt-daemon-driver-storage-logical-4.5.0-23.el7.x86_64                                                                                                  68/69 
  Verifying  : libvirt-daemon-driver-interface-4.5.0-23.el7.x86_64                                                                                                        69/69 

Installed:
  libvirt.x86_64 0:4.5.0-36.el7_9.3        libvirt-client.x86_64 0:4.5.0-36.el7_9.3        libvirt-python.x86_64 0:4.5.0-1.el7        virt-install.noarch 0:1.5.0-7.el7       
  virt-manager.noarch 0:1.5.0-7.el7        virt-viewer.x86_64 0:5.0-18.el7                

Dependency Installed:
  gnutls-dane.x86_64 0:3.3.29-9.el7_6                           gnutls-utils.x86_64 0:3.3.29-9.el7_6                     libvirt-bash-completion.x86_64 0:4.5.0-36.el7_9.3     
  libvirt-daemon-config-nwfilter.x86_64 0:4.5.0-36.el7_9.3      libvirt-daemon-driver-lxc.x86_64 0:4.5.0-36.el7_9.3      python-ipaddr.noarch 0:2.1.11-2.el7                   
  virt-manager-common.noarch 0:1.5.0-7.el7                     

Updated:
  qemu-img.x86_64 10:1.5.3-175.el7_9.1                                                   qemu-kvm.x86_64 10:1.5.3-175.el7_9.1                                                  

Dependency Updated:
  glusterfs.x86_64 0:6.0-37.el7                                                         glusterfs-api.x86_64 0:6.0-37.el7                                                      
  glusterfs-cli.x86_64 0:6.0-37.el7                                                     glusterfs-client-xlators.x86_64 0:6.0-37.el7                                           
  glusterfs-fuse.x86_64 0:6.0-37.el7                                                    glusterfs-libs.x86_64 0:6.0-37.el7                                                     
  libvirt-daemon.x86_64 0:4.5.0-36.el7_9.3                                              libvirt-daemon-config-network.x86_64 0:4.5.0-36.el7_9.3                                
  libvirt-daemon-driver-interface.x86_64 0:4.5.0-36.el7_9.3                             libvirt-daemon-driver-network.x86_64 0:4.5.0-36.el7_9.3                                
  libvirt-daemon-driver-nodedev.x86_64 0:4.5.0-36.el7_9.3                               libvirt-daemon-driver-nwfilter.x86_64 0:4.5.0-36.el7_9.3                               
  libvirt-daemon-driver-qemu.x86_64 0:4.5.0-36.el7_9.3                                  libvirt-daemon-driver-secret.x86_64 0:4.5.0-36.el7_9.3                                 
  libvirt-daemon-driver-storage.x86_64 0:4.5.0-36.el7_9.3                               libvirt-daemon-driver-storage-core.x86_64 0:4.5.0-36.el7_9.3                           
  libvirt-daemon-driver-storage-disk.x86_64 0:4.5.0-36.el7_9.3                          libvirt-daemon-driver-storage-gluster.x86_64 0:4.5.0-36.el7_9.3                        
  libvirt-daemon-driver-storage-iscsi.x86_64 0:4.5.0-36.el7_9.3                         libvirt-daemon-driver-storage-logical.x86_64 0:4.5.0-36.el7_9.3                        
  libvirt-daemon-driver-storage-mpath.x86_64 0:4.5.0-36.el7_9.3                         libvirt-daemon-driver-storage-rbd.x86_64 0:4.5.0-36.el7_9.3                            
  libvirt-daemon-driver-storage-scsi.x86_64 0:4.5.0-36.el7_9.3                          libvirt-daemon-kvm.x86_64 0:4.5.0-36.el7_9.3                                           
  libvirt-libs.x86_64 0:4.5.0-36.el7_9.3                                                qemu-kvm-common.x86_64 10:1.5.3-175.el7_9.1                                            

Complete!
[root@kvmhost001 xml]# 


6、给系统做一个快照,中途出现问题方便重置


二 配置KVM

1、使用Virtual Machine Manager工具配置虚拟机的运行环境

【Linux】安装KVM_Linux

【Linux】安装KVM_Linux_02

【Linux】安装KVM_KVM_03


【Linux】安装KVM_KVM_04


【Linux】安装KVM_虚拟化_05

虚拟网络设定

【Linux】安装KVM_虚拟化_06

虚拟机存储设定

【Linux】安装KVM_Linux_07

网络接口

【Linux】安装KVM_Linux_08

尝试创建个新的桥接网络;如果向导中创建不了;则使用下面的指令执行:

因此我们需要通过命令创建一个虚拟网络并桥接到上文中双网卡绑定的网卡上。


2、配置网卡

# 网卡配置,新建ifcfg-br001,然后修改相关配置如下:

[root@kvmhost001 xml]# cd /etc/sysconfig/network-scripts/
[root@kvmhost001 network-scripts]# vi ifcfg-br001
[root@kvmhost001 network-scripts]# cat ifcfg-br001
DEVICE="br001"
ONBOOT="yes"
TYPE="Bridge"
BOOTPROTO=static
IPADDR=192.168.11.155   # 自定义
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
DEFROUTE=yes
[root@kvmhost001 network-scripts]# cat ifcfg-NICTeam001 
TYPE=Bond
BOOTPROTO=none
DEVICE=NICTeam001
ONBOOT=yes
IPADDR=192.168.11.153
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
DNS1=114.114.114.114
BONDING_OPTS='miimon=100 mode=6 fail_over_mac=1'
[root@kvmhost001 network-scripts]# 


[root@kvmhost001 network-scripts]# vi ifcfg-NICTeam001 
[root@kvmhost001 network-scripts]# cat ifcfg-NICTeam001 
TYPE=Bond
BRIDGE=br001    #这里
BOOTPROTO=none
DEVICE=NICTeam001
ONBOOT=yes
#IPADDR=192.168.11.153    #注销掉
#NETMASK=255.255.255.0    #注销掉
#GATEWAY=192.168.11.1    #注销掉
#DNS1=114.114.114.114    #注销掉
BONDING_MASTER=yes     #这里
BONDING_OPTS='miimon=100 mode=6 fail_over_mac=1'
[root@kvmhost001 network-scripts]# 

检查并确认网卡的信息

[root@kvmhost001 network-scripts]# ifconfig
NICTeam001: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.11.153  netmask 255.255.255.0  broadcast 192.168.11.255
        inet6 fe80::20c:29ff:fed0:ec92  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:d0:ec:92  txqueuelen 1000  (Ethernet)
        RX packets 49910  bytes 23118174 (22.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 13197  bytes 847470 (827.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens33: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether 00:0c:29:d0:ec:92  txqueuelen 1000  (Ethernet)
        RX packets 24219  bytes 9250770 (8.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 6001  bytes 379474 (370.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens37: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether 00:0c:29:d0:ec:9c  txqueuelen 1000  (Ethernet)
        RX packets 25691  bytes 13867404 (13.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7196  bytes 467996 (457.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 32  bytes 2592 (2.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 32  bytes 2592 (2.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:fc:cf:b0  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@kvmhost001 network-scripts]# systemctl restart network
[root@kvmhost001 network-scripts]# ifconfig
NICTeam001: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet6 fe80::20c:29ff:fed0:ec92  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:d0:ec:92  txqueuelen 1000  (Ethernet)
        RX packets 131  bytes 15986 (15.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 46  bytes 5139 (5.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

br001: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.11.155  netmask 255.255.255.0  broadcast 192.168.11.255
        inet6 fe80::68bb:d8ff:fef9:79a7  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:d0:ec:92  txqueuelen 1000  (Ethernet)
        RX packets 83  bytes 9333 (9.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 27  bytes 4136 (4.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens33: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether 00:0c:29:d0:ec:92  txqueuelen 1000  (Ethernet)
        RX packets 24380  bytes 9270883 (8.8 MiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 6032  bytes 381600 (372.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ens37: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST>  mtu 1500
        ether 00:0c:29:d0:ec:9c  txqueuelen 1000  (Ethernet)
        RX packets 25789  bytes 13880348 (13.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7244  bytes 473113 (462.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 32  bytes 2592 (2.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 32  bytes 2592 (2.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:fc:cf:b0  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@kvmhost001 network-scripts]# ping 114.114.114.114
PING 114.114.114.114 (114.114.114.114) 56(84) bytes of data.
64 bytes from 114.114.114.114: icmp_seq=1 ttl=84 time=233 ms
64 bytes from 114.114.114.114: icmp_seq=2 ttl=84 time=187 ms
64 bytes from 114.114.114.114: icmp_seq=3 ttl=89 time=195 ms
^C
--- 114.114.114.114 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 187.516/205.403/233.222/19.943 ms
[root@kvmhost001 network-scripts]# 


注意br001这块虚拟的桥接卡的配置信息。


重启计算机。


三 安装并管理虚拟机

1、创建虚拟机

【Linux】安装KVM_夏明亮_09


2、我们先上传个镜像到/KVM_ISO

【Linux】安装KVM_安装_10

【Linux】安装KVM_夏明亮_11

3、New VM

【Linux】安装KVM_Linux_12

4、分配内存

【Linux】安装KVM_夏明亮_13

5、创建虚拟磁盘

【Linux】安装KVM_安装_14

6、设置虚拟机名字和网络

【Linux】安装KVM_夏明亮_15

7、检查并确认虚拟机的设定是否是自己想要的;如果不符合需求,这里还可以进行修正。

【Linux】安装KVM_KVM_16


【Linux】安装KVM_Linux_17

【Linux】安装KVM_KVM_18


【Linux】安装KVM_虚拟化_19


【Linux】安装KVM_夏明亮_20


【Linux】安装KVM_虚拟化_21


【Linux】安装KVM_KVM_22


【Linux】安装KVM_安装_23


【Linux】安装KVM_夏明亮_24


【Linux】安装KVM_KVM_25


【Linux】安装KVM_虚拟化_26


【Linux】安装KVM_夏明亮_27


【Linux】安装KVM_安装_28


【Linux】安装KVM_夏明亮_29


【Linux】安装KVM_KVM_30


【Linux】安装KVM_虚拟化_31


【Linux】安装KVM_Linux_32


【Linux】安装KVM_安装_33


【Linux】安装KVM_KVM_34

8、开始安装OS

【Linux】安装KVM_虚拟化_35


【Linux】安装KVM_安装_36

OS的安装过程就省略了。

因为我没有为桥接的网卡配置DHCP所以我们还需要手动设置下IP地址。


9、创建虚拟环境快照:

[root@tempsrv01 ~]# virsh list
 Id    Name                           State
----------------------------------------------------
 4     tempsrv02                      running

[root@tempsrv01 ~]# virsh snapshot-create tempsrv02 
Domain snapshot 1618280605 created
[root@tempsrv01 ~]# virsh snapshot-list tempsrv02 
 Name                 Creation Time             State
------------------------------------------------------------
 1618280605           2021-04-13 10:23:25 +0800 running

[root@tempsrv01 ~]# 



四 虚拟机的基础设定

1、配置网卡

注意onboot=yes;否则重启后网卡不会自动启动。

【Linux】安装KVM_Linux_37

有可能出现ping不通网关的情况:

【Linux】安装KVM_Linux_38


好了,本文就到这里;喜欢的朋友请三连哦。