找回密码
 注册
查看: 3161|回复: 6

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-11-4 17:34:16 | 显示全部楼层 |阅读模式
root@localhost:~# service qemu-guest-agent status
( j/ W6 l( _; v- U4 n' Y/ y  e● qemu-guest-agent.service - QEMU Guest Agent2 `3 X2 j/ y$ p4 }
     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
, U1 Q9 L. N0 R; b0 g4 {7 g     Active: inactive (dead)
3 o! R/ W! p. F+ \! q! y& x4 O* zNov 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.* l, l! u) C' N9 q8 R+ V" v2 Y$ H& l
Nov 04 09:14:44 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
7 ?2 _4 y$ h# H  \. N. o; KNov 04 09:14:44 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.! C6 E' G* z5 C2 A
Nov 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.) e. d0 O" O7 \- e- S: t3 u$ r
Nov 04 09:18:46 localhost systemd[1]: Dependency failed for QEMU Guest Agent.( e' I0 {$ S" @$ g& V
Nov 04 09:18:46 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.; z' }# b5 u2 _- f% ]. ^4 G7 s
Nov 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.$ a8 Z, `2 w; F! Y- q/ t
Nov 04 09:28:24 localhost systemd[1]: Dependency failed for QEMU Guest Agent.; M! \; Z, W( N8 ~' e
Nov 04 09:28:24 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.* t. U5 U  ?6 i& B6 c
root@localhost:~# service qemu-guest-agent stop* l6 Z8 Y: Y9 r: _7 Q" x% t
root@localhost:~# service qemu-guest-agent start
5 E0 n* ?: x' iA dependency job for qemu-guest-agent.service failed. See 'journalctl -xe' for details.
1 c- b  s" U; zroot@localhost:~# journalctl -xe
$ j* @6 @; G( t( W░░ Defined-By: systemd
/ m# K* X! P5 s░░ Support: http://www.ubuntu.com/support
7 r; p- u( C6 |# I░░
. l8 |' S& o4 q$ N! |░░ The unit packagekit.service has successfully entered the 'dead' state.! J) [0 K0 f8 F4 X+ s7 d9 b
Nov 04 09:30:47 localhost systemd[1]: Unnecessary job for /dev/virtio-ports/org.qemu.guest_agent.0 was removed.
- M6 n' d& O# j6 r4 A6 @1 r/ A░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
  \6 z( g3 @) i% ]░░ Defined-By: systemd
7 w. F9 ~9 H& o+ D4 D░░ Support: http://www.ubuntu.com/support# E+ F/ [- B* G) L+ t
░░ + m! |. w3 g% v% U
░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.5 f4 M# h' v5 ]( i  L# C7 B1 `
░░ / M2 j7 ~: f7 O
░░ The job identifier is 1084 and the job result is collected.( ?' X! g+ I1 y4 D0 E
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.3 w; L, R# }( m/ G- E0 c) K5 b6 E
Nov 04 09:32:21 localhost systemd[1]: Timed out waiting for device /dev/virtio-ports/org.qemu.guest_agent.0., |+ s& k6 m/ A$ Z2 r/ E) e
░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed
& R" D: H- U+ C9 ~; i░░ Defined-By: systemd
, j0 R2 o$ G7 _, g9 }░░ Support: http://www.ubuntu.com/support
) s' _. t$ Z3 w: r, p/ F░░ . X( l' I, ^  F/ x4 t
░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.
+ U  B; ^" y3 [0 D4 o' Y7 ~) K░░ 2 z+ z% L8 a/ G; Z
░░ The job identifier is 1223 and the job result is timeout.( `4 E1 s2 r" ?5 j, E4 T3 v
Nov 04 09:32:21 localhost systemd[1]: Dependency failed for QEMU Guest Agent.! u/ S2 C9 T3 T, c
░░ Subject: A start job for unit qemu-guest-agent.service has failed
: d/ k+ b2 {. B6 H- V9 d░░ Defined-By: systemd( W) j- [+ j. o# |$ A
░░ Support: http://www.ubuntu.com/support8 B  {9 S% K( h0 X$ s2 X. {
░░
& P5 J$ t8 |% c  G8 Y6 c( n8 ?░░ A start job for unit qemu-guest-agent.service has finished with a failure.5 ^% |( {( k7 F# W
░░ ; K* ^4 t2 [$ _7 {9 N& B- Y
░░ The job identifier is 1155 and the job result is dependency.
3 T& b2 t* C: t7 B% G3 |8 jNov 04 09:32:21 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
/ o% P) |( j. z, r* nNov 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>
2 j# x& @; j; c1 y4 e" b) c# Vlines 2580-2610/2610 (END)! ~7 v, b0 p, d6 ]9 U

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 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.
, l- Q' O9 H  CSep 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.& t+ D1 ^( n5 T$ W  V4 j
Sep 23 16:26:56 bogon systemd[1]: Dependency failed for QEMU Guest Agent.
( d  j5 J1 q9 b4 X& v+ E2 Z% cSep 23 16:26:56 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
+ t9 y5 M' N% P+ P: `0 r) oSep 23 16:30:07 bogon systemd[1]: Starting system activity accounting tool...& d1 W3 z9 w+ `# [- u1 h! M
Sep 23 16:30:07 bogon systemd[1]: sysstat-collect.service: Succeeded.
, f1 Z4 J* b; n$ t7 jSep 23 16:30:07 bogon systemd[1]: Started system activity accounting tool.
3 a! P$ M! K4 H# Z: jSep 23 16:31:59 bogon systemd[1]: Unnecessary job for dev-virtio\x2dports-org.qemu.guest_agent.0.device was removed.7 H8 H# z3 ~* J( v* p
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.( |* K! r, t2 L( B  D' q, E
Sep 23 16:31:59 bogon systemd[1]: Dependency failed for QEMU Guest Agent.2 p( e% x: [+ |4 `
Sep 23 16:31:59 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 16:53:57 | 显示全部楼层
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
& _$ K0 W! M3 C& R2 x5 d4 @8 |Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64021: critical: error opening channel: No such file or directory
0 E: x- k6 Y- N% \- Q6 }Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64051: critical: error opening channel& L( E# A4 U* |3 _% Q" K# J
Sep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64068: critical: failed to create guest agent channel
7 _; N6 V! u: M* d7 `- \5 NSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64073: critical: failed to initialize guest agent channel
" w+ A% Z' b( \3 DSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
7 L( n2 D2 @3 H: MSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.4 {  g' \2 z( I5 S# R
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
" j6 z. V8 |/ _7 X6 W% USep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 1.
1 l1 c, P- r  k$ wSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
, R  `) P, K  C: VSep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
+ `8 l" h! m6 T9 L" j& @" Z# ?  G; L5 FSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75703: critical: error opening channel: No such file or directory
( `7 Q+ G, m- s9 u' LSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75744: critical: error opening channel/ T) ?: i! L: D* }9 {
Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75749: critical: failed to create guest agent channel
$ [! o* R  T  vSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75753: critical: failed to initialize guest agent channel
" j: F9 {' b& I  _2 H+ t+ Z+ V  u# ESep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE+ a4 H; z# y( ]2 _( z
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
& [' k& ?4 o! jSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.2 V0 N: K4 A, I3 n1 f
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 2.
  _- E5 U4 `9 ?4 ySep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.5 }% u2 W0 l/ Q, h, M
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
+ k& D* K( V* B8 a& WSep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87186: critical: error opening channel: No such file or directory& n% p% K0 Q& w
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87212: critical: error opening channel9 W# l8 b; E+ n2 N8 ?6 {% k, G: Y0 v
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87218: critical: failed to create guest agent channel
  K! a) _! p1 w  G, Z, bSep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87222: critical: failed to initialize guest agent channel4 A# s* K7 w' E- Y. j  d1 d$ y
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
) _$ \: n& ~( D& A: U( T2 ISep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.5 B7 |1 Z: u1 x! G
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.% h4 a' Q3 `# g: q- ^
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 3.
0 B0 z( E4 {) n  vSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.6 |5 U' A5 K9 E! c* |' M& o
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.* J6 ]3 I* ?$ M. J% z
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98561: critical: error opening channel: No such file or directory' ^& _; k# Q+ u! d  y" k
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98584: critical: error opening channel6 g' T# Y" N3 S4 [
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98590: critical: failed to create guest agent channel
/ ^; z3 b- C' [9 W. cSep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98594: critical: failed to initialize guest agent channel
! B$ p( W+ Z$ Z. }& q! ~Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
1 ~2 z; ?2 `# j# }' A9 |3 pSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
6 G6 ]0 c1 |, RSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
9 `. v4 R" s# x$ ~8 rSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 4.
8 q6 ~& J% U, F4 [7 O8 bSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.7 m' }/ j  c/ B3 D
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
% o! b" `, S: j; X4 W% ]Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109701: critical: error opening channel: No such file or directory
3 M! H0 X. H. v0 YSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109724: critical: error opening channel" E1 ]& B& s% D  b. X$ e
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109729: critical: failed to create guest agent channel9 d' o1 G8 }0 P- y% |
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109733: critical: failed to initialize guest agent channel
8 X1 F( O) I# i, e! ~Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE2 V. R4 l: E- ~; \
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
  W  ]$ W: x2 H2 ^# N$ d5 mSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
# R' ^9 B. [6 s1 n) q' U9 L+ RSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 5.
# |' G# V3 @3 aSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
8 @& N5 w2 }; r( [Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Start request repeated too quickly.
8 X) {2 U4 K" y7 h+ o8 s) J" ?Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
( I) l( u: O9 k; D5 T/ T2 n8 A2 n( D, bSep 23 16:53:47 bogon systemd[1]: Failed to start QEMU Guest Agent.

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 16:54:10 | 显示全部楼层
暂时没有办法解决问题。

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 16:54:27 | 显示全部楼层
安装qemu-guest-agent:用于从面板在线更新密码/密钥
. r) v1 {8 S# ]- F. i+ F4 Eyum install -y qemu-guest-agent" B- i* w* t& N9 d& p! Z9 D7 J
配置qemu-ga,修改* O2 e: ?2 o; j- n( ?- o+ J7 B
sed -i 's/FSFREEZE_HOOK_PATHNAME=/#FSFREEZE_HOOK_PATHNAME=/g' /etc/sysconfig/qemu-ga2 `6 m9 D6 C3 a- Q8 }! [' [1 s' y& F
0 J3 Y* t' k; O( ~
cat >>/etc/sysconfig/qemu-ga <<EOF9 G5 J+ Q) ?& m& J' |
TRANSPORT_METHOD="virtio-serial"
! O' L5 v/ k; \* }8 H6 E7 V# n9 b2 tDEVPATH="/dev/virtio-ports/org.qemu.guest_agent.0"
+ r* q+ Y6 ^6 b& c/ I, hLOGFILE="/var/log/qemu-ga/qemu-ga.log"              / {' u: K4 {8 ]! }. p
PIDFILE="/var/run/qemu-ga.pid"8 m1 T$ r7 A: D' V7 F, u9 N+ ^
BLACKLIST_RPC=""
1 P. g# M# {' ]- C: \FSFREEZE_HOOK_ENABLE=01 {) ?2 q' {! n3 n- E- Y8 I
EOF- `' H% b- E. e" L5 t, v

4 R# ~: z$ W+ `/ Jsystemctl enable qemu-guest-agent.service2 R& I( s6 i$ v

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 17:05:23 | 显示全部楼层
[root@compute03 images]# virsh edit Uniontechos1
% Q" ?! M- F/ {% u: {  j" ^# e8 h) R
<channel type='unix'>
* i7 ~! B9 B! \   <target type='virtio' name='org.qemu.guest_agent.0'/>
# k3 `) [. ?& T4 x: P</channel>
# E( O, O& j* A1 x! C( ?7 N
$ v1 P" a* D3 H% r6 B! n' t; R* G
/ t/ E* s" r% [Domain Uniontechos1 XML configuration edited.
8 K. s( f! l) m2 b2 k) {9 ^4 `: c/ C" h- d
[root@compute03 images]# virsh destroy Uniontechos1
# s6 p: E! q4 I  YDomain Uniontechos1 destroyed
4 L4 C+ Y3 P( U5 R
/ `9 \1 j: U+ T# F7 g& V[root@compute03 images]# virsh start Uniontechos1 2 I3 ?4 n% u) c! z+ d3 h
Domain Uniontechos1 started
! o+ E  n3 s  M0 z3 D* m. W7 T, D% @! N
[root@compute03 images]# virsh edit Uniontechos1
3 _2 n) x4 j8 B% w) O1 V% G' PDomain Uniontechos1 XML configuration not changed.
6 l& j! u5 x* V+ t' H$ l" a) w$ U2 ?  m3 R' X
next to vm install  qemu-guest-agent
) ^! t1 M2 b. X/ l
% _5 i2 b* ~+ b9 m# yum install qemu-guest-agent
6 R- ^  o$ Y" D0 D5 c* D; C

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 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 , z% B9 i3 j) E) r
Verifying...                          ################################# [100%]* c% |3 `+ M2 o6 |/ ~) M
Preparing...                          ################################# [100%]
& _, A9 z5 `1 |) `1 L( i3 C( eUpdating / installing...
6 U8 \6 _# c9 ?   1:qemu-guest-agent-15:4.2.0-48.0.2.################################# [100%]
& X1 V( U, M: i; k7 w* b$ G) w[root@bogon Packages]# cd Packages/cd
3 y/ C6 t9 l8 s8 e+ H, P5 n5 S5 t-bash: cd: Packages/cd: No such file or directory/ z0 r+ d7 H$ [" q% M5 P4 ^/ T$ O
[root@bogon Packages]# cd   O8 [  w' \- J7 A- s% y
[root@bogon ~]# systemctl start qemu-guest-agent.service
( Y2 q+ i7 G' Z" z- F4 _- h[root@bogon ~]# systemctl status qemu-guest-agent.service
7 q, H6 a9 G( j& h  ]● qemu-guest-agent.service - QEMU Guest Agent
+ ?, b( N) D; P+ x2 T! d. c   Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; enabled; vendor preset: enabled)
/ N! _' |% I/ h/ E1 f   Active: active (running) since Fri 2022-09-23 17:14:22 CST; 6s ago- r0 d( N( c9 v4 \
Main PID: 1940 (qemu-ga)/ w, O* M7 V/ w
    Tasks: 1 (limit: 49744)
9 l1 M$ ]- D8 l9 C7 \! E- ]* w   Memory: 836.0K5 X* S! B$ T3 K  F6 W- Z( T
   CGroup: /system.slice/qemu-guest-agent.service5 W4 G% n5 q; ?9 k# o
           └─1940 /usr/bin/qemu-ga --method=virtio-serial --path=/dev/virtio-ports/org.qemu.guest_agent>
9 R1 e& |# D$ [& S- X/ j4 H2 P6 M9 n5 S* }6 T$ B
Sep 23 17:14:22 bogon systemd[1]: Started QEMU Guest Agent.
0 K# a; R; P' {3 ]  w0 `[root@bogon ~]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:02 , Processed in 0.018100 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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