通过ks.nfg文件引导安装centos7.5系统
这里需要大家注意的是安装完centos7.5系统,也就代表着kvm也安装部署完毕了,因为ks.cfg文件里面已经把我们kvm所需要的包都安装上去了,我们只需要检查下是否出错就可以了,通过ks.cfg就是这么简单。
第一步,在vmware上面新建虚拟机。
注意这里选择稍后进行系统安装
1、这里的名字大家可以随便起,我这个是为了方便记住,还有就是下面的路径,大家也是可以根据自己的爱好进行选择
2、声卡和打印机根据实际情况而定,这里为了节省服务器资源,全部移除
3、这里内存选2G,毕竟kvm还是在自己本身上面进行的虚拟化,比较耗资源
4、cpu我就选择了4核,大家可以根据实际情况来定
5、这里需要添加第二块硬盘,应为第一块20G的硬盘是操作系统的,kvm的存储需要独立出来,单独添加个磁盘80G
6、为虚拟机添加操作系统,也就是centos7.5的iso文件路径
7、开启虚拟机,准备安装操作系统
8、在这里大家需要注意的是,在黑屏任意位置点击鼠标或者ctrl + g 键组合,直到鼠标消失可以使用箭头上下键操作界面,选中install centos 7,但是不要按回车键,看屏幕下方还有提示,按“TAP键进入选项”
9、按完tap键后,屏幕下方就会出现命令行,输入空格 ks=http://******,这里的ks.cnf文件名称较长,大家可以结合kvm上一章的内容,可以修改这个名字,可以简短一点,主要是文档里面的内容不能大变,输完命令之后,直接回车,就进入安装系统界面了
10、安装部署的时候什么都不用动,等待最后的重启就完事了
11、下面的错误就是我上面操作是失误导致的,大家可以借鉴下,没有按tap键直接就回车安装centos7了,然后断电关机重启,第二次安装完之后,系统提示有异常,报错如下,解决方法也是比较简单,1,回车,2,回车,q,回车,yes,回车。
还有原因就是没有开启cpu虚拟化:如果没有开启虚拟化,请关机将下图三个虚拟化开启,否则影响后面项目
解决方法如下
11、重启完成后,输入ifconfig命令,查看当前ip地址,并用xshell进行连接
第二、检查kvm是否部署安装成功
[root@localhost ~]# grep vmx /proc/cpuinfo #检查cpu是不是虚拟化
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 tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp 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 tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp 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 tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp 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 tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp arch_capabilities
[root@localhost ~]# egrep '^flags.*(vmx|svm)' /proc/cpuinfo #检查cpu是不是支持虚拟化,如果不支持那么vmare的那三个虚拟可定没有勾盯上
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 tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp 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 tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp 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 tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp 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 tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp arch_capabilities
[root@localhost ~]# virsh list --all #检查当前kvm创建了几个虚拟机
Id Name State
----------------------------------------------------
[root@localhost ~]# startx #开启桌面模式,这里是开启失败了的,原因是centos镜像里面的包已经过时,需要yum更新一下
xauth: file /root/.serverauth.1802 does not exist
xauth: file /root/.Xauthority does not exist
xauth: file /root/.Xauthority does not exist
xinit: unable to run server "/usr/bin/X": No such file or directory
Use the -- option, or make sure that /usr/bin is in your path and
that "/usr/bin/X" is a program or a link to the right type of server
for your display. Possible server names include:
Xorg Common X server for most displays
Xvfb Virtual frame buffer
Xfake kdrive-based virtual frame buffer
Xnest X server nested in a window on another X server
Xephyr kdrive-based nested X server
Xvnc X server accessed over VNC's RFB protocol
Xdmx Distributed Multi-head X server
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
[root@localhost ~]# yum -y groupinstall "X Window System" #重新更新安装一下桌面模式
Loaded plugins: fastestmirror, langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Determining fastest mirrors
* base: mirrors.huaweicloud.com
* extras: mirrors.huaweicloud.com
* 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
(1/4): base/7/x86_64/group_gz | 153 kB 00:00:00
(2/4): extras/7/x86_64/primary_db | 222 kB 00:00:00
(3/4): base/7/x86_64/primary_db | 6.1 MB 00:00:02
(4/4): updates/7/x86_64/primary_db | 4.7 MB 00:00:02
Resolving Dependencies
--> Running transaction check
---> Package plymouth-system-theme.x86_64 0:0.8.9-0.34.20140113.el7.centos will be installed
--> Processing Dependency: plymouth(system-theme) = 0.8.9-0.34.20140113.el7.centos for package: plymouth-system-theme-0.8.9-0.34.20140113.el7.centos.x86_64
---> Package spice-vdagent.x86_64 0:0.14.0-18.el7 will be installed
---> Package xorg-x11-drivers.x86_64 0:7.7-6.el7 will be installed
--> Processing Dependency: xorg-x11-drv-wacom for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-void for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-vmware for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-vmmouse for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-vesa for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-v4l for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-synaptics for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-qxl for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-nouveau for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-intel for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-fbdev for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-evdev for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-dummy for package: xorg-x11-drivers-7.7-6.el7.x86_64
--> Processing Dependency: xorg-x11-drv-ati for package: xorg-x11-drivers-7.7-6.el7.x86_64
---> Package xorg-x11-server-Xorg.x86_64 0:1.20.4-13.el7_9 will be installed
--> Processing Dependency: xorg-x11-server-common >= 1.20.4-13.el7_9 for package: xorg-x11-server-Xorg-1.20.4-13.el7_9.x86_64
---> Package xorg-x11-utils.x86_64 0:7.5-23.el7 will be installed
--> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
---> Package xvattr.x86_64 0:1.3-27.el7 will be installed
--> Running transaction check
---> Package libXxf86dga.x86_64 0:1.1.4-2.1.el7 will be installed
---> Package libdmx.x86_64 0:1.1.3-3.el7 will be installed
---> Package plymouth-theme-charge.x86_64 0:0.8.9-0.34.20140113.el7.centos will be installed
--> Processing Dependency: plymouth-plugin-two-step = 0.8.9-0.34.20140113.el7.centos for package: plymouth-theme-charge-0.8.9-0.34.20140113.el7.centos.x86_64
---> Package xorg-x11-drv-ati.x86_64 0:19.0.1-3.el7_7 will be installed
---> Package xorg-x11-drv-dummy.x86_64 0:0.3.7-1.el7.1 will be installed
---> Package xorg-x11-drv-evdev.x86_64 0:2.10.6-1.el7 will be installed
---> Package xorg-x11-drv-fbdev.x86_64 0:0.5.0-1.el7 will be installed
---> Package xorg-x11-drv-intel.x86_64 0:2.99.917-28.20180530.el7 will be installed
--> Processing Dependency: libXvMC.so.1()(64bit) for package: xorg-x11-drv-intel-2.99.917-28.20180530.el7.x86_64
---> Package xorg-x11-drv-nouveau.x86_64 1:1.0.15-1.el7 will be installed
---> Package xorg-x11-drv-qxl.x86_64 0:0.1.5-5.el7 will be installed
---> Package xorg-x11-drv-synaptics.x86_64 0:1.9.0-2.el7 will be installed
---> Package xorg-x11-drv-v4l.x86_64 0:0.2.0-49.el7 will be installed
---> Package xorg-x11-drv-vesa.x86_64 0:2.4.0-3.el7 will be installed
---> Package xorg-x11-drv-vmmouse.x86_64 0:13.1.0-1.el7.1 will be installed
---> Package xorg-x11-drv-vmware.x86_64 0:13.2.1-1.el7.1 will be installed
--> Processing Dependency: libxatracker.so.2()(64bit) for package: xorg-x11-drv-vmware-13.2.1-1.el7.1.x86_64
---> Package xorg-x11-drv-void.x86_64 0:1.4.1-2.el7.1 will be installed
---> Package xorg-x11-drv-wacom.x86_64 0:0.36.1-3.el7 will be installed
---> Package xorg-x11-server-common.x86_64 0:1.20.4-13.el7_9 will be installed
--> Running transaction check
---> Package libXvMC.x86_64 0:1.0.10-1.el7 will be installed
---> Package mesa-libxatracker.x86_64 0:18.3.4-12.el7_9 will be installed
--> Processing Dependency: libLLVM-7-rhel.so(LLVM_7)(64bit) for package: mesa-libxatracker-18.3.4-12.el7_9.x86_64
--> Processing Dependency: libLLVM-7-rhel.so()(64bit) for package: mesa-libxatracker-18.3.4-12.el7_9.x86_64
---> Package plymouth-plugin-two-step.x86_64 0:0.8.9-0.34.20140113.el7.centos will be installed
--> Processing Dependency: plymouth-graphics-libs = 0.8.9-0.34.20140113.el7.centos for package: plymouth-plugin-two-step-0.8.9-0.34.20140113.el7.centos.x86_64
--> Processing Dependency: plymouth-core-libs = 0.8.9-0.34.20140113.el7.centos for package: plymouth-plugin-two-step-0.8.9-0.34.20140113.el7.centos.x86_64
--> Processing Dependency: plymouth = 0.8.9-0.34.20140113.el7.centos for package: plymouth-plugin-two-step-0.8.9-0.34.20140113.el7.centos.x86_64
--> Processing Dependency: plymouth-plugin-label for package: plymouth-plugin-two-step-0.8.9-0.34.20140113.el7.centos.x86_64
--> Processing Dependency: libply-splash-graphics.so.2()(64bit) for package: plymouth-plugin-two-step-0.8.9-0.34.20140113.el7.centos.x86_64
--> Running transaction check
---> Package llvm-private.x86_64 0:5.0.0-3.el7 will be updated
--> Processing Dependency: libLLVM-5.0-rhel.so()(64bit) for package: mesa-dri-drivers-17.2.3-8.20171019.el7.x86_64
--> Processing Dependency: libLLVM-5.0-rhel.so(LLVM_5.0)(64bit) for package: mesa-dri-drivers-17.2.3-8.20171019.el7.x86_64
---> Package llvm-private.x86_64 0:7.0.1-1.el7 will be an update
---> Package plymouth.x86_64 0:0.8.9-0.31.20140113.el7.centos will be updated
---> Package plymouth.x86_64 0:0.8.9-0.34.20140113.el7.centos will be an update
---> Package plymouth-core-libs.x86_64 0:0.8.9-0.31.20140113.el7.centos will be updated
---> Package plymouth-core-libs.x86_64 0:0.8.9-0.34.20140113.el7.centos will be an update
---> Package plymouth-graphics-libs.x86_64 0:0.8.9-0.34.20140113.el7.centos will be installed
---> Package plymouth-plugin-label.x86_64 0:0.8.9-0.34.20140113.el7.centos will be installed
--> Running transaction check
---> Package mesa-dri-drivers.x86_64 0:17.2.3-8.20171019.el7 will be updated
---> Package mesa-dri-drivers.x86_64 0:18.3.4-12.el7_9 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================
Installing for group install "X Window System":
plymouth-system-theme x86_64 0.8.9-0.34.20140113.el7.centos base 32 k
spice-vdagent x86_64 0.14.0-18.el7 base 71 k
xorg-x11-drivers x86_64 7.7-6.el7 base 8.9 k
xorg-x11-server-Xorg x86_64 1.20.4-13.el7_9 updates 1.5 M
xorg-x11-utils x86_64 7.5-23.el7 base 114 k
xvattr x86_64 1.3-27.el7 base 22 k
Installing for dependencies:
libXvMC x86_64 1.0.10-1.el7 base 23 k
libXxf86dga x86_64 1.1.4-2.1.el7 base 19 k
libdmx x86_64 1.1.3-3.el7 base 16 k
mesa-libxatracker x86_64 18.3.4-12.el7_9 updates 1.3 M
plymouth-graphics-libs x86_64 0.8.9-0.34.20140113.el7.centos base 48 k
plymouth-plugin-label x86_64 0.8.9-0.34.20140113.el7.centos base 38 k
plymouth-plugin-two-step x86_64 0.8.9-0.34.20140113.el7.centos base 45 k
plymouth-theme-charge x86_64 0.8.9-0.34.20140113.el7.centos base 37 k
xorg-x11-drv-ati x86_64 19.0.1-3.el7_7 updates 166 k
xorg-x11-drv-dummy x86_64 0.3.7-1.el7.1 base 18 k
xorg-x11-drv-evdev x86_64 2.10.6-1.el7 base 48 k
xorg-x11-drv-fbdev x86_64 0.5.0-1.el7 base 21 k
xorg-x11-drv-intel x86_64 2.99.917-28.20180530.el7 base 676 k
xorg-x11-drv-nouveau x86_64 1:1.0.15-1.el7 base 96 k
xorg-x11-drv-qxl x86_64 0.1.5-5.el7 base 92 k
xorg-x11-drv-synaptics x86_64 1.9.0-2.el7 base 82 k
xorg-x11-drv-v4l x86_64 0.2.0-49.el7 base 21 k
xorg-x11-drv-vesa x86_64 2.4.0-3.el7 base 25 k
xorg-x11-drv-vmmouse x86_64 13.1.0-1.el7.1 base 24 k
xorg-x11-drv-vmware x86_64 13.2.1-1.el7.1 base 83 k
xorg-x11-drv-void x86_64 1.4.1-2.el7.1 base 14 k
xorg-x11-drv-wacom x86_64 0.36.1-3.el7 base 315 k
xorg-x11-server-common x86_64 1.20.4-13.el7_9 updates 56 k
Updating for dependencies:
llvm-private x86_64 7.0.1-1.el7 base 23 M
mesa-dri-drivers x86_64 18.3.4-12.el7_9 updates 7.2 M
plymouth x86_64 0.8.9-0.34.20140113.el7.centos base 116 k
plymouth-core-libs x86_64 0.8.9-0.34.20140113.el7.centos base 108 k
Transaction Summary
=================================================================================================================================================
Install 6 Packages (+23 Dependent packages)
Upgrade ( 4 Dependent packages)
Total download size: 35 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
No Presto metadata available for updates
warning: /var/cache/yum/x86_64/7/base/packages/libXxf86dga-1.1.4-2.1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for libXxf86dga-1.1.4-2.1.el7.x86_64.rpm is not installed
(1/33): libXxf86dga-1.1.4-2.1.el7.x86_64.rpm | 19 kB 00:00:00
(2/33): libXvMC-1.0.10-1.el7.x86_64.rpm | 23 kB 00:00:00
(3/33): libdmx-1.1.3-3.el7.x86_64.rpm | 16 kB 00:00:00
(4/33): plymouth-core-libs-0.8.9-0.34.20140113.el7.centos.x86_64.rpm | 108 kB 00:00:00
Public key for mesa-libxatracker-18.3.4-12.el7_9.x86_64.rpm is not installed
(5/33): mesa-libxatracker-18.3.4-12.el7_9.x86_64.rpm | 1.3 MB 00:00:00
(6/33): plymouth-graphics-libs-0.8.9-0.34.20140113.el7.centos.x86_64.rpm | 48 kB 00:00:00
(7/33): plymouth-0.8.9-0.34.20140113.el7.centos.x86_64.rpm | 116 kB 00:00:00
(8/33): plymouth-system-theme-0.8.9-0.34.20140113.el7.centos.x86_64.rpm | 32 kB 00:00:00
(9/33): plymouth-plugin-two-step-0.8.9-0.34.20140113.el7.centos.x86_64.rpm | 45 kB 00:00:00
(10/33): plymouth-theme-charge-0.8.9-0.34.20140113.el7.centos.x86_64.rpm | 37 kB 00:00:00
(11/33): plymouth-plugin-label-0.8.9-0.34.20140113.el7.centos.x86_64.rpm | 38 kB 00:00:00
(12/33): xorg-x11-drivers-7.7-6.el7.x86_64.rpm | 8.9 kB 00:00:00
(13/33): xorg-x11-drv-dummy-0.3.7-1.el7.1.x86_64.rpm | 18 kB 00:00:00
(14/33): spice-vdagent-0.14.0-18.el7.x86_64.rpm | 71 kB 00:00:00
(15/33): xorg-x11-drv-evdev-2.10.6-1.el7.x86_64.rpm | 48 kB 00:00:00
(16/33): xorg-x11-drv-ati-19.0.1-3.el7_7.x86_64.rpm | 166 kB 00:00:00
(17/33): xorg-x11-drv-intel-2.99.917-28.20180530.el7.x86_64.rpm | 676 kB 00:00:00
(18/33): xorg-x11-drv-fbdev-0.5.0-1.el7.x86_64.rpm | 21 kB 00:00:00
(19/33): xorg-x11-drv-nouveau-1.0.15-1.el7.x86_64.rpm | 96 kB 00:00:00
(20/33): xorg-x11-drv-synaptics-1.9.0-2.el7.x86_64.rpm | 82 kB 00:00:00
(21/33): xorg-x11-drv-qxl-0.1.5-5.el7.x86_64.rpm | 92 kB 00:00:00
(22/33): xorg-x11-drv-v4l-0.2.0-49.el7.x86_64.rpm | 21 kB 00:00:00
(23/33): xorg-x11-drv-vesa-2.4.0-3.el7.x86_64.rpm | 25 kB 00:00:00
(24/33): xorg-x11-drv-vmmouse-13.1.0-1.el7.1.x86_64.rpm | 24 kB 00:00:00
(25/33): xorg-x11-drv-void-1.4.1-2.el7.1.x86_64.rpm | 14 kB 00:00:00
(26/33): xorg-x11-drv-vmware-13.2.1-1.el7.1.x86_64.rpm | 83 kB 00:00:00
(27/33): xorg-x11-drv-wacom-0.36.1-3.el7.x86_64.rpm | 315 kB 00:00:00
(28/33): xorg-x11-server-common-1.20.4-13.el7_9.x86_64.rpm | 56 kB 00:00:00
(29/33): xvattr-1.3-27.el7.x86_64.rpm | 22 kB 00:00:00
(30/33): xorg-x11-utils-7.5-23.el7.x86_64.rpm | 114 kB 00:00:00
(31/33): mesa-dri-drivers-18.3.4-12.el7_9.x86_64.rpm | 7.2 MB 00:00:03
(32/33): xorg-x11-server-Xorg-1.20.4-13.el7_9.x86_64.rpm | 1.5 MB 00:00:03
(33/33): llvm-private-7.0.1-1.el7.x86_64.rpm | 23 MB 00:00:07
-------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.4 MB/s | 35 MB 00:00:07
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-5.1804.el7.centos.x86_64 (@anaconda)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : plymouth-core-libs-0.8.9-0.34.20140113.el7.centos.x86_64 1/37
Updating : plymouth-0.8.9-0.34.20140113.el7.centos.x86_64 2/37
Installing : plymouth-graphics-libs-0.8.9-0.34.20140113.el7.centos.x86_64 3/37
Updating : llvm-private-7.0.1-1.el7.x86_64 4/37
Installing : mesa-libxatracker-18.3.4-12.el7_9.x86_64 5/37
Installing : plymouth-plugin-label-0.8.9-0.34.20140113.el7.centos.x86_64 6/37
Installing : plymouth-plugin-two-step-0.8.9-0.34.20140113.el7.centos.x86_64 7/37
Installing : plymouth-theme-charge-0.8.9-0.34.20140113.el7.centos.x86_64 8/37
Installing : libXxf86dga-1.1.4-2.1.el7.x86_64 9/37
Installing : xorg-x11-server-common-1.20.4-13.el7_9.x86_64 10/37
Installing : xorg-x11-server-Xorg-1.20.4-13.el7_9.x86_64 11/37
Installing : xorg-x11-drv-v4l-0.2.0-49.el7.x86_64 12/37
Installing : xorg-x11-drv-vmmouse-13.1.0-1.el7.1.x86_64 13/37
Installing : xorg-x11-drv-dummy-0.3.7-1.el7.1.x86_64 14/37
Installing : xorg-x11-drv-evdev-2.10.6-1.el7.x86_64 15/37
Installing : xorg-x11-drv-ati-19.0.1-3.el7_7.x86_64 16/37
Installing : 1:xorg-x11-drv-nouveau-1.0.15-1.el7.x86_64 17/37
Installing : xorg-x11-drv-synaptics-1.9.0-2.el7.x86_64 18/37
Installing : xorg-x11-drv-vmware-13.2.1-1.el7.1.x86_64 19/37
Installing : xorg-x11-drv-fbdev-0.5.0-1.el7.x86_64 20/37
Installing : xorg-x11-drv-vesa-2.4.0-3.el7.x86_64 21/37
Installing : xorg-x11-drv-wacom-0.36.1-3.el7.x86_64 22/37
Installing : xorg-x11-drv-void-1.4.1-2.el7.1.x86_64 23/37
Installing : xorg-x11-drv-qxl-0.1.5-5.el7.x86_64 24/37
Installing : libXvMC-1.0.10-1.el7.x86_64 25/37
Installing : xorg-x11-drv-intel-2.99.917-28.20180530.el7.x86_64 26/37
Installing : libdmx-1.1.3-3.el7.x86_64 27/37
Installing : xorg-x11-utils-7.5-23.el7.x86_64 28/37
Installing : xorg-x11-drivers-7.7-6.el7.x86_64 29/37
Installing : plymouth-system-theme-0.8.9-0.34.20140113.el7.centos.x86_64 30/37
Updating : mesa-dri-drivers-18.3.4-12.el7_9.x86_64 31/37
Installing : xvattr-1.3-27.el7.x86_64 32/37
Installing : spice-vdagent-0.14.0-18.el7.x86_64 33/37
Cleanup : mesa-dri-drivers-17.2.3-8.20171019.el7.x86_64 34/37
Cleanup : plymouth-0.8.9-0.31.20140113.el7.centos.x86_64 35/37
Cleanup : plymouth-core-libs-0.8.9-0.31.20140113.el7.centos.x86_64 36/37
Cleanup : llvm-private-5.0.0-3.el7.x86_64 37/37
Verifying : spice-vdagent-0.14.0-18.el7.x86_64 1/37
Verifying : libdmx-1.1.3-3.el7.x86_64 2/37
Verifying : xorg-x11-drv-v4l-0.2.0-49.el7.x86_64 3/37
Verifying : plymouth-0.8.9-0.34.20140113.el7.centos.x86_64 4/37
Verifying : plymouth-core-libs-0.8.9-0.34.20140113.el7.centos.x86_64 5/37
Verifying : xorg-x11-drv-vmmouse-13.1.0-1.el7.1.x86_64 6/37
Verifying : xorg-x11-drv-dummy-0.3.7-1.el7.1.x86_64 7/37
Verifying : plymouth-graphics-libs-0.8.9-0.34.20140113.el7.centos.x86_64 8/37
Verifying : plymouth-system-theme-0.8.9-0.34.20140113.el7.centos.x86_64 9/37
Verifying : llvm-private-7.0.1-1.el7.x86_64 10/37
Verifying : xorg-x11-utils-7.5-23.el7.x86_64 11/37
Verifying : mesa-dri-drivers-18.3.4-12.el7_9.x86_64 12/37
Verifying : libXvMC-1.0.10-1.el7.x86_64 13/37
Verifying : mesa-libxatracker-18.3.4-12.el7_9.x86_64 14/37
Verifying : xorg-x11-server-common-1.20.4-13.el7_9.x86_64 15/37
Verifying : plymouth-plugin-label-0.8.9-0.34.20140113.el7.centos.x86_64 16/37
Verifying : xorg-x11-drv-evdev-2.10.6-1.el7.x86_64 17/37
Verifying : xorg-x11-drv-ati-19.0.1-3.el7_7.x86_64 18/37
Verifying : 1:xorg-x11-drv-nouveau-1.0.15-1.el7.x86_64 19/37
Verifying : xorg-x11-drv-synaptics-1.9.0-2.el7.x86_64 20/37
Verifying : xorg-x11-drv-vmware-13.2.1-1.el7.1.x86_64 21/37
Verifying : plymouth-plugin-two-step-0.8.9-0.34.20140113.el7.centos.x86_64 22/37
Verifying : xvattr-1.3-27.el7.x86_64 23/37
Verifying : xorg-x11-drv-fbdev-0.5.0-1.el7.x86_64 24/37
Verifying : xorg-x11-drv-vesa-2.4.0-3.el7.x86_64 25/37
Verifying : plymouth-theme-charge-0.8.9-0.34.20140113.el7.centos.x86_64 26/37
Verifying : xorg-x11-drv-wacom-0.36.1-3.el7.x86_64 27/37
Verifying : xorg-x11-drivers-7.7-6.el7.x86_64 28/37
Verifying : libXxf86dga-1.1.4-2.1.el7.x86_64 29/37
Verifying : xorg-x11-server-Xorg-1.20.4-13.el7_9.x86_64 30/37
Verifying : xorg-x11-drv-void-1.4.1-2.el7.1.x86_64 31/37
Verifying : xorg-x11-drv-intel-2.99.917-28.20180530.el7.x86_64 32/37
Verifying : xorg-x11-drv-qxl-0.1.5-5.el7.x86_64 33/37
Verifying : llvm-private-5.0.0-3.el7.x86_64 34/37
Verifying : plymouth-core-libs-0.8.9-0.31.20140113.el7.centos.x86_64 35/37
Verifying : mesa-dri-drivers-17.2.3-8.20171019.el7.x86_64 36/37
Verifying : plymouth-0.8.9-0.31.20140113.el7.centos.x86_64 37/37
Installed:
plymouth-system-theme.x86_64 0:0.8.9-0.34.20140113.el7.centos spice-vdagent.x86_64 0:0.14.0-18.el7 xorg-x11-drivers.x86_64 0:7.7-6.el7
xorg-x11-server-Xorg.x86_64 0:1.20.4-13.el7_9 xorg-x11-utils.x86_64 0:7.5-23.el7 xvattr.x86_64 0:1.3-27.el7
Dependency Installed:
libXvMC.x86_64 0:1.0.10-1.el7 libXxf86dga.x86_64 0:1.1.4-2.1.el7
libdmx.x86_64 0:1.1.3-3.el7 mesa-libxatracker.x86_64 0:18.3.4-12.el7_9
plymouth-graphics-libs.x86_64 0:0.8.9-0.34.20140113.el7.centos plymouth-plugin-label.x86_64 0:0.8.9-0.34.20140113.el7.centos
plymouth-plugin-two-step.x86_64 0:0.8.9-0.34.20140113.el7.centos plymouth-theme-charge.x86_64 0:0.8.9-0.34.20140113.el7.centos
xorg-x11-drv-ati.x86_64 0:19.0.1-3.el7_7 xorg-x11-drv-dummy.x86_64 0:0.3.7-1.el7.1
xorg-x11-drv-evdev.x86_64 0:2.10.6-1.el7 xorg-x11-drv-fbdev.x86_64 0:0.5.0-1.el7
xorg-x11-drv-intel.x86_64 0:2.99.917-28.20180530.el7 xorg-x11-drv-nouveau.x86_64 1:1.0.15-1.el7
xorg-x11-drv-qxl.x86_64 0:0.1.5-5.el7 xorg-x11-drv-synaptics.x86_64 0:1.9.0-2.el7
xorg-x11-drv-v4l.x86_64 0:0.2.0-49.el7 xorg-x11-drv-vesa.x86_64 0:2.4.0-3.el7
xorg-x11-drv-vmmouse.x86_64 0:13.1.0-1.el7.1 xorg-x11-drv-vmware.x86_64 0:13.2.1-1.el7.1
xorg-x11-drv-void.x86_64 0:1.4.1-2.el7.1 xorg-x11-drv-wacom.x86_64 0:0.36.1-3.el7
xorg-x11-server-common.x86_64 0:1.20.4-13.el7_9
Dependency Updated:
llvm-private.x86_64 0:7.0.1-1.el7 mesa-dri-drivers.x86_64 0:18.3.4-12.el7_9
plymouth.x86_64 0:0.8.9-0.34.20140113.el7.centos plymouth-core-libs.x86_64 0:0.8.9-0.34.20140113.el7.centos
Complete!
[root@localhost ~]# startx #再次开启桌面模式,成功开启
xauth: file /root/.serverauth.2099 does not exist
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System: 3.10.0-957.1.3.el7.x86_64
Current Operating System: Linux localhost.localdomain 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-862.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet LANG=en_US.UTF-8
Build Date: 16 November 2020 04:48:07PM
Build ID: xorg-x11-server 1.20.4-13.el7_9
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jan 31 02:43:56 2021
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
VMware: No 3D enabled (0, Success) #表示成功开启,会在vmware上面转换为桌面模式
进行一下图形界面的,检查kvm客户端是不是正常安装
这个期间可能会反应慢,还会出现一下别的桌面配置,可以不用管他们,直接在左上角找我们的kvm应用程序。
代表着我们的kvm已经部署成功
下一章kvm实战之界面远程管理