当前位置:网站首页>[Galaxy Kirin V10] [server] KVM create Bridge
[Galaxy Kirin V10] [server] KVM create Bridge
2022-07-04 10:32:00 【GUI Anjun @kylinos】
1、 precondition : Install Kirin V10 Server operating system 、 install kvm、 stay kvm Create a good Kirin V10 The system's virtual machine
Experimental environment : The host machine : kirin V10 0711 x86_64 ip:192.168.1.11
virtual machine :kvm + kirin V10 0711 x86_64 ip:192.168.1.110
2、 Host configuration
# yum install bridge-utils -y // install bridge-utils software package , It provides brctl Tools to configure the bridge
Check tun and bridge Whether the module is loaded
# lsmod | grep tun
# lsmod | grep bridge
establish brdige
# brctl addbr br0
# brctl addif br0 ens33 //ens33 Actually prepare the network card name for bridging for the host , Modify according to the actual name # brctl show br0
# brctl stp br0 on
# brctl show br0
# ifconfig ens33
# ifconfig br0
# ifconfig enp3s0 0 up
# ifconfig br0 up
# dhclient br0
# ifconfig br0
# ifconfig ens33
here , As a vassal of the bridge excuse (slave), Physical network port ens33 The interface does not have its own IP Address , The bridge is parasitic on it .
Open the virtual machine configuration details , On the network card xml In the configuration file, the configuration is changed to bridge,( notes : If xml You can't edit , You can open it in preferences according to the prompt xml Editing authority )
Before change :
After the change :
And change the mode to bridge :
If this option is not shown in the figure above, you can choose to specify a shared device , as follows :
Start the virtual machine after configuration
3、 Virtual machine configuration
Start virtual machine , Then fix the virtual machine configuration ip,ip Address and host ens33 ip Same as segment , Gateway and host ens33 Same gateway , Then restart the virtual machine ens33 The Internet
# vim /etc/sysconfig/network-scripts/ifcfg-ens3
# systemctl stop network
# systemctl restart NetworkManager
The host machine Virtual machine connectivity test :
4、 If the host computer and virtual machine network are not connected, check whether the virtual network card of the host computer is in the physical machine br0 On , as follows :
边栏推荐
- Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
- System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
- Vs201 solution to failure to open source file HPP (or link library file)
- 【Day2】 convolutional-neural-networks
- RHCE - day one
- Si vous ne connaissez pas ces quatre modes de mise en cache, vous osez dire que vous connaissez la mise en cache?
- Knapsack problem and 0-1 knapsack problem
- 有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
- Today's sleep quality record 78 points
- 转载:等比数列的求和公式,及其推导过程
猜你喜欢
Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
【OpenCV 例程200篇】218. 多行倾斜文字水印
Knapsack problem and 0-1 knapsack problem
Work order management system OTRs
对于程序员来说,伤害力度最大的话。。。
Reprint: summation formula of proportional series and its derivation process
leetcode842. Split the array into Fibonacci sequences
If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
Rhcsa12
Online troubleshooting
随机推荐
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
Architecture introduction
六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
Introduction to tree and binary tree
How to teach yourself to learn programming
Legion is a network penetration tool
入职中国平安三周年的一些总结
How do microservices aggregate API documents? This wave of show~
今日睡眠质量记录78分
Dynamic address book
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
Laravel文档阅读笔记-How to use @auth and @guest directives in Laravel
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
Exercise 7-4 find out the elements that are not common to two arrays (20 points)
Rhcsa operation
On binary tree (C language)
VLAN part of switching technology
Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
Reasons and solutions for the 8-hour difference in mongodb data date display