当前位置:网站首页>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 .
边栏推荐
- Linux 定时备份数据库并删除 N 天以前的数据
- Digital transformation of enterprises has become a general trend, and it is important to choose the right online collaboration tools
- Pychart loads CONDA to create a pytorch virtual environment and reports an error. It is normal on the CONDA command line
- Still using xshell? You are out. I recommend a more modern terminal connection tool
- Configure the server environment
- CIO guide to business change
- 【shell】转载:批量替换 find awk sed xargs
- 金仓数据库 KingbaseES SQL 语言参考手册 (13. SQL语句:ALTER SYNONYM 到 COMMENT)
- Bug feedback: synchronization failed
- 基于ABP实现DDD--领域逻辑和应用逻辑
猜你喜欢

IM即时通讯开发如何压缩移动网络下APP的流量消耗

企业内部信息碎片化该怎么办?不妨试试这样做

数据库设计三大范式

Pychart loads CONDA to create a pytorch virtual environment and reports an error. It is normal on the CONDA command line

DOM案例:10秒倒计时-写跳转页面相关的知识

Software testing - what are the automated testing frameworks?

Cuda11.2 corresponding pytorch installation

Server memory failure prediction can actually do this

LeetCode每日一练 —— 88. 合并两个有序数组

Test interview question set UI automated test
随机推荐
openstack 虚拟机网卡被重名为cirename0
【Android】Kotlin 快速编译背后的黑科技,了解一下~
2022/07/26 学习笔记 (day16) 抽象与接口
金仓数据库 KingbaseES SQL 语言参考手册 (21. KES正则表达式支持)
Summary of iPhone development data persistence (final) - Comparison of five data persistence methods
Implementing DDD based on ABP -- domain logic and application logic
What is a knowledge management system? You need to know this
金仓数据库 KingbaseES SQL 语言参考手册 (20. SQL语句: MERGE 到 VALUES)
【PHP】使用 file_get_contents() 发送 GET、POST 请求
Linear algebra Chapter 3 vector
Openstack virtual machine network card is renamed cirename0
Leetcode daily practice - 88. Merge two ordered arrays
Linux 定时备份数据库并删除 N 天以前的数据
Svn - detailed documentation
负载均衡的使用
LeetCode每日一练 —— 88. 合并两个有序数组
中天钢铁在 GPS、 AIS 调度中使用 TDengine
上半年住户存款增加10.33万亿元,平均每天约571亿存款涌向银行
Chapter 9 practical modeling technology
Linux regularly backs up the database and deletes the data n days ago