当前位置:网站首页>[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
边栏推荐
- C language to achieve three chess game (detailed explanation)
- Pat a1069/b1019 the black hole of numbers
- 3.解决Pycharm报错Unresolved reference ‘selenium‘ Unresolved reference ‘webdriver‘
- 伏英娜:元宇宙就是新一代互联网!
- Const char* and char*, string constants
- The function parameters of the new features of ES6 are assigned initial values and rest parameters
- Typescript from getting started to mastering (XXIII) namespace namespace (Part 2)
- mmdetection初步使用
- 谁能详细说下mysqlRC下的半一致读和怎么样减少死锁概率?
- JS cookie usage
猜你喜欢

Configmap configuration and secret encryption

Simple cases of inner connection and left connection

Analysis of new retail o2o e-commerce model

数据挖掘——关联分析基础介绍(上)

OA项目之会议通知(查询&是否参会&反馈详情)
![[principle] several ways of horizontal penetration](/img/fc/2ef7dd6ebc5c0bd8f7d302d8b596d6.png)
[principle] several ways of horizontal penetration

面试必备!TCP协议经典十五连问!

Interview essential! TCP classic 15 consecutive questions!

Lua语言(stm32+2G/4G模块)和C语言(stm32+esp8266)从字符串中提取相关数据的方法-整理

小马智行进军前装量产,从自研域控制器入手?
随机推荐
EMD 经验模态分解
大佬们flink的JDBC SQL Connector现在不支持所有的数据库吗,例如vertica?
The return value of the function is the attention of the pointer, the local variables inside the static limit sub function, and how the pointer to the array represents the array elements
Configmap configuration and secret encryption
Opensql quick learning
SQL server how to judge when the parameter received by the stored procedure is of type int?
Deep understanding of browser caching mechanism (HTTP)
Deconstruction assignment of new features of ES6
Data mining -- Introduction to the basis of association analysis (Part 1)
Shopify seller: EDM marketing should be combined with salesmartly to easily get the conversion rate
OPENSQL快速学习
VScode连接ssh遇到的问题
UCOS task switching process
Batch production and upload sales NFT opensea eth polygon
【BGP】小型实验
Lua language (stm32+2g/4g module) and C language (stm32+esp8266) methods of extracting relevant data from strings - collation
“蔚来杯“2022牛客暑期多校训练营2 H
Connection broken by 'readtimc rt-443): read timed out (read timeout=l5)“)‘: /pac
Three tier architecture of enterprise network
[BGP] small scale experiment