|
|
virsh list
* d6 V9 L' e6 d2 W6 X* b8 b, P1 N" @error: failed to connect to the hypervisor
% T0 ] O* Q. `0 ^" O1 ~' serror: no valid connection2 h" f/ N( s9 E+ [+ f7 N
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory+ ~9 ^7 b/ e) T, @9 {
$ ~& ?& | w3 a. }" `1 I
9 @% ~5 S5 A" V+ x# W解决办法:
% G5 a- M5 H$ o# yum install -y avahi
* h; W0 N. }6 g2 Q! ]Loaded plugins: fastestmirror
2 F9 O( C; O" R; D) E7 e) s9 VLoading mirror speeds from cached hostfile
5 r( d) j) t5 ]9 _ YResolving Dependencies4 p$ o/ D% e. \' I2 K. b1 E$ F
--> Running transaction check7 u% m- P* _3 C+ B
---> Package avahi.x86_64 0:0.6.31-15.el7_2.1 will be installed
* Q- f- {6 ~9 s7 C$ P1 [" z--> Processing Dependency: avahi-libs = 0.6.31-15.el7_2.1 for package: avahi-0.6.31-15.el7_2.1.x86_649 T) ?+ L b* Z- p1 H& V' W4 s
--> Running transaction check! n1 r$ l! i7 R
---> Package avahi-libs.x86_64 0:0.6.31-15.el7 will be updated6 A/ y4 Y/ p9 u4 M% A5 l
--> Processing Dependency: avahi-libs = 0.6.31-15.el7 for package: avahi-autoipd-0.6.31-15.el7.x86_64+ S, O, s; d0 F+ a
---> Package avahi-libs.x86_64 0:0.6.31-15.el7_2.1 will be an update1 b3 Y2 \( \; M2 Y9 A- |
--> Running transaction check
1 @. ], J1 C4 e. b/ C ^---> Package avahi-autoipd.x86_64 0:0.6.31-15.el7 will be updated
$ X! W9 j) @' w$ e! q: q' A---> Package avahi-autoipd.x86_64 0:0.6.31-15.el7_2.1 will be an update
; v+ g$ _) S' k( d+ \# G9 K; V# k W--> Finished Dependency Resolution
9 x$ g: W9 B/ h# eDependencies Resolved- |) G1 m; t6 w4 S! m' n: k
======================================================================================================================================================================================
6 l/ B5 w$ D/ B9 I: W2 t8 |4 D Package Arch Version Repository Size
6 x$ E) e v9 D# L. m( G======================================================================================================================================================================================( }2 X; l* Y4 k$ ? h1 T: F5 S
Installing:
3 Z4 ? M4 ~) p3 ]5 e avahi x86_64 0.6.31-15.el7_2.1 updates 263 k
) Y d, I# t( |1 `6 G2 W( @Updating for dependencies:3 b: e8 _$ c g3 ]
avahi-autoipd x86_64 0.6.31-15.el7_2.1 updates 39 k
4 X' t8 g, D( W7 B$ u# D avahi-libs x86_64 0.6.31-15.el7_2.1 updates 61 k
5 c; _5 A8 ?/ n' UTransaction Summary
- Q% R. {7 T- L: j======================================================================================================================================================================================
) G' Z D+ m1 ]1 D7 v8 y# lInstall 1 Package! W# ?- J8 L$ N2 F9 z) ~# f
Upgrade ( 2 Dependent packages)1 I# N( A4 L' ]" n& [0 M
Total download size: 363 k
. w0 ^. m! S3 f* {" DDownloading packages:9 l. @, r; k) I; Z- ^9 v. ~
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
" l0 ]' N) V: r+ C' y. ~$ \(1/3): avahi-0.6.31-15.el7_2.1.x86_64.rpm | 263 kB 00:00:00 7 ]; E" l( O* K2 p/ Z
(2/3): avahi-libs-0.6.31-15.el7_2.1.x86_64.rpm | 61 kB 00:00:00 5 [) S# Z& Q. {. j b
(3/3): avahi-autoipd-0.6.31-15.el7_2.1.x86_64.rpm | 39 kB 00:00:00 + k6 @: Q; G. b" K; j2 K6 [
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
' R( d3 X5 h; q$ |0 O5 YTotal 5.4 MB/s | 363 kB 00:00:00 - p$ C5 a/ ]7 N5 {
Running transaction check2 X+ D- d" ]- E
Running transaction test. |8 T5 e: ~5 j/ H) E' p# G7 V& ?
Transaction test succeeded& A# d" A8 r5 J5 v
Running transaction
/ G& [6 j, J' \8 ]$ K Updating : avahi-libs-0.6.31-15.el7_2.1.x86_64 1/5 7 C+ o9 K2 c7 t! O
Installing : avahi-0.6.31-15.el7_2.1.x86_64 2/5
) X4 z* Z+ g0 g% c) a: q Updating : avahi-autoipd-0.6.31-15.el7_2.1.x86_64 3/5
9 ^- L5 N% n8 g: v. r Cleanup : avahi-autoipd-0.6.31-15.el7.x86_64 4/5
: G; }' ]$ Z/ R! @ Cleanup : avahi-libs-0.6.31-15.el7.x86_64 5/5 3 G: Y/ n5 J" d# R* K. q3 d9 C
Verifying : avahi-0.6.31-15.el7_2.1.x86_64 1/5
3 v+ C" _! t8 r: ]) W% `) x Verifying : avahi-autoipd-0.6.31-15.el7_2.1.x86_64 2/5
0 J6 k. w: i$ M& [7 r; v Verifying : avahi-libs-0.6.31-15.el7_2.1.x86_64 3/5
' U* P# M# x$ F! H9 R, b' s Verifying : avahi-autoipd-0.6.31-15.el7.x86_64 4/5
_, ]: O, Q2 }+ O+ }# Y; v Verifying : avahi-libs-0.6.31-15.el7.x86_64 5/5
1 E" E' ?; {5 ~( yInstalled:
1 ?8 D8 C1 Y6 ]# {8 h' I avahi.x86_64 0:0.6.31-15.el7_2.1 6 _$ h) ]" i( K& M: Z8 g( m3 P
Dependency Updated:- L- j# Y/ `! i
avahi-autoipd.x86_64 0:0.6.31-15.el7_2.1 avahi-libs.x86_64 0:0.6.31-15.el7_2.1
% O, j) N) u- L- VComplete!+ M: D. ` _- @3 x/ Q: v
6 Y/ F0 f. C7 j$ H% E! k4 }6 [* R) [
# systemctl restart libvirtd.service7 b7 z& C; b8 W5 s" R' o) h
3 c X7 j7 e, B- r
|
|