|
|
楼主 |
发表于 2019-9-5 10:10:11
|
显示全部楼层
<domain type='kvm' id='131'>
. ?- Y. B4 J) B <name>test</name>
& O. g" y- ]) S* j. H <uuid>0e91050a-8a6e-4db9-ab8e-a5ffe4215132</uuid>
( {- z t) F. n) _( H4 y: P <description>Timos VM</description>
. N k/ [% q( O- `1 L2 c <memory unit='KiB'>8388608</memory>
1 n) q7 l$ T0 [ <currentMemory unit='KiB'>8388608</currentMemory>
0 I, V: f. q5 S1 g3 X <memoryBacking>
1 l2 K3 s4 j9 G- y6 E+ J <hugepages/>$ Z( a& s( M, K
<nosharepages/>
9 T- g# f/ X! N4 ^4 I; F </memoryBacking>
7 c9 t8 s) m# w' I <vcpu placement='static'>2</vcpu>
# g) _* Y- W, A8 C9 ^/ X <cputune>
8 i& t7 q2 g7 P& o: V) O <vcpupin vcpu='0' cpuset='45'/>
4 G3 _- v2 V1 }# C <vcpupin vcpu='1' cpuset='44'/>1 U2 e2 n9 H) S
</cputune>
/ U* u& z6 j' u <numatune>- i9 Q {- Q7 r- u6 z' {
<memory mode='preferred' nodeset='0'/>1 R4 O4 F! W3 j/ f
</numatune>
" i/ V! V0 T* l6 D <resource>
! _8 g, o5 d" D) O <partition>/machine</partition>
; X# U4 G: F+ B) G/ o( A) o </resource>
9 R1 q: [7 m; T$ p7 t <sysinfo type='smbios'>: V3 _5 @0 j" L* d4 y4 ]! q$ b! ]
<bios>3 x4 Z7 T; M+ \! ^+ h3 ?. b; a( S
<entry name='vendor'>KVM</entry>$ j& y9 {8 A& C2 g5 u
</bios>
* Y5 ]# }, p2 Y7 S% a <system>9 t+ _) _( S+ T6 P( y5 v9 B
<entry name='manufacturer'>alcatel-lucent.com</entry>
2 w$ @ G3 b3 i3 }+ H R <entry name='product'>TIMOS:slot=A chassis=VSR-I card=cpm-v mda/1=m20-v- E+ G2 a% M0 y# i
address=192.168.0.12/24@active % v- Q# s- ^4 j, @
</entry>; \9 @- j/ L/ ?( Y9 _/ N! e
</system>
4 S$ T2 U) S, k# L/ c, _- r </sysinfo>% G+ O6 }; J( Y
<os>
4 K: i3 ~1 y# a k" A <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
6 V: j9 S5 ]: Q e/ B- I- d# G$ W0 P <boot dev='hd'/>. ^8 i' z) {- [) F. b. \: B) r& x
<smbios mode='sysinfo'/>
3 Y7 X( C9 Z7 c. J4 S" { </os>" o; \; u8 ^9 f! g8 P: ~
<cpu mode='host-model'>
3 o+ V7 T; j1 D. q) V; P <model fallback='allow'/>
4 O; c# L$ z6 ]( D# t' L* \8 Z2 k </cpu>
}" T" f9 ?" {% y7 K <clock offset='utc'>: b- _1 S7 t5 V
<timer name='rtc' tickpolicy='delay'/>
/ d. K0 j3 {; C' E! Z8 c) o <timer name='pit' tickpolicy='delay'/>* ~/ n9 u0 C+ ?! J! Q# p# p
<timer name='hpet' present='no'/>
& X1 p/ C+ o' S* k </clock>, V% B0 Z( l0 _, ] H0 j
<on_poweroff>destroy</on_poweroff>- T, Y+ o% T$ ~0 L9 M
<on_reboot>restart</on_reboot>' W% K$ G6 m- @ ^
<on_crash>restart</on_crash>
3 \# O: p/ R% P* x" ~0 | <pm>- u2 a U7 s, i3 o
<suspend-to-mem enabled='no'/>$ I0 k: Q& r, B
<suspend-to-disk enabled='no'/>8 C% J5 _: x0 w
</pm>
$ Y) x4 P+ M. F5 N2 N <devices>
+ p) l5 Q1 O7 T" k4 v" E2 \ <emulator>/usr/libexec/qemu-kvm</emulator>
& ^) [, H7 q& d, m <disk type='file' device='disk'>4 K z- Z# k* i
<driver name='qemu' type='qcow2' cache='none'/>. r- u& y# l; @' T
<source file='/var/lib/libvirt/images/test.qcow2'/>" ~: y# B2 g( V. y4 }
<backingStore/>+ [3 e& Z- X; {: c/ v {
<target dev='hda' bus='virtio'/>. g# e2 k( E( W6 L+ ^, x
<alias name='virtio-disk0'/>' f9 O( G9 ]2 B: i: v
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
# V9 x1 }* Q3 P" g; _ </disk>
% O. b6 I9 ^2 ~! E8 I4 D, J <controller type='pci' index='0' model='pci-root'>
' O. |. i8 H: J* r Z; t2 ~: }7 s# z <alias name='pci.0'/>0 P( k$ r# \! G
</controller>8 J+ @8 I: w: {- {: S Y @+ ]1 v
<controller type='usb' index='0'>" ?/ s' Y( B+ t
<alias name='usb'/>4 G: ~+ _5 q% \ J, a" h# m$ Y/ I
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
+ S o z# Y5 U( r9 V& ^ </controller>- X1 O' V- V' F% {# B- g1 u
<interface type='bridge'>
% T2 I9 p# H1 r- A* U7 P# O5 X <mac address='50:54:00:59:e9:02'/>
; p2 H4 {9 H! e X Q; [: I* j9 |& s <source bridge='br2455'/>+ X( L/ c5 Q4 H& F
<target dev='vnet2'/>. Y6 v ~& _# Z' f* \
<model type='virtio'/> |' F: Z9 L1 a: {' ]/ I# @
<alias name='net0'/># r/ z* G+ ? e& p, l# |, s
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>% T8 l) Z# m7 [' \- O
</interface>; P2 M3 H9 t9 l, T$ n
<interface type='bridge'>0 z1 T/ D5 D& S3 k- G1 W
<mac address='50:54:08:68:1f:c0'/>
5 x- k% k* F; W6 j& s; x6 C <source bridge='br2083'/>
( K H6 C: L0 V$ g: V6 l <target dev='vnet3'/>
6 I2 x) k! ^) l1 D. ] <model type='virtio'/>
+ t+ j/ u- Z8 \ <alias name='net1'/>
; D0 `4 S! }6 b% g( R- |" `! o) K <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>$ f& [& _; d6 p0 T+ M
</interface>9 {; l' @' V0 z& C, N: H% m2 U
<serial type='pty'>
4 T' {4 z2 `. l3 V$ ~ <source path='/dev/pts/2'/># }% T3 z& J% c8 l. y) `
<target port='0'/>- F7 D) K! c6 e. u5 Y8 w; f' ]
<alias name='serial0'/>
7 M9 l- f; q, h1 s' k </serial>" r/ V# X' ]) a( Y+ ^8 b3 ]
<console type='pty' tty='/dev/pts/2'>: q! u. d9 r# g+ G' q
<source path='/dev/pts/2'/>' D& [) j7 c2 M2 h4 e
<target type='serial' port='0'/>
$ x( ?" ~$ e7 ?4 @: [- A: M <alias name='serial0'/>
s! |# ~& w& Q$ F- U* h- @' f </console>, q6 K. F. z' p5 n, U2 G- H
<input type='mouse' bus='ps2'/>
! B* r) b% ]1 j( J9 O+ b) @ <input type='keyboard' bus='ps2'/>
1 H& o5 Q D5 L' L7 h! P0 R0 S <graphics type='vnc' port='5901' autoport='yes' listen='0.0.0.0'>5 L. G2 e# u0 |, z- E. w
<listen type='address' address='0.0.0.0'/>. w& @$ h! W4 U2 F% H) Z
</graphics>. |: ^# I! s, i7 E: c& |
<video>
- I+ h1 ~& M6 L <model type='vga' vram='16384' heads='1'/>
5 N2 T& G! |8 j6 s <alias name='video0'/>; u' o$ b2 N; P
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
/ b- }- r/ ?* W/ h. g2 y" B8 L& A </video>
}" M! \+ ?& J# \ <memballoon model='virtio'>
" [' H* _9 a1 Q <alias name='balloon0'/>
/ y: J+ ^" B7 K <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>1 Q, p& [/ J0 _2 J
</memballoon>
% Y! N4 `. J3 k0 \( h" \( J </devices>! q3 v+ k$ v7 b" W( L" Y
<seclabel type='none' model='none'/>
! R, w* T5 a1 s+ G+ j" Z</domain> |
|