易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 3136|回复: 6
收起左侧

A dependency job for qemu-guest-agent.service failed. See 'journalctl -xe' for d

[复制链接]
发表于 2021-11-4 17:34:16 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
root@localhost:~# service qemu-guest-agent status
1 v6 o+ Z1 R; }. X1 B* D3 ^● qemu-guest-agent.service - QEMU Guest Agent. y* Y  l) E$ _/ y7 a
     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
: n  ?1 z  ?7 `/ h; W% f7 Y     Active: inactive (dead)* T! _1 N( d& T# A$ H
Nov 04 09:14:44 localhost systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.
) w) q9 |) A1 t" ]! o) o1 c$ vNov 04 09:14:44 localhost systemd[1]: Dependency failed for QEMU Guest Agent.0 ^- i& q+ q6 s! v7 g. X
Nov 04 09:14:44 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
5 P0 {6 A" m/ X! ~3 B& Z( pNov 04 09:18:46 localhost systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.
6 b+ O; D" s! u0 ~" g. aNov 04 09:18:46 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
+ C0 e; s9 ?& L: y% k/ [Nov 04 09:18:46 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
( w2 b7 n3 u  l/ I1 b& gNov 04 09:28:24 localhost systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.
0 |) _  u) ]2 F) h6 @; UNov 04 09:28:24 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
6 G8 G) h) H4 M% h6 g7 T  ~Nov 04 09:28:24 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.' n1 X# u7 k+ f9 W
root@localhost:~# service qemu-guest-agent stop) a* ^2 N3 ?/ Z8 \
root@localhost:~# service qemu-guest-agent start
: e) r- e6 l, s1 W2 O6 PA dependency job for qemu-guest-agent.service failed. See 'journalctl -xe' for details.
  I: v" ]1 t" |; v! z5 @0 L) troot@localhost:~# journalctl -xe
! M5 x( ^& [: w* n- w░░ Defined-By: systemd
" y* ~) o+ l% O! T) `░░ Support: http://www.ubuntu.com/support
* }2 }# R, f0 C░░ 8 Z# I' q5 K- t
░░ The unit packagekit.service has successfully entered the 'dead' state.
* {  p: q  z6 s  w; XNov 04 09:30:47 localhost systemd[1]: Unnecessary job for /dev/virtio-ports/org.qemu.guest_agent.0 was removed.
. q& h" V/ j" w( \& S% Z░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
( L# z- l1 O+ h6 ^* Y( u, R* C░░ Defined-By: systemd
; R, k, H" b$ D+ ]! k+ b' D1 W░░ Support: http://www.ubuntu.com/support5 X# \. D- z: a3 V8 d; F: v2 n1 ]
░░ 9 a7 ?& A" M, |) P8 \
░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.& p- M; \# q) Y( V5 c9 ^
░░ / }; y6 f- ?" u0 L# Y9 c
░░ The job identifier is 1084 and the job result is collected.1 W5 Z" C2 o4 J' b
Nov 04 09:32:21 localhost systemd[1]: dev-virtio\x2dports-org.qemu.guest_agent.0.device: Job dev-virtio\x2dports-org.qemu.guest_agent.0.device/start timed out.0 [* h( b( L5 }" Z0 u
Nov 04 09:32:21 localhost systemd[1]: Timed out waiting for device /dev/virtio-ports/org.qemu.guest_agent.0.
. f& I2 Q% L- A" Q! m8 ~░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
3 p) }2 s5 V5 _; s/ o2 [/ Q; q░░ Defined-By: systemd* v- ~* n; j6 z$ f9 U
░░ Support: http://www.ubuntu.com/support
# R* W1 q& E- O3 d  g░░
' o9 }0 _& d& w# I. d' y# G░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.
2 ?2 ^  w  U& J" O░░
& K" _: Y3 T4 k░░ The job identifier is 1223 and the job result is timeout.7 S" N+ x1 ]  x& l* j6 Q
Nov 04 09:32:21 localhost systemd[1]: Dependency failed for QEMU Guest Agent., s1 F) J2 V# W
░░ Subject: A start job for unit qemu-guest-agent.service has failed
9 S: w& _3 u' i# s/ T) O: x1 G░░ Defined-By: systemd
- s, q4 \6 W& O7 G░░ Support: http://www.ubuntu.com/support
$ d/ e% s. [% z  O░░
$ \3 n+ E6 `/ m. g- C░░ A start job for unit qemu-guest-agent.service has finished with a failure.1 N( L) E4 F: O. X6 O- m
░░
; m0 T% v) `9 R! g  P3 I( Y4 F░░ The job identifier is 1155 and the job result is dependency.. @: m3 |- V9 u
Nov 04 09:32:21 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
) [% ^  D* Z6 b& J3 G! U' Z0 kNov 04 09:32:21 localhost systemd[1]: dev-virtio\x2dports-org.qemu.guest_agent.0.device: Job dev-virtio\x2dports-org.qemu.guest_agent.0.device/start failed with r>% N# \; e% I: K# n, I
lines 2580-2610/2610 (END)
1 F; S7 x( ~8 n. o; _7 p$ x( W
 楼主| 发表于 2022-9-23 16:33:24 | 显示全部楼层
Sep 23 16:26:56 bogon systemd[1]: Unnecessary job for dev-virtio\x2dports-org.qemu.guest_agent.0.device was removed.% d( C: K) o$ a" g# Y( N
Sep 23 16:26:56 bogon systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.
- o) U& J. V& W" A) sSep 23 16:26:56 bogon systemd[1]: Dependency failed for QEMU Guest Agent.* O. L3 J- X5 E) X8 x
Sep 23 16:26:56 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.) ^* K8 `4 v9 Q+ ?. g  V: y
Sep 23 16:30:07 bogon systemd[1]: Starting system activity accounting tool...
: A2 @6 z0 p' k1 T6 \Sep 23 16:30:07 bogon systemd[1]: sysstat-collect.service: Succeeded.
* v1 `2 x0 j/ h$ ZSep 23 16:30:07 bogon systemd[1]: Started system activity accounting tool.
- ~) b" b- i6 T. u, USep 23 16:31:59 bogon systemd[1]: Unnecessary job for dev-virtio\x2dports-org.qemu.guest_agent.0.device was removed.! d! A8 t! N& \
Sep 23 16:31:59 bogon systemd[1]: qemu-guest-agent.service: Bound to unit dev-virtio\x2dports-org.qemu.guest_agent.0.device, but unit isn't active.# A- S9 O" E  w2 G
Sep 23 16:31:59 bogon systemd[1]: Dependency failed for QEMU Guest Agent.  z8 U0 Z( i3 a- G) R3 l
Sep 23 16:31:59 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
 楼主| 发表于 2022-9-23 16:53:57 | 显示全部楼层
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.7 ^- K( O2 h3 U) b  j% M
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64021: critical: error opening channel: No such file or directory+ b' Y. l0 f3 }* G/ E
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64051: critical: error opening channel
6 J6 X' b' }; w' g6 O1 j2 w. F( ASep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64068: critical: failed to create guest agent channel  H; ]: [- E% m0 T9 i- u
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64073: critical: failed to initialize guest agent channel
5 T' d; L/ R! M) M' \/ l4 o! jSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
7 t: n/ H5 o& OSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.6 b1 }: u* h4 t. {, T+ A
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.7 j- E) K3 t$ G( q5 i
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 1.$ W7 y4 [8 j* G; |1 m; Y3 ]  P8 o
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
0 c8 v+ s9 {; s9 tSep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
8 ~9 {7 n* u, m: d! ASep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75703: critical: error opening channel: No such file or directory
. T0 o; r5 I& t0 rSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75744: critical: error opening channel
) A9 Z2 S+ A* F$ |8 }; m8 \1 fSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75749: critical: failed to create guest agent channel7 d9 s& h' U9 Q# Y
Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75753: critical: failed to initialize guest agent channel
/ B2 W" W, ?- @5 H6 X+ t3 ?Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
, L: J0 R# p( w2 O/ USep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
% C2 `7 Y0 U$ w- I$ h- R! {6 N' ?Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.7 i7 [4 d  X" r
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 2.1 {- v* U" U8 q4 I9 G
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.3 K4 K) D3 D" c0 S" U/ T) w8 s. M  ]
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.9 {* K) K$ N; i! a; n
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87186: critical: error opening channel: No such file or directory
& x# S% u! P+ f3 KSep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87212: critical: error opening channel
: _5 k5 b4 G/ xSep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87218: critical: failed to create guest agent channel
3 w- ^( ^5 e* aSep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87222: critical: failed to initialize guest agent channel# C$ j2 s- s% J* U" e. H9 o
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE, \; _6 x+ O6 u. O
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
0 q2 x, a& j+ `  ]Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart." M* F5 M. c7 n: H
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 3.4 r- F$ o6 G' ~0 N" z1 ]
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
9 B( ~# u# q! i0 `4 TSep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
# V4 c; `1 E+ \) jSep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98561: critical: error opening channel: No such file or directory' v; y4 B* V: h
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98584: critical: error opening channel# B7 V! T4 i5 x% A. o0 b0 b
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98590: critical: failed to create guest agent channel
: [- e* V) D9 J: @8 |1 ]# WSep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98594: critical: failed to initialize guest agent channel4 U' m/ Y8 V# a  @% @
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
& L- _; p; Y) s5 B1 B9 \$ WSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.2 ]) L. K! }- O4 R, l% M
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.9 ?/ `% T9 o. K% G8 \, G  Q  K7 ~# k
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 4.
6 d- c" P3 `1 q, xSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
" ~2 N* A8 N- Y/ ]7 DSep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
  d6 p" G3 D5 V8 v( NSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109701: critical: error opening channel: No such file or directory
