|
|
# virsh define centos7.9.xml
4 N( z! z* F0 O9 Y) j8 S9 Uerror: Failed to define domain from centos7.9.xml
7 t1 Z M( v0 f( F0 e% x0 g: h! Eerror: (domain_definition):140: AttValue: " or ' expected
; y8 T6 v4 I5 |7 b# }; f) L; { <mac address=/>' v7 G% Y% ^- y3 l
--------------------^3 n( g4 i& m4 o( W
# virsh define centos7.9.xml
- Z9 h4 e% E0 uerror: Failed to define domain from centos7.9.xml
: @8 ~5 _0 ?: W% v1 Terror: XML error: unable to parse mac address ' '
% h" _) V* D6 O' l" v删除报错行
, V1 K' F) m. R(nova-libvirt)[root@compute01 images]# vi centos7.9.xml
4 z9 e! V' ]6 s
% ]% M6 |# }4 G C9 m <interface type='bridge'>
, O2 e% K5 `/ t7 F! o% B* Q* q <mac address=''/> ### 删除这行:' S. |6 f7 b4 K5 i
<source bridge='brq039d8d36-65'/># p }" w- \3 Y6 F5 _7 b
(nova-libvirt)[root@compute01 images]# virsh define centos7.9.xml 0 e& m ~; |0 E. d0 d# {. E6 V
error: Failed to define domain from centos7.9.xml
& |- p0 y/ G. j" K2 Rerror: XML error: unable to parse mac address ''2 u' ?# A5 [* H/ U+ k
# G9 Z& K- x7 O% E" C6 [(nova-libvirt)[root@compute01 images]# vi centos7.9.xml
- t+ ^/ x7 r% [- D2 o- u(nova-libvirt)[root@compute01 images]# virsh define centos7.9.xml
`/ J9 c* z3 V6 C6 ]" u, GDomain centos7.9 defined from centos7.9.xml
7 Z- B7 j& I+ N' i5 K(nova-libvirt)[root@compute01 images]# virsh list " Y) P' V# _6 D. A* X
Id Name State6 W" T( ]6 _( H% d
----------------------------------------------------4 B+ c8 A, O9 b( F
3 instance-00000059 running
7 `+ _8 M" t, r$ G& b' H2 w2 ?(nova-libvirt)[root@compute01 images]# virsh list --all0 g; l) B$ t5 e3 x. F9 k0 E
Id Name State
$ @5 z$ \6 @: V5 H, k; B( s1 r----------------------------------------------------
3 Q( u# S$ E; v S+ C" [% c; R 3 instance-00000059 running, s) P2 D8 f! y
- centos7.9 shut off z) w% _9 t* \; m5 E, W# ]
Q3 }" _- t9 K
问题解决。
& T( U- d) H2 L+ E) b% Q! p' p
) N# U) ^5 t" j7 U5 E( _ |
|