博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
KVM虚拟机的安装
阅读量:6265 次
发布时间:2019-06-22

本文共 4792 字,大约阅读时间需要 15 分钟。

 KVM(kernel-based Virtual Machine)

[root@ok ~]# egrep '(vmx|svm)' --color=always /proc/cpuinfoflags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcidflags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcidflags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcidflags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcid

 

[root@ok ~]# yum install -y kvm kmod-kvm kvm-qemu-img libvirt Python-virtinst virt-manager virt-viewer bridge-utils virt-install
yum install -y kvm kmod-kvm kvm-qemu-img libvirt Python-virtinst virt-manager virt-viewer bridge-utilsLoaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfilePackage 2:qemu-kvm-0.12.1.2-2.491.el6_8.7.x86_64 already installed and latest versionNo package kmod-kvm available.No package kvm-qemu-img available.Package libvirt-0.10.2-60.el6.x86_64 already installed and latest versionNo package Python-virtinst available.  * Maybe you meant: python-virtinstPackage virt-manager-0.9.0-31.el6.x86_64 already installed and latest versionPackage virt-viewer-2.0-14.el6.x86_64 already installed and latest versionPackage bridge-utils-1.2-10.el6.x86_64 already installed and latest versionNothing to do

上面的好象有问题,可以试试下面的这个:

[root@ok ~]# yum install -y kvm kmod-kvm qemu-img libvirt python-virtinst virt-manager virt-viewer bridge-utils

也会有个包没装:

# yum install -y kvm kmod-kvm qemu-img libvirt python-virtinst virt-manager virt-viewer bridge-utilsLoaded plugins: fastestmirror, refresh-packagekit, securitySetting up Install ProcessLoading mirror speeds from cached hostfilePackage 2:qemu-kvm-0.12.1.2-2.491.el6_8.7.x86_64 already installed and latest versionNo package kmod-kvm available.Package 2:qemu-img-0.12.1.2-2.491.el6_8.7.x86_64 already installed and latest versionPackage libvirt-0.10.2-60.el6.x86_64 already installed and latest versionPackage python-virtinst-0.600.0-29.el6.noarch already installed and latest versionPackage virt-manager-0.9.0-31.el6.x86_64 already installed and latest versionPackage virt-viewer-2.0-14.el6.x86_64 already installed and latest versionPackage bridge-utils-1.2-10.el6.x86_64 already installed and latest version

但yum search kmod:

kmod-kvm-debug.x86_64 : kvm kernel module(s)kmod-oracleasm.x86_64 : oracleasm kernel module(s)kmod-rtsx_pci.x86_64 : rtsx_pci kernel module(s)

后来再次装的时候问题解决!!

Unable to open a connection to the libvirt management daemon.Libvirt URI is: qemu:///systemVerify that: - The 'libvirtd' daemon has been started

 

[root@bass ~]# service libvirtd statuslibvirtd is stopped

 

[root@bass ~]# service libvirtd start Starting libvirtd daemon: 2016-05-05 09:24:11.490+0000: 7189: info : libvirt version: 0.10.2, package: 54.el6_7.6 (CentOS BuildSystem 
, 2016-03-22-16:55:18, c6b8.bsys.dev.centos.org)2016-05-05 09:24:11.490+0000: 7189: warning : virGetHostname:2279 : getaddrinfo failed for 'bass': Name or service not known [ OK ]

 上面的问题解决!

转载地址:http://fydpa.baihongyu.com/

你可能感兴趣的文章
(十四) Java B2B2C多用户商城 springboot架构- Spring Cloud构建分布式电子商务平台
查看>>
Spss统计描述分析
查看>>
快排-C语言实现
查看>>
Oracle11完全卸载方法
查看>>
实例变量和属性(转)
查看>>
HTML笔记
查看>>
php7安装步骤
查看>>
c# WPF客户端调用WebAPI并转换成List
查看>>
洛谷 2634&&BZOJ 2152: 聪聪可可【点分治学习+超详细注释】
查看>>
loadrunner
查看>>
JavaScript数组去重
查看>>
LeetCode:20. Valid Parentheses(Easy)
查看>>
2017-5-16 类
查看>>
loadView的用法
查看>>
5只蚂蚁走木棍问题
查看>>
iOS中3种正则表达式的使用与比较
查看>>
如果是繁體,Zzk搜不搜的到呢?
查看>>
系统设计 - 软件构件技术
查看>>
linux下配置SVN搭建 centos svn安装配置
查看>>
c#高级编程第七版 学习笔记 第一章 .NET体系结构
查看>>