当前位置:网站首页>[kvm] install KVM
[kvm] install KVM
2022-07-29 04:04:00 【wy_ hhxx】
Environmental Science : RHEL7.6
1. Check whether the server has successfully started virtualization
# egrep -o 'vmx|svm' /proc/cpuinfo -> retrieval /proc/cpuinfo Whether the document contains vmx or svm character string
vmx
vmx
vmx
vmx
…
If the command displays the result (vmx or svm), Is the open state
2. Turn off firewall
# systemctl stop firewalld
# systemctl disable firewalld -> Remove the firewall service from the boot list
3. close selinux
Carry out orders getenforce see selinux state
# getenforce
Disabled
If the result of execution is enforcing ==> Temporarily Closed selinux
# setenforce 0 -> The status changes to permissive
Permanent ban selinux( Restart and take effect )
# vim /etc/selinux/config ==> take SELINUX=enforcing Change it to SELINUX=disabed
perform reboot Command to restart the machine
4. To configure yum Source
# cat /etc/yum.repos.d/installpkg.repo
[INSTALLPKG]
name=INSTALLPKG
baseurl=file:///var/www/html/updates/x86_64/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
5. install KVM
# yum --disablerepo=* --enablerepo=INSTALLPKG install qemu-kvm qemu-kvm-tools qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils libguestfs-tools
6. start-up libvirtd service
# systemctl enable libvirtd
# systemctl start libvirtd
7. confirm kvm already installed
Use lsmod The command confirms that it is loaded KVM modular
# lsmod | grep -i kvm
kvm_intel 183621 54
kvm 586948 1 kvm_intel
irqbypass 13503 35 kvm
6. Configure bridge network
Configure the network card before bridging the network ifcfg-eth0 Content reference of
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth0
UUID=b108dded-2234-4cb5-5678-e89e69f16cdd
DEVICE=eno1
ONBOOT=yes
IPADDR=10.100.173.33
NETMASK=255.255.255.192
GATEWAY=10.100.173.1
newly build ifcfg-br0 file
DEVICE=br0
ONBOOT=yes
BOOTPROTO=static
TYPE=Bridge
IPADDR=10.100.173.33
NETMASK=255.255.255.192
GATEWAY=10.100.173.1
DELAY=0
to update ifcfg-eth0 The content of
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=eth0
UUID=b108dded-2234-4cb5-5678-e89e69f16cdd
DEVICE=eth0
ONBOOT=yes
BRIDGE=br0
And then I use systemctl status network Restart the network , therefore ssh Disconnected and unable to connect to the server ==
from iDRAC go in perform systemctl restart NetworkManager Then it can be connected again
# systemctl restart NetworkManager
use brctl Command to view Bridge Information
# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.20040ff6cd4c no eth0
vnet0
vnet1
docker0 8000.0242c38598ca no
virbr0 8000.525400ad9637 yes virbr0-nic
View version
# virsh -c qemu:///system list
Id Name State
----------------------------------------------------
# virsh -version
4.5.0
# virt-install --version
1.5.0
Reference material :
install KVM https://www.cnblogs.com/asfor/p/12684781.html
CnetOS7/RHEL7 install KVM https://www.cnblogs.com/kcxg/p/11049829.html
边栏推荐
- Deconstruction assignment of new features of ES6
- 请问为什么我进行mysql数据update时,kafka中采集到的是先删除原纪录(op d)再新增新
- 关于ALV格式控制部分的写法
- Shopify卖家:EDM营销就要搭配SaleSmartly,轻松搞定转化率
- 数据集成这个地方的过滤条件该咋写,用的啥语法?sql语法处理bizdate可以不
- Zhihuijun, a genius of Huawei, made a modular mechanical keyboard, which caused an earthquake in the geek circle. Netizens: This is the real customization
- Some problems about pointers
- Ma Zhixing entered the mass production of front loading, starting with the self-developed domain controller?
- tron OUT_ OF_ ENERGY
- 店铺排名问题,如何解决?
猜你喜欢
[BGP] small scale experiment
Function pointer and callback function
【BGP】小型实验
数据挖掘——关联分析例题代码实现(下)
[deep learning CPU (part outside) - virtual memory]
Ssl== certificate related concepts
The digitalization of the consumer industry is upgraded to "rigid demand", and weiit's new retail SaaS empowers enterprises!
SQL窗口函数
Typescript from getting started to mastering (XVI) configuration file - first knowledge of compileroptions configuration item
EMD empirical mode decomposition
随机推荐
Connection broken by 'readtimc rt-443): read timed out (read timeout=l5)“)‘: /pac
【C语言入门】ZZULIOJ 1031-1035
伏英娜:元宇宙就是新一代互联网!
Typescript from getting started to mastering (19) enumeration types
When defining an array, the size must be constant
Mmdetection preliminary use
Wechat applet monitors sliding events on the screen
HCIP BGP
LDP -- label distribution protocol
[原理] 横向渗透的几种方式
EMD 经验模态分解
How to write SQL statements about field conversion
Three tier architecture of enterprise network
[deep learning CPU (part outside) - virtual memory]
Some notes on uniapp
Configmap configuration and secret encryption
SQL server how to judge when the parameter received by the stored procedure is of type int?
Pat a1069/b1019 the black hole of numbers
关于双指针的思想总结
MySQL第四篇(完结)