|
|
centos7.2上使用yum安装xen服务' T$ {8 [" s- ]5 a9 o+ v
! {6 ~ F1 P0 }3 i9 Q
首先配置selinux
# Z m+ c( O0 n% _& k% E% d / B) x' n! \, Y* ]
SELINUX=disabled+ _/ Y b* y3 ?. G0 ]2 O
! I- j) ~. h, m5 ]0 O2 K7 {配置yum源:9 d* I! N! F3 t) N
9 r% E* _$ _+ Y$ q+ W cat /etc/yum.repos.d/CentOS-Base.repo 6 q/ `/ A6 H! q; T% Z
# CentOS-Base.repo
( C; k# H. B' U0 G; b0 I7 w j#
% v$ v$ L8 ]" P; L) m# The mirror system uses the connecting IP address of the client and the* r4 @& ^7 S- y, e* C
# update status of each mirror to pick mirrors that are updated to and
, D" q" E6 W; O, K% `# geographically close to the client. You should use this for CentOS updates# b* b5 ~: M2 I% F6 b. p
# unless you are manually picking other mirrors., y( t) Q( }, O1 r
#8 h1 ~# x+ B# W- M7 K* U! r
# If the mirrorlist= does not work for you, as a fall back you can try the
/ }7 _# N( y- v5 V& D+ x# remarked out baseurl= line instead.2 T% Q, p# m0 b$ {8 r, K
#7 L4 G. `' Q/ H# Q6 _3 |
#
# H% M1 X ~, h7 P$ e% \( a
% p% ^! p+ H8 D( z# i[base]6 \8 @- ^+ ^% C/ a* N
name=CentOS-$releasever - Base3 ^: d4 p1 m& ?! g* _4 U
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra& C3 u. Y6 V7 ]: j" K( \. J- `
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/os/x86_64/1 G8 `2 a7 n0 B( q/ y
gpgcheck=10 Y$ P5 u- j q% c$ N% {4 z
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-76 L0 Q K0 w5 X+ ]& j( {
# {* ~7 p) x, ~- y) K
#released updates
% k2 d3 b- x4 v' I[updates]
7 t I% t4 l6 S2 e% L6 _name=CentOS-$releasever - Updates4 l# H9 \* P" f5 x0 U. D; g+ t
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra7 n" D h+ x, U1 E. P4 d: l b
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/updates/x86_64/7 E: `. s @4 U5 p( `
gpgcheck=1& Y" I# C' c4 y3 R( H3 m4 P$ S
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
: S+ O. l8 }5 a6 d) w4 A4 a8 w/ R3 N+ a5 x6 q
#additional packages that may be useful
* j2 K. q9 ?7 {! V7 z" ] j' p. z" z9 G1 Y/ I+ i7 v6 Z
#additional packages that extend functionality of existing packages0 T5 B8 R0 K/ w! G# l& W
[centosplus]5 ]" k8 x" }% U( F+ F& y' q; \
name=CentOS-$releasever - Plus* d7 h% r8 b$ J. w* V8 e% o! t, n
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra5 `: E: n5 x6 L1 \- C: q
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/centosplus/x86_64/6 b+ [% R* u0 w2 t3 W: y; ?; W
gpgcheck=1& \: e, n6 ^( K5 u9 C8 P
enabled=0
6 v7 B- w) L( U& b$ ^* x6 z5 Sgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
1 X/ X, l* L- A, c- d' E2 K0 \( @
0 W% Y9 l* t! z/ s
" p0 P, u3 l% J9 N7 i* U[xen]+ D6 ]: N" n) C" g: ^
name=CentOS-$releasever -xen
) o4 l3 P# E" e v' a5 l$ [/ X+ i" v#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
; t6 B2 x0 l3 j7 V; t; Lbaseurl=https://mirrors.aliyun.com/centos-vault/7.8.2003/virt/x86_64/xen-410* s- [. c7 E( p. i
gpgcheck=1" ?$ C* G( T& n1 _$ T
enabled=0& j, v% \5 ]3 w6 `" K
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
: I# E2 Y, @, m
' E }2 b: S2 A! ~# a
1 w5 z: r* H7 Q0 m, w) a6 g" \& v4 z9 g2 z$ N1 }) l' o( ]2 _
yum clean all, l# y! E! V0 }
+ Y$ ?" U+ o; f; K, L( l3 c安装:! Y4 C; l- ]7 B7 k2 L1 d
& E* x3 b2 G6 \7 s" P
|
|