|
|
在xml文件中添加如下信息: W+ H W0 Z9 k5 C
<serial type='file'>9 s# B$ _! F. `% h* g
<source path='/var/lib/nova/instances/windows2019/console.log'/>
+ b2 h' k& p5 L o3 ?) \ <target port='0'/>
1 h( S1 ?0 S+ \( m0 ?9 J8 O" P <alias name='serial0'/>6 m! h* y1 P8 }: s
</serial>. J. H( c# O% I) N6 j- s1 W
<serial type='pty'>! ~4 j+ m; g. b4 s7 }! m
<source path='/dev/pts/0'/>
9 @+ s O" X: f9 r. I% Y <target port='1'/>) G; q; q9 L' z3 @) ` V. X
<alias name='serial1'/> p$ e X, X3 M! W2 p% L5 O# n
</serial>
1 k/ p1 O! @0 N; I <console type='file'>
M4 S; Q. B1 E% K# E <source path='/var/lib/nova/instances/windows2019/console.log'/>$ ]* E/ M" y- |( f) `5 I8 D
<target type='serial' port='0'/>& t8 V2 A+ z7 r
<alias name='serial0'/>: W$ E8 `. q k, E# s \4 R
</console>. }, n) R Z0 m( U" a, h2 V# e% N
<input type='tablet' bus='usb'>3 y3 d% B8 Y: U
<alias name='input0'/># ], ^, j$ P4 u- ^, a" ?
</input>
1 L7 C6 L1 f1 ?. e/ R/ B <input type='mouse' bus='ps2'/>% K4 ?1 S# J% i
<graphics type='vnc' port='5909' autoport='yes' listen='0.0.0.0' keymap='en-us'>
n2 T; g- N7 g! f6 O0 C <listen type='address' address='0.0.0.0'/>
3 S$ b0 w2 g8 u4 P. w8 @ t </graphics>" i8 F' {3 p4 P8 x, [
) m0 ~% i* S; c5 [% c
保存退出:, _( h5 v% v& N
8 R! j6 h1 f: ?8 U- v$ b
virsh destroy 虚机" x8 k3 v( k3 S2 t
4 ^. |. s! j" \! M4 e
virsh start 虚机即可正常使用。
0 a% K, W S7 A5 j! |8 Y/ M; f+ S( j; h7 u2 O2 E- i6 o1 o
|
|