|
|
楼主 |
发表于 2019-9-5 10:33:17
|
显示全部楼层
<domain type='kvm' id='192'>
' J" l* x7 |. t+ ]% e& w <name>test</name>
) |4 X" j! q" M3 c( U, M+ _: g- D* ~# o <uuid></uuid>0 H) s ^$ x& ^$ f. Y
<memory unit='KiB'>25165824</memory>
# L( |$ C9 E0 d. q4 G9 ~ <currentMemory unit='KiB'>25165824</currentMemory>* J4 ^" G- }6 q5 j
<vcpu placement='static'>6</vcpu>- ~' h( u8 T' ?3 X" G, O) D4 z8 V
<resource>4 A4 _" m1 R% [% ?% u
<partition>/machine</partition>
" u% {+ F2 z$ N4 l5 S </resource>6 C% W! o/ C: y- H& i* e
<os>5 V) ]* g4 K, P& [+ _1 V
<type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
+ H# N; n5 {+ f+ B6 j& I5 W <boot dev='hd'/>
6 W1 Y0 d/ F! I" N6 M* b4 C7 i- j </os>' y0 U- d. `& w% s' ]: G7 V& ^
<features>
m. ^; X7 a) ? <acpi/>8 d& E( w1 q# d2 i+ G" _
<apic/>
+ i8 N. {/ k3 U9 D4 Z4 _) P </features>
/ k. F3 v8 Q2 k$ B& G1 |# d9 y <cpu mode='custom' match='exact'>
' ^% [- u$ D4 T2 r <model fallback='allow'>Haswell-noTSX</model>. q. y+ H b& S1 }+ Z7 I2 ^
</cpu>, L- U* N7 v; o4 M0 k
<clock offset='utc'>
3 R. ^4 j7 B8 E$ R1 }1 | <timer name='rtc' tickpolicy='catchup'/>6 F1 P. ?6 J( q' j
<timer name='pit' tickpolicy='delay'/>
$ t, {" B: h( ~% L$ d# _ <timer name='hpet' present='no'/>& U4 ?& Y) O w# |6 p$ S
</clock>: E- \% k* O: o x- M6 s9 u
<on_poweroff>destroy</on_poweroff>
, S2 m7 x% S+ Z) F! U- s <on_reboot>restart</on_reboot>* T9 Q" P- f; R2 S
<on_crash>restart</on_crash>6 ^3 W: Z6 P5 {+ @: d: G& {" _
<pm>" P @9 ?2 @+ m; j1 l/ j
<suspend-to-mem enabled='no'/>" J' Y. l# `0 j8 J3 t9 z7 m
<suspend-to-disk enabled='no'/>
2 e. J; T) ?9 h8 @0 M. |6 X </pm> R5 M' p. L9 Z( v3 l
<devices>
1 {" P* p: M6 i" k8 I) ^* b <emulator>/usr/libexec/qemu-kvm</emulator>
0 j' m4 w; i# }; z" o6 c( K <disk type='file' device='disk'>/ Z' F2 s4 B- f) w, F+ I1 z$ [
<driver name='qemu' type='qcow2'/>0 P4 N; ^& ?. w, J6 G2 f5 F+ l/ N
<source file='/var/lib/libvirt/images/VSD-4.0.10_272.4.qcow2'/>' d/ T; z% f% e5 g$ o& ~0 d# \
<backingStore/>4 L7 i* \) j6 O) R" e( D Z x
<target dev='vda' bus='virtio'/>
- T' L/ _* K/ c3 Q$ f <alias name='virtio-disk0'/>
% ^! T; \6 [6 @5 M, @ <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>2 A5 b8 g: ]2 }8 O
</disk>
) x2 L3 p( s4 r7 L3 R0 U6 v) E <controller type='usb' index='0' model='ich9-ehci1'>
) \9 C+ V& q/ Z; S ^2 b <alias name='usb'/>
, i' E: a0 s& B0 O. T* R; i <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>: K* K( Q$ {( G' l0 @
</controller>
7 b4 {. D" i7 u8 y7 c7 y <controller type='usb' index='0' model='ich9-uhci1'>- L* u5 k" N! P. C1 l
<alias name='usb'/>
V F* I8 ^1 n( P2 p- A <master startport='0'/>0 q" {& F! e' q* j6 a, b6 B
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
0 ~) d; P9 N) v) v8 q" L0 Q </controller>
3 i, D/ f* J! v b5 U7 Q3 a8 Y <controller type='usb' index='0' model='ich9-uhci2'>
, D& M0 T+ _& S7 v+ K <alias name='usb'/>- T5 P' E- m9 b7 ]9 B+ S
<master startport='2'/>, s& K6 Z$ }4 e/ D0 K$ C
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
B5 H$ H* }. v8 I8 \" J </controller>7 D/ ]) s6 F* |8 Q% A3 w* k' J
<controller type='usb' index='0' model='ich9-uhci3'>5 [$ R2 G8 v* G/ e: I6 [
<alias name='usb'/>
3 j r) I4 f% l! k2 n0 h4 s <master startport='4'/>
' H+ o* \% A. }- H <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>$ d6 F/ B* N' y" ?& `# z* Z
</controller>7 e, e- A+ w0 Q0 \8 s- v
<controller type='pci' index='0' model='pci-root'>
& H& ]: k5 J1 {4 P9 c# V <alias name='pci.0'/>, w5 g. P. v) T" D% F9 c
</controller>3 H2 A9 r1 V- v; U# h+ b
<controller type='virtio-serial' index='0'>
- m. H# ]7 i; x2 p <alias name='virtio-serial0'/>
( f( p: p! w( R E/ o <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
5 p3 y9 ^5 Y; M/ A. R </controller>
O- v Z7 O% r. S4 O <interface type='bridge'>8 v6 g6 J, h$ Y/ c
<source bridge='br2455'/>
1 g( s ?) [ b, `2 ]& _- K <target dev=''/>+ }4 l: X S* h" b T9 S) L
<model type='virtio'/>
. }) _" Q. _$ O <alias name='net0'/>
W4 O8 J, S7 `( @, f# X7 X2 m, O <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>2 w" o# c8 e$ P/ K
</interface>
$ d4 q) D$ U& a9 `6 `! D <serial type='pty'>) z9 R* U: @5 ?
<source path='/dev/pts/4'/>, b2 l U6 k2 L) w% ?
<target port='0'/>
. l+ g* G1 Z1 o$ U# W% B <alias name='serial0'/>
/ v' N* h5 Z/ y$ `& O* V' `6 { </serial>$ Q( e: X% s% P7 ^, \* o
<console type='pty' tty='/dev/pts/4'>* n! `4 v7 W' d/ C' W) G# j: J
<source path='/dev/pts/4'/>4 j9 ~9 }! k, r$ ^' [7 S
<target type='serial' port='0'/>9 X: g& v, A2 C
<alias name='serial0'/>5 u8 ~8 R' M l
</console>
4 l" l2 a* }- E+ |5 ] r <channel type='unix'>
" t$ j) _; T7 H; G9 H4 g! M <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-vsd4/org.qemu.guest_agent.0'/>
) q# C8 S: L& o% O! j+ H9 G6 j <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
8 D) ~: N9 Z5 T4 u <alias name='channel0'/>+ w. k/ A7 }1 i/ C( ~* K: A+ \3 s1 F
<address type='virtio-serial' controller='0' bus='0' port='1'/>
2 |- S0 ^1 G& l" ~- I7 W/ X </channel>( K, v/ T* S. s( o$ d
<input type='tablet' bus='usb'>
* Z( Z( x: O# b/ b <alias name='input0'/>
, D4 _, B# ~8 H8 ^ </input>4 V# n' C. E7 _9 X
<input type='mouse' bus='ps2'/>% a' [+ s5 V# n
<input type='keyboard' bus='ps2'/>7 s9 i/ W) D* H3 ^/ C/ s! W
<graphics type='vnc' port='5901' autoport='yes' listen='0.0.0.0'>$ u* m/ H& @6 c b) J$ H: D% {4 I( c
<listen type='address' address='0.0.0.0'/>
9 V9 o6 C: ^9 |9 l2 a1 t </graphics> u% k0 n* a2 F. `5 t
<video> n: b$ \! P7 h4 [$ z- y" U
<model type='cirrus' vram='16384' heads='1'/>3 v! h# X+ S+ o/ K7 y
<alias name='video0'/>
+ }' L% Y9 A2 H% ~/ v <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
! G4 g* `9 R- k! V* j* s </video>9 g; k& v) a$ ]: H, O4 k
<memballoon model='virtio'>; G( i' C. L# w, m9 F
<alias name='balloon0'/>) g! m3 ~6 V$ x. [
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
2 {3 {( @0 q$ T1 L/ I# H& D </memballoon>
) a( l6 d6 \/ _ {5 b' N# |# H </devices>
# s5 \1 c& o* ^2 n7 `8 |5 e</domain> |
|