当前位置:网站首页>KVM virtualization
KVM virtualization
2022-07-26 19:53:00 【Quantum wave cat】
One 、 Deploy kvm Environmental Science
[[email protected] ~]# yum grouplist
[[email protected] ~]# yum groupinstall "Server with GUI"
[[email protected] ~]# systemctl get-default
[[email protected] ~]# systemctl set-default
[[email protected] ~]# systemctl set-default graphical.target
[[email protected] ~]# yum -y install xorg-x11-font-utils
[[email protected] ~]# reboot
[[email protected] ~]# lsmod | grep kvm
[[email protected] ~]# modprobe kvm_intel
[[email protected] ~]# yum install qemu-kvm qemu-img libvirt
[[email protected] ~]# nmcli connection modify ens160 ipv4.dns 192.168.235.140
[[email protected] ~]# nmcli connection up ens160
[[email protected] ~]# nmcli device show | grep DNS
[[email protected] ~]# ip a
[[email protected] ~]# systemctl start libvirtd
[[email protected] ~]# systemctl status libvirtd
[[email protected] ~]# virsh net-list

Two 、 Configure bridge network
# You can use this method
[[email protected] ~]# nm-connection-editor
Click here :


complete :

3、 ... and 、 Separate use virt-manager and virt-install Create a virtual machine
3.1 Use virt-manager Create a virtual machine
Type in terminal virt-manager, It will pop up 
storage Choose default

Click on finish Finish creating
3.2 Use virt-install Create a virtual machine
[[email protected] ~]# virt-install --name=centos7 --memory 512,maxmemory=1024 --vcpus 1,maxvcpus=4 --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 --autostart



After installation, click reboot restart :

Four 、 Add a piece to the virtual machine 2G disk

Change the bridge mode used by the virtual machine network :


5、 ... and 、 Create a snapshot of the virtual machine in shutdown state
vm1 snapshot


centos7 The same is true of snapshots .
边栏推荐
- Analysis of interface testing
- 基于华为云 IOT 设计智能称重系统 (STM32)【二】结尾有资料
- LeetCode每日一练 —— 26. 删除有序数组中的重复项
- Talk about how to use redis to realize distributed locks?
- 十大排序详解
- 论文精读:YOLOV2——YOLO9000:Better, Faster, Stronger
- Zhongtian steel uses tdengine in GPS and AIS scheduling
- Collection of original IOS interview questions
- [PHP] common header definitions
- 金仓数据库 KingbaseES SQL 语言参考手册 (13. SQL语句:ALTER SYNONYM 到 COMMENT)
猜你喜欢

kvm虚拟化

工作13年后,个人的一点软件测试经历及感想……

LeetCode每日一练 —— 26. 删除有序数组中的重复项

Detailed explanation of Yolo v1

Chapter 9 practical modeling technology

Win11 U盘驱动异常怎么调整为正常?

Training embedded representation of large categories using triple loss and twin neural networks

How to adjust the abnormal win11 USB drive to normal?

How to write the test case of mobile app? What are the mobile app test points?

Intensive reading of the paper: yolov2 - yolo9000: better, faster, stronger
随机推荐
The authentication type 10 is not supported
视频直播源码,实现上下滚动的广告效果
After working for 13 years, I have a little software testing experience and feelings
Software testing - what are the automated testing frameworks?
u盘损坏怎么恢复原来数据,u盘损坏数据如何恢复
Ijcai2022 meeting! Brescia et al. Tutorial of evidential reasoning and learning, describing its latest progress, with 96 slides attached
Method of replacing Chinese characters with PHP
There are six ways to help you deal with the simpledateformat class, which is not a thread safety problem
Analysis of interface testing
手机app测试用例怎么写?手机app测试点有哪些?
Chapter 9 practical modeling technology
LeetCode每日一练 —— 26. 删除有序数组中的重复项
Pyqt5 rapid development and practice 3.6 packaging resource files
CONDA transfer project virtual environment essential skills +pip speed download too slow solution
PHP 替换中文字符的方法
Design of intelligent weighing system based on Huawei cloud IOT (STM32) [II] there is information at the end
MySQL 子查询使用方式
How to write the test case of mobile app? What are the mobile app test points?
[PHP] MySQL native PHP operation - Tianlong eight steps
Solidity中call函数详解