当前位置:网站首页>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 .
边栏推荐
- 什么是联邦图机器学习?弗吉尼亚大学最新《联邦图机器学习:概念、技术和应用》综述
- Codeforces Round #810 (Div. 2)(A~C)
- LeetCode每日一练 —— 26. 删除有序数组中的重复项
- Summary of iPhone development data persistence (final) - Comparison of five data persistence methods
- 负载均衡的使用
- 【OBS】Dropped Frames And General Connection Issues
- canvas 图形
- Do you know the difference between safety test, functional test and penetration test?
- PHP 替换中文字符的方法
- 知识管理系统是什么?你需要知道这些
猜你喜欢
Bug feedback: synchronization failed

All you want to know about interface testing is here

负载均衡的使用
![[internship experience] exception handling and URL result response data processing](/img/ed/05622fad0d3d8dcf17ce7069340669.jpg)
[internship experience] exception handling and URL result response data processing

上半年住户存款增加10.33万亿元,平均每天约571亿存款涌向银行

【Android】Kotlin 快速编译背后的黑科技,了解一下~

线性代数第3章向量

LeetCode每日一练 —— 88. 合并两个有序数组
![Design of intelligent weighing system based on Huawei cloud IOT (STM32) [II] there is information at the end](/img/55/ca86fd1a53eb61efc70fead08ff0ad.png)
Design of intelligent weighing system based on Huawei cloud IOT (STM32) [II] there is information at the end

IM即时通讯开发如何压缩移动网络下APP的流量消耗
随机推荐
How to write the test case of mobile app? What are the mobile app test points?
【PHP】将 SESSION 数据保存到 Redis
Thinking personally
中信建投启牛学堂开户是安全的吗,启牛是干嘛的
[PHP] use file_ get_ Contents() sends get and post requests
服务发现原理分析与源码解读
拿铁DHT-PHEV产品响当当,销量会不会让李瑞峰想通了呢?
Digital transformation of enterprises has become a general trend, and it is important to choose the right online collaboration tools
【二叉树】将二叉搜索树变平衡
中天钢铁在 GPS、 AIS 调度中使用 TDengine
MySQL subquery usage
金仓数据库 KingbaseES SQL 语言参考手册 (12. SQL语句:ALTER LANGUAGE 到 ALTER SUBSCRIPTION)
通过源码深度分析线程池中Worker线程的执行流程
Uiobject2 of uiautomator2 common classes
Test interview question set UI automated test
Win11 U盘驱动异常怎么调整为正常?
【MySQL】 - 索引原理与使用
数据库设计三大范式
Adjust the array order so that odd numbers precede even numbers and their relative positions remain the same
上半年住户存款增加10.33万亿元,平均每天约571亿存款涌向银行