- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
centos7.2上使用yum安装xen服务
% E8 K& O7 v. @0 s- |7 a' G: w6 s( i- ~8 G/ ~. u1 c% a
首先配置selinux
& i$ y8 Z2 @2 F; E
/ \. ?5 @6 _* X# a$ l: j" OSELINUX=disabled8 a* i0 [$ ` A
% L, Q% W. U( S) x9 q7 b配置yum源:
, y* w- M. I. f/ V2 f$ ]
/ m! p- o* y& h& |# ~* k cat /etc/yum.repos.d/CentOS-Base.repo
# ^8 m# y0 s& M8 ?9 ^# CentOS-Base.repo
8 V* r9 T+ t# ]3 [. T: n! x#% S' I, h6 t3 H9 X& i1 d) G, V
# The mirror system uses the connecting IP address of the client and the* k% r$ U/ H6 ?& n
# update status of each mirror to pick mirrors that are updated to and
1 A& F3 a4 z& D) B2 P# geographically close to the client. You should use this for CentOS updates1 T$ \4 S. O0 e4 L
# unless you are manually picking other mirrors.
& O! |4 o2 @, l6 Z& W+ ^- Y& N#
- k# G9 F' e# C* z7 B# If the mirrorlist= does not work for you, as a fall back you can try the
" T, w7 Q4 K" ^1 U" _, E" _# remarked out baseurl= line instead.
0 M% d; j. N7 ]7 l# l$ I' N6 o#
+ G% r* ~, k0 a- O#
: U5 ]* C: y& X6 D+ j$ K0 X$ `, J* D- u& C. {+ f8 n# W
[base]& W0 Y1 e9 c% q: E
name=CentOS-$releasever - Base$ d1 E! f2 x3 i% f9 t: n, s& H
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
7 F5 M5 o! p3 P9 d( \* ybaseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/os/x86_64/
% p: ?5 s4 ?7 {; M! Ogpgcheck=1$ \! V" j* Y+ k; T/ g' n* \1 Q Z
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7# A( k7 r u7 S/ f% h( E
; |% n* p+ h, ^8 N0 B% |( }! Q
#released updates
6 O- k1 T+ Q1 o8 q9 a( w" n" G[updates]
5 p( J! j% L8 d! j0 V; Xname=CentOS-$releasever - Updates( P% `" u6 }8 Q
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra. a" l8 B# ~# H9 g0 i' |
baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/updates/x86_64/
0 L3 J4 P: F: ?: }5 D5 Vgpgcheck=1, e7 m7 H- F) f8 I5 K5 _5 g* Y
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
& [. g$ v" X/ F) X
/ @- m: g. `6 v- [#additional packages that may be useful
1 K" Y$ ?! O& [8 q( M9 y& v0 c' i1 |0 a, A$ Z% ~0 S( [
#additional packages that extend functionality of existing packages
) ~0 x7 g/ {( ^: b8 |4 Y[centosplus]
! o- \3 r4 Z# }5 l. [+ Q% \/ Wname=CentOS-$releasever - Plus
$ ?# u* i ^# h5 s5 ~( ?#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
4 G H: Q- X6 \# [% `baseurl=https://mirrors.aliyun.com/centos-vault/7.2.1511/centosplus/x86_64/3 S* H" _$ L9 r& m
gpgcheck=1
6 @. [: |" i0 K8 x" b! renabled=0
" D. u Y- x/ z2 s" v) Vgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
9 y( L) k9 Q9 C7 u1 b" a y7 g
1 R6 @0 R) v: L1 _) }# x# l) N6 E* K0 p6 O t) P: H) G
[xen]
/ Y1 `* i9 P0 f& V* oname=CentOS-$releasever -xen3 H0 g2 z1 ?/ J& n" T. C! R
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra# h4 @8 A( ^1 {. I1 E
baseurl=https://mirrors.aliyun.com/centos-vault/7.8.2003/virt/x86_64/xen-410
4 d7 N4 I% T/ L; R, D7 U5 ~8 fgpgcheck=1
- K2 {1 {4 ~$ p' K6 y9 x0 Henabled=0
7 i/ z+ G0 N }/ vgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
* b& u6 Z" k9 q8 g( `7 O0 T0 b6 n& V$ z5 j
) ^" k+ @+ E2 v/ e2 W2 s& k
! X' ^) q7 p$ U2 _' cyum clean all
4 r" b6 `* J& w' d e6 Q
- S6 H. t* W0 t安装:+ T7 V' v" B1 m. u6 O
3 y) u' H& }( Q) _4 R
|
|