查看“Centos7 使用kvm创建虚拟机”的源代码
←
Centos7 使用kvm创建虚拟机
跳转至:
导航
,
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
==1. KVM环境配置== 关闭Selinux <nowiki> (1) [root@ localhost ~]#vim /etc/sysconfig/selinux # 修改SELINUX=disabled # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted (2) [root@ localhost ~]#setenforce 0 #当次生效,getenforce 查看当前selinux状态 (3)关闭防火墙 [root@ localhost ~]#systemctl stop firewalld [root@ localhost ~]#systemctl disable firewalld (4)查看是否支持虚拟机 [root@localhost ~]# egrep -c '(vmx|svm)' /proc/cpuinfo 2 #如果执行这条命令的返回结果为0则表示CPU不支持虚拟化,如果返回结果为1或者大于1到数字则表示CPU支持虚拟。其中vmx为Intel的CPU指令集,svm为AMD的CPU指令集。 </nowiki>
返回至
Centos7 使用kvm创建虚拟机
。
导航菜单
个人工具
登录
命名空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息