Centos7搭建 KVM 环境
2024-10-20 17:28:25
注意:使用KVM管理虚拟机分命令行和图形化界面两种方式,这里最后一步安装的工具是图形化管理工具
安装前准备
验证CPU是否支持KVM
如果结果中有vmx(Intel)或svm(AMD)字样,就说明CPU的支持的。
egrep '(vmx|svm)' /proc/cpuinfo
关闭SELinux
将/etc/sysconfig/selinux 中的 SELinux=enforcing 修改为 SELinux=disabled
安装一些最基本的服务
yum -y install epel-release net-tools vim unzip zip wget
安装KVM及其依赖项
yum -y install qemu-kvm libvirt virt-install bridge-utils virt-viewer qemu-kvm-tools
验证安装结果
lsmod | grep kvm
开启kvm服务
systemctl start libvirtd && systemctl enable libvirtd
systemctl status libvirtd
systemctl is-enabled libvirtd
安装图形化管理工具
yum install -y virt-manager #安装KVM 图形化管理工具
最新文章
- Xcode Shortcuts
- iOS Auto Layout
- js 字符串类型转为数组类型
- linux 将foo制定n, m之间行的内容, 追加到bar文件
- 设置VS2010中自带的ActiveX控件测试容器TstCon
- 微信支付-b
- 绕过图片格式限制上传木马获取WebShell
- poj 1681 Painter's Problem
- OpenMP 并行化处理测试
- django: template using &; debug
- Android onSaveInstanceState()
- Block 再学习 !
- 团队作业4——第一次项目冲刺(Alpha版本)2nd day
- 【Python】Talk Python To Me Podcast播客
- Android 之dragger使用
- springboot 整合 mybatis
- Linux之常识小结[版本]
- Wannafly挑战赛21 E 未来城市规划
- linux 查看磁盘读写:iostat
- 大数据 - spark-sql 常用命令