|
|
楼主 |
发表于 2022-5-5 17:58:44
|
显示全部楼层
发现一个问题,网卡启动失败:. h6 G, \* T1 y' l
/etc/libvirt/qemu/networks 检查文件default.xml文件,发现没有任何信息。
7 G. l/ {3 X' y6 z5 g% L" E9 C3 {- Scat /etc/libvirt/qemu/networks/default.xml
' b4 S! e5 o$ q5 Z5 i1 v+ b<!--% ~6 G; w1 ~5 X: k* o
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE, M3 @/ e# @ |7 \$ J7 a9 E7 @- B
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:( i$ H* h) [; H$ l4 \: L
virsh net-edit default
9 W9 C5 S: x, Dor other application using the libvirt API.
7 a* f; n1 N- t5 C) U4 M! U' n3 K! {-->
; E1 e! X `5 `2 {% S, Y<network>
- v- w8 d8 ^7 z <name>default</name>. _+ L) [, J% z$ A
<uuid>536e2cf8-bf87-4d48-803d-b66297a6272b</uuid>
- Q6 c$ l& R% ^3 L( I0 E0 { <forward mode='nat'/>1 B' I8 W2 c; }2 B! Y: k# }
<bridge name='virbr0' stp='on' delay='0'/>
j) A: q. N0 b# p J <mac address='52:54:00:74:15:48'/>3 P9 l2 P" A- J1 b2 ?$ j2 Y. T
<ip address='192.168.124.1' netmask='255.255.255.0'>
! v& O( v {, ~- I+ E <dhcp>8 b; I3 {& t; T
<range start='192.168.124.2' end='192.168.124.254'/>7 J% P" C/ p. l
</dhcp>8 g2 n# q( L: w( t
</ip>" x- q$ L/ b5 \ e$ j3 d! O6 X* ~
</network>5 i C3 x3 f( } U4 }
|
|