当前位置:网站首页>kvm虚拟化
kvm虚拟化
2022-07-20 03:36:00 【lxr_99】
一、内容:
1、部署kvm环境。
2、配置桥接网络。
3、分别使用virt-manager和virt-install创建虚拟机。
4、为虚拟机添加一块2G磁盘。更改虚拟机网络使用桥接模式。
5、为关机状态虚拟机创建快照。
二、部署kvm环境
1.创建虚拟机,并打开虚拟化功能
1.1虚拟机配置如下:an
1.2勾选处理器的如下选项:
1.3启动虚拟机
1.4安装虚拟化软件
检查CPU是否支持虚拟化,用如下命令
egrep 'vmx|svm' /proc/cpuinfo
如果 flags: 里有 vmx 或者 svm 就说明支持 VT ;
如果没有任何的输出,cpu 不支持使用 KVM 虚拟机。
三、使用virt-manager创建KVM虚拟机
systemctl stop firewalld
setenforce 0
//安装kvm基本组件
yum install qemu-kvm qemu-img libvirt
yum install virt-install libvirt-python virt-manager python-virtinst libvirt- client
传入镜像
进入virt-manager
[[email protected] iso]# virt-manager
新建虚拟机,然后点击下一步,再选择ISO镜像
选择内存大小和磁盘如下:
四、配置桥接网络
选择如下:
之后按照指示做,最终界面如下:
五、使用virt-install创建虚拟机
[[email protected] iso]# yum install virt-viewer -y
[[email protected] iso]# virt-install --name=centos7 --memory=2048 --vcpus 2 --os-type=linux --cdrom=/iso/CentOS-7-x86_64-Minimal-2009.iso --disk path=/var/lib/libvirt/images/centos7u6.img,size=5,format=qcow2 --network bridge=virbr0
后续步骤相同
六、添加硬盘
进入virt-manager界面,点击左下角,添加硬件
七、创建快照
实验完成
边栏推荐
- See through the "flywheel effect" of household brands from the perspective of three winged birds
- V4L2学习笔记
- mySQL元数据库&账户管理&引擎
- Fruit loops studio music host software Daw fruit software 20.9 Chinese version
- 正则表达式教程笔记
- 技术干货 | MindSpore 自研高阶优化器源码分析和实践应用
- 波场联合储备发表公开信,强调USDD不受制于任何中心化机构
- DenseNet学习笔记(核心与resnet进行对比):
- 关于:在 Office 2021 中自定义模板
- C语言力扣第35题之搜索插入位置。经典二分法
猜你喜欢
【C语言进阶】---- 自定义类型详解
分享一个好玩的JS小游戏
Understanding and applying continuous integration Tekton
regular expression
To clarify the tax arrears: there is no tax arrears, and will continue to operate in compliance, rooted in China
从三翼鸟,透视家居品牌的“飞轮效应”
MindSpore开源周年狂欢,量子机器学习与深度分子模拟等巨量新特性来袭!
【obs】Transform: fit to screen
[5gc] 5g PDU session and session type
(pc+wap) Zhimeng template accounting service website
随机推荐
ARM裸板调试之JTAG调试命令行调试
How to install scons low version
Activiti7 workflow and Alibaba components, second office OA, information management, ERP, etc
[LeetCode]剑指 Offer 52. 两个链表的第一个公共节点
Understanding and applying continuous integration Tekton
[leetcode] sword finger offer 58 - ii Rotate string left
okcc呼叫中心语音短信与语音通知的区别
【培训课程专用】Storage API的介绍
Shengsi YiDianTong | deep learning analysis of classical convolutional neural network
Exch2010: rebuild the entire DAG
【培训课程专用】Trustzone--TZC400设置安全内存
单体 or 微服务?你以为是架构权衡?其实是认知负载!
网络原理之协议详解
The difference between layer 4 and layer 7 load balancing (turn)
[upload range 12-16] cut, picture horse
Alert log alarm "minact scn: using scan error out with error e:12751" processing
Chromeoptions common configuration and webui practice
技术干货 | 解决面试中80%问题,基于MindSpore实现AUC/ROC
scala 函数&方法、函数&方法的实现原理
[LeetCode]剑指 Offer 53 - II. 0~n-1中缺失的数字