当前位置:网站首页>[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
DisabledIf the result of execution is enforcing ==> Temporarily Closed selinux
# setenforce 0 -> The status changes to permissivePermanent ban selinux( Restart and take effect )
# vim /etc/selinux/config ==> take SELINUX=enforcing Change it to SELINUX=disabedperform 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-tools6. start-up libvirtd service
# systemctl enable libvirtd
# systemctl start libvirtd7. 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 kvm6. 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=0to 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 NetworkManageruse 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-nicView 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
边栏推荐
- Several cases of word wrapping in div
- Shopify seller: EDM marketing should be combined with salesmartly to easily get the conversion rate
- Uni app internationalization
- 【C语言入门】ZZULIOJ 1031-1035
- 1985-2020(8个版次)全球地表覆盖下载与介绍
- 面试必备!TCP协议经典十五连问!
- EMD 经验模态分解
- “蔚来杯“2022牛客暑期多校训练营2 H
- tron OUT_ OF_ ENERGY
- Typescript from getting started to mastering (XX) function generics
猜你喜欢

nacos注册中心
![[BGP] small scale experiment](/img/58/877e5e454e9bab9d1bccb8fdd3b04d.png)
[BGP] small scale experiment

Mmdetection preliminary use

CUB_ Visualization of key points in 200 bird dataset

初识C语言(3)

Zhihuijun, a genius of Huawei, made a modular mechanical keyboard, which caused an earthquake in the geek circle. Netizens: This is the real customization

Is the browser multi process or single process?

SSL==证书相关概念

Data mining -- Introduction to the basis of association analysis (Part 1)

mmdetection初步使用
随机推荐
数据集成这个地方的过滤条件该咋写,用的啥语法?sql语法处理bizdate可以不
LVS+KeepAlived高可用部署实战应用
Basic configuration of BGP - establish peers and route announcements
Typescript from getting started to mastering (XXIII) namespace namespace (Part 2)
Shopify卖家:EDM营销就要搭配SaleSmartly,轻松搞定转化率
一文学透MySQL表的创建和约束
Lucifer 98 life record ing
安装ros的laser_scan_matche库所遇到的问题(一)
Typescript from introduction to proficiency (XXIV) using import syntax
【C语言入门】ZZULIOJ 1031-1035
Problems encountered in vscode connection SSH
JS cookie usage
Three tier architecture of enterprise network
Communication between parent-child components and parent-child components provide and inject
SQL语句 关于字段转换怎么写
EMD 经验模态分解
C declaration and initialization and assignment
Const char* and char*, string constants
Asp. Net MVC, how can the controller in the folder jump to the controller in the root directory?
Is the array name a pointer