( s) m5 |5 J9 G0 Z1 i+ C5 Q5 B# {Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109724: critical: error opening channel* }/ j4 S' x9 v) ~1 T, G8 n
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109729: critical: failed to create guest agent channel
' F" o4 `0 y. C1 z6 |7 {. GSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109733: critical: failed to initialize guest agent channel- ^; \' }  J1 W* V1 q- g
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE" J5 F% g& @! A! I
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.. s8 X- e6 d9 x
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.* @2 m9 ^) [, y
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 5.
+ [( ?; G3 I8 k. y' b4 C' @1 ySep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
3 P" C" e$ d5 A' P; S  rSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Start request repeated too quickly.
6 D7 X( o, o! n7 W# E5 PSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
3 ]) s- I- L/ B* _8 y2 ?4 A7 ZSep 23 16:53:47 bogon systemd[1]: Failed to start QEMU Guest Agent.
 楼主| 发表于 2022-9-23 16:54:10 | 显示全部楼层
暂时没有办法解决问题。
 楼主| 发表于 2022-9-23 16:54:27 | 显示全部楼层
安装qemu-guest-agent:用于从面板在线更新密码/密钥   o3 K( J: S6 g; w
yum install -y qemu-guest-agent
9 y) z$ D4 B- g3 S4 H$ v配置qemu-ga,修改
( c) e# Z* N' P- l. M- ?3 [2 Csed -i 's/FSFREEZE_HOOK_PATHNAME=/#FSFREEZE_HOOK_PATHNAME=/g' /etc/sysconfig/qemu-ga: v+ O' t0 s2 E# c4 g
& S$ R' T6 r; g. y" l2 N% k# [
cat >>/etc/sysconfig/qemu-ga <<EOF
9 X" d5 h/ D  i+ c* G, c& RTRANSPORT_METHOD="virtio-serial"
8 @8 F: f! w' z1 {/ r# RDEVPATH="/dev/virtio-ports/org.qemu.guest_agent.0"* T4 n7 A1 H, ~
LOGFILE="/var/log/qemu-ga/qemu-ga.log"              
2 d; m' C& {/ w9 ]% _PIDFILE="/var/run/qemu-ga.pid"* N# E4 g. f! g3 V8 K: Z+ w/ h: B
BLACKLIST_RPC=""' l8 p* C8 Y7 }  A2 o9 }
FSFREEZE_HOOK_ENABLE=0
* R0 j+ M- l6 x5 r% H  V/ cEOF
, _4 o1 o5 ^7 @# n+ J" u. x, M6 A5 @
systemctl enable qemu-guest-agent.service
6 Z3 k1 ^7 J. W  N% m" y, J- K
 楼主| 发表于 2022-9-23 17:05:23 | 显示全部楼层
[root@compute03 images]# virsh edit Uniontechos1
, T! u! Y' R* @: k( [$ k& \4 X$ H
<channel type='unix'>2 Z  @+ b& I# K. a* H$ E8 ~6 F! X
   <target type='virtio' name='org.qemu.guest_agent.0'/>
& N7 `! e! Y; q$ T# |) j$ M. Z+ Q& X- C</channel>
, R3 d: s0 K* z5 V; X' p% A
, [' h5 t+ G$ O/ z: p! E- H$ G6 z' ^6 y# ?4 H3 W
Domain Uniontechos1 XML configuration edited.
- I4 P7 x! q/ d# y* [- h1 W* v6 Q2 f2 J" |( ]5 F  H( _
[root@compute03 images]# virsh destroy Uniontechos1 # S4 s: t4 {6 X. B0 k
Domain Uniontechos1 destroyed
8 ~! }, z$ ^$ w3 P
; L9 \& Z* A& q# t* p) |[root@compute03 images]# virsh start Uniontechos1
: u8 {* ^' T0 qDomain Uniontechos1 started4 g4 t  t6 S- v( {( u

* l( ?1 V, |" Y8 X- i[root@compute03 images]# virsh edit Uniontechos1 & E3 V  k+ b. Q1 q* R
Domain Uniontechos1 XML configuration not changed.
& l; |+ @" X- s) ^; ]0 S7 q# x2 k/ y8 Y& c% u
next to vm install  qemu-guest-agent
, J1 A: D/ x( n# N. `9 l
3 r7 n( {  A! U9 h* i8 X* d* r# yum install qemu-guest-agent( x0 J3 U% y7 n) {
 楼主| 发表于 2022-9-23 17:15:50 | 显示全部楼层
[root@bogon Packages]# rpm -ivh qemu-guest-agent-4.2.0-48.0.2.module+uelc20+637+3837eb37.3.x86_64.rpm 1 ^+ b( M  O% v$ n" s5 m
Verifying...                          ################################# [100%]
3 |2 J, u, W  D" N; iPreparing...                          ################################# [100%]
) d6 R* f" ^1 X8 d8 dUpdating / installing...6 h  f+ b* m- c3 j- `' L2 A/ u1 |
   1:qemu-guest-agent-15:4.2.0-48.0.2.################################# [100%]
( a: Y2 c4 S9 g( Y( I( \[root@bogon Packages]# cd Packages/cd   C/ I+ s# ^5 n/ p& Z8 E
-bash: cd: Packages/cd: No such file or directory% r/ Q' h/ I: P
[root@bogon Packages]# cd
5 b) c' a* r1 z# E+ _[root@bogon ~]# systemctl start qemu-guest-agent.service " W4 Q& i* J' ?5 w# \
[root@bogon ~]# systemctl status qemu-guest-agent.service , W4 o( ^2 J+ ^
● qemu-guest-agent.service - QEMU Guest Agent
3 n! Z* }  j* O* c( S. J7 O$ d& [! c   Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; enabled; vendor preset: enabled)
  ^* A. B* s2 ^" y* @   Active: active (running) since Fri 2022-09-23 17:14:22 CST; 6s ago
2 Y, [5 {  [. d; B: x2 m4 d, v* c Main PID: 1940 (qemu-ga): T5 a5 A( |' v1 M
    Tasks: 1 (limit: 49744)% m& G* ^8 D8 U- w  Y! R: j  e/ R
   Memory: 836.0K1 G% |8 [% D- e
   CGroup: /system.slice/qemu-guest-agent.service2 o; K! S) ?/ t: J3 K& K8 n
           └─1940 /usr/bin/qemu-ga --method=virtio-serial --path=/dev/virtio-ports/org.qemu.guest_agent>
- W- V* g) k9 @/ g- Q; S" Y6 V5 n
9 k- I: f6 ]+ I  {5 ~# QSep 23 17:14:22 bogon systemd[1]: Started QEMU Guest Agent.! E  C6 U* u# k/ Y$ g
[root@bogon ~]#
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 20:23 , Processed in 0.061445 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表