找回密码
 注册
查看: 3163|回复: 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
/ A  N6 }0 B) o● qemu-guest-agent.service - QEMU Guest Agent
0 V3 ]0 s, r4 w     Loaded: loaded (/lib/systemd/system/qemu-guest-agent.service; static)
  {/ `% t  [" d' `3 M     Active: inactive (dead)
1 f! J& r, S9 V2 q" p5 YNov 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.
$ M  G& l$ z' W' @, a- V2 x# WNov 04 09:14:44 localhost systemd[1]: Dependency failed for QEMU Guest Agent.- X6 X# _: {. N. a# ]
Nov 04 09:14:44 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.. ]) L$ O. B( F8 M7 o
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.
5 V( Y* m6 S. P" e# ?- u5 S) tNov 04 09:18:46 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
/ D' f' y, \3 DNov 04 09:18:46 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.+ f9 x2 {- O% O% J
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.+ A1 J- I1 J/ [& N3 h& C
Nov 04 09:28:24 localhost systemd[1]: Dependency failed for QEMU Guest Agent.6 P5 ]9 }  J& t7 N+ c# w
Nov 04 09:28:24 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.; }1 z9 i3 k7 R) u1 Y, J* n
root@localhost:~# service qemu-guest-agent stop
; k& n0 ]: H% C" q6 y& xroot@localhost:~# service qemu-guest-agent start
! M7 [7 k7 ?6 w" E- q0 w0 CA dependency job for qemu-guest-agent.service failed. See 'journalctl -xe' for details.* E; J+ N2 @% v( O5 T* L* \
root@localhost:~# journalctl -xe+ ~4 F/ F' |6 C! P. M0 ?* c2 I
░░ Defined-By: systemd+ w+ e8 ~# }- Q/ Z2 V
░░ Support: http://www.ubuntu.com/support" p7 A: w$ W6 s! d9 V
░░
( N2 f' ~4 e7 S* u5 _░░ The unit packagekit.service has successfully entered the 'dead' state.9 I( u  g' J6 k2 q# Q0 {( C
Nov 04 09:30:47 localhost systemd[1]: Unnecessary job for /dev/virtio-ports/org.qemu.guest_agent.0 was removed.
& V/ _9 T8 B# e) L. r$ J( ^+ P1 X& U2 z░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed& \% i/ G) k; H* Q
░░ Defined-By: systemd$ H- J1 O6 k! @: T" c9 J! i' `
░░ Support: http://www.ubuntu.com/support
) t9 K& r" \3 ?' d$ F░░ . B) G' D8 `& w7 Z
░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure., ?. g0 D$ m* O- J
░░ , Q( z2 O) y( T( O/ e; ~6 _! K
░░ The job identifier is 1084 and the job result is collected.! M. G, D1 \/ f8 v; v) l
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.
$ W/ u0 b) Z# _/ E# [( h+ d4 D2 j! s% HNov 04 09:32:21 localhost systemd[1]: Timed out waiting for device /dev/virtio-ports/org.qemu.guest_agent.0.5 w" m& Q: W6 K, v4 F
░░ Subject: A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has failed/ Q3 ]/ b6 K# R+ F
░░ Defined-By: systemd
7 h& P/ z: v) p% W, i, }8 q░░ Support: http://www.ubuntu.com/support, n3 B( C1 J# O! P8 L8 c
░░ ! x1 o- R( B9 r. t5 x1 v
░░ A start job for unit dev-virtio\x2dports-org.qemu.guest_agent.0.device has finished with a failure.
0 s% e% E- A- ^7 A- z! P░░ 3 [  f  H/ K# S
░░ The job identifier is 1223 and the job result is timeout.
" D- Q) h+ G7 h! kNov 04 09:32:21 localhost systemd[1]: Dependency failed for QEMU Guest Agent.
" t# Q/ U( d' K7 m3 r* r, |* P░░ Subject: A start job for unit qemu-guest-agent.service has failed
6 w4 x# C! y* Z░░ Defined-By: systemd
; P- a  K. S: h  H& m# _" l░░ Support: http://www.ubuntu.com/support
# d) J2 C/ e8 t& V1 Y; l: R! q░░ & ?% T0 v6 O9 Q8 p- V) C
░░ A start job for unit qemu-guest-agent.service has finished with a failure.
& o8 @& D) z9 @9 R) n: y░░ + Y* m) c2 s8 E/ z4 X& B( j3 u
░░ The job identifier is 1155 and the job result is dependency.& X: S5 ]# G! h. [9 t8 ^/ x9 |' y
Nov 04 09:32:21 localhost systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.- }( f+ ?, F/ T" C! p, u# |
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 failed with r>7 J2 i; V/ ]  A' X$ H$ b
lines 2580-2610/2610 (END)
, a0 X  d$ N0 I7 m  q# i

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.) m9 h1 ~8 S4 F2 m" o6 D
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.
; L. `! o$ E! ^- d8 q' E2 QSep 23 16:26:56 bogon systemd[1]: Dependency failed for QEMU Guest Agent.
# M* m: G0 |& _/ bSep 23 16:26:56 bogon systemd[1]: qemu-guest-agent.service: Job qemu-guest-agent.service/start failed with result 'dependency'.
. D2 y0 s) `- B3 _Sep 23 16:30:07 bogon systemd[1]: Starting system activity accounting tool...; s. [8 s7 d: O$ Q0 a
Sep 23 16:30:07 bogon systemd[1]: sysstat-collect.service: Succeeded.
! U: Y+ M2 E6 I$ r  w$ YSep 23 16:30:07 bogon systemd[1]: Started system activity accounting tool.
" I. D2 L  g5 @$ Q! VSep 23 16:31:59 bogon systemd[1]: Unnecessary job for dev-virtio\x2dports-org.qemu.guest_agent.0.device was removed." K1 B, ]5 N1 {% M3 L  l
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.
! I" G- }1 ?5 N3 _6 wSep 23 16:31:59 bogon systemd[1]: Dependency failed for QEMU Guest Agent.. p& ]5 x  h7 o
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.
9 `; t% b; v% f# |# ]6 h+ PSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64021: critical: error opening channel: No such file or directory
$ K1 q! ]6 g$ |6 tSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64051: critical: error opening channel
, o9 |! p9 Y  f  d4 k9 ^7 C( PSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64068: critical: failed to create guest agent channel
% P  e+ y1 m7 r+ gSep 23 16:53:47 bogon qemu-ga[3075]: 1663923227.64073: critical: failed to initialize guest agent channel9 ]5 i# r% N( {2 Z- Q9 c' y
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE/ y# `- P8 [# P. K
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
3 k: P  T7 p5 |7 c/ d3 ?Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.; z& B) k7 R9 Q5 X, v% r/ c3 E% q
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 1.
! V7 ?) W4 I/ A8 A! w2 ^4 @Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.  B" _7 X1 `! _. l; r
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
3 I3 d+ K+ J) i4 v# N6 u! L% r" ySep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75703: critical: error opening channel: No such file or directory
2 e& f/ F4 d% j) Q* j; M1 H) DSep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75744: critical: error opening channel# C) Y2 W0 W% r7 ]
Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75749: critical: failed to create guest agent channel
* X( X$ x" m( H7 p. ~& y; t3 |Sep 23 16:53:47 bogon qemu-ga[3077]: 1663923227.75753: critical: failed to initialize guest agent channel' l* S: j1 a# y2 k/ H
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
6 W0 l4 `  {" t6 f" |! G* t# oSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
+ w$ v. M$ `; r2 ~& x+ ?Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.) E: Q& W! p, s4 l! {
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 2.- u# z% w8 O- ?& x% X
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.( R( q) v: n( [9 n" V
Sep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.: i) z; a) c' d4 r. m0 ]
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87186: critical: error opening channel: No such file or directory* F$ _+ Y0 l! @* ~
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87212: critical: error opening channel
, D  M! @! s8 s8 M% S9 c# w. sSep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87218: critical: failed to create guest agent channel0 f) |- K" Q& J: q# r  _7 @
Sep 23 16:53:47 bogon qemu-ga[3079]: 1663923227.87222: critical: failed to initialize guest agent channel
5 |4 s* E. |4 W8 j: B) {' \Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
5 U5 b! Z+ k" Q0 k9 L/ i9 ASep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.% ?! _- J9 l( e; X
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
9 E8 ]  z4 ]6 o; u3 WSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 3.
8 T5 b+ Z' W7 z* L/ W+ vSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
0 w$ r1 j8 _. C' D% {+ d7 zSep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
9 ?& X6 n6 m$ @Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98561: critical: error opening channel: No such file or directory
! b, @. l( R0 ?Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98584: critical: error opening channel
: F3 D) D* v& e0 f& h2 _: NSep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98590: critical: failed to create guest agent channel0 t% M8 T# B7 X. k9 p( Q. Y
Sep 23 16:53:47 bogon qemu-ga[3081]: 1663923227.98594: critical: failed to initialize guest agent channel
" e5 F* ~# n9 mSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE
8 s7 a' D2 X, I" U& QSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.% @0 }! e! @/ o: {: R
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.# b' u+ N" g! m
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 4.( x! l' E- C; R' T. m
Sep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
+ U. H3 Y: O. M% ~1 hSep 23 16:53:47 bogon systemd[1]: Started QEMU Guest Agent.
4 W% [9 W/ b+ g6 F$ p9 I/ vSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109701: critical: error opening channel: No such file or directory
" C  @. |- D4 p% e7 zSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109724: critical: error opening channel
* v3 w3 S. u" P, e8 L# @% ]  P( x% DSep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109729: critical: failed to create guest agent channel$ f# W% Q( y" h" f$ H/ ]8 B9 |1 n/ D
Sep 23 16:53:47 bogon qemu-ga[3083]: 1663923227.109733: critical: failed to initialize guest agent channel
' t! l! X& z% T& {3 bSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Main process exited, code=exited, status=1/FAILURE+ i! I. @/ K' A+ {' s  n6 N) Q6 X
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.
1 P/ m' M! L" Q# q  K! YSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Service has no hold-off time (RestartSec=0), scheduling restart.
: b) j9 G7 Z% R$ \  CSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Scheduled restart job, restart counter is at 5.
! o- M" m5 f* p- kSep 23 16:53:47 bogon systemd[1]: Stopped QEMU Guest Agent.
' W+ ]! I) l- C. l; R. wSep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Start request repeated too quickly.1 Z" k/ z, O/ T9 n
Sep 23 16:53:47 bogon systemd[1]: qemu-guest-agent.service: Failed with result 'exit-code'.0 s2 J( d, P+ ~% J& l
Sep 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:用于从面板在线更新密码/密钥
3 u' u/ m: E5 w  \* W! Wyum install -y qemu-guest-agent! X& `1 [1 t! Q+ I. M* {
配置qemu-ga,修改9 H  v% H' D6 h. P& \
sed -i 's/FSFREEZE_HOOK_PATHNAME=/#FSFREEZE_HOOK_PATHNAME=/g' /etc/sysconfig/qemu-ga& l* _# E+ m: T2 _7 x  v& f8 U3 p# E# J

7 S" w; D) T5 r- ]4 Pcat >>/etc/sysconfig/qemu-ga <<EOF! |: B# b3 F) P7 X9 W
TRANSPORT_METHOD="virtio-serial"
" s* V# W) a, U7 l+ yDEVPATH="/dev/virtio-ports/org.qemu.guest_agent.0"
4 o2 @/ o! s& c7 o. gLOGFILE="/var/log/qemu-ga/qemu-ga.log"              
2 A7 Z. m/ C0 k, G! l( M' BPIDFILE="/var/run/qemu-ga.pid"
, [5 p& O3 u; ]! QBLACKLIST_RPC=""+ v- t& |( j6 ]! g+ U; A' p
FSFREEZE_HOOK_ENABLE=09 N; R0 C7 ~$ }3 I/ T$ j, A
EOF! O) C  \! y+ k0 \$ j3 P, H
4 K* @0 H& U/ @+ a& _# L$ `2 W
systemctl enable qemu-guest-agent.service5 S& R% ?! o2 `5 H, P

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-9-23 17:05:23 | 显示全部楼层
[root@compute03 images]# virsh edit Uniontechos1 . [7 `! C5 A8 N9 R  o

' O' Y! A/ m* O$ G( u. `1 Q$ B) d1 R6 ]<channel type='unix'>
' u( E2 k& P* m9 O; b9 F   <target type='virtio' name='org.qemu.guest_agent.0'/>
: f7 |: N3 F2 T! \( Q+ O</channel>
6 z# a& O( k7 Q% N* S$ R+ k) S. E; S6 a; d

8 p! {) r& o  X- V% @Domain Uniontechos1 XML configuration edited.
. H% ~8 W, b8 v. q: `9 h$ g$ r" N  Z- H& L
[root@compute03 images]# virsh destroy Uniontechos1
! O2 @! n" s4 o0 a$ gDomain Uniontechos1 destroyed' j5 q% I2 S6 @0 \
5 p. b  l% }) a. I, ~2 D1 h9 p1 F
[root@compute03 images]# virsh start Uniontechos1
- E* G1 w& t& m7 B/ V& ]& r. @" dDomain Uniontechos1 started3 r! N+ F' y* k- ?' x# R! d' T

& C8 @: o# ]8 r% P' Y[root@compute03 images]# virsh edit Uniontechos1
. S% s0 L8 P. Z: X/ }Domain Uniontechos1 XML configuration not changed.$ n" N7 M/ i$ |
' j( j% D- W0 _. `
next to vm install  qemu-guest-agent( X5 z/ c$ T2 |% h% Y

( N% B  w- _/ O; A1 v1 x+ |0 \# yum install qemu-guest-agent
: a4 d) }' ^; v1 F6 Q

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
5 L8 J2 V, w; i! O6 h- HVerifying...                          ################################# [100%]
  Q% y. t2 R3 t8 {$ R9 _% T8 nPreparing...                          ################################# [100%]
1 u5 @  _/ B" e$ E) i4 v0 l7 KUpdating / installing...6 r9 K- p  g2 s) p# C2 C* {3 G
   1:qemu-guest-agent-15:4.2.0-48.0.2.################################# [100%]8 K: [7 Z, _3 o1 x, f. O
[root@bogon Packages]# cd Packages/cd 5 I; K& U' t& ?' r
-bash: cd: Packages/cd: No such file or directory9 b/ r3 \. r3 v
[root@bogon Packages]# cd 6 s9 ]4 D5 M; k9 A/ u
[root@bogon ~]# systemctl start qemu-guest-agent.service
9 ^6 Z$ x# Y- e[root@bogon ~]# systemctl status qemu-guest-agent.service
7 I, F& l8 H, Z9 W0 O' Z/ [● qemu-guest-agent.service - QEMU Guest Agent0 E" s" ~9 U$ J2 N
   Loaded: loaded (/usr/lib/systemd/system/qemu-guest-agent.service; enabled; vendor preset: enabled)
2 e; h2 z4 R7 f  Y+ {$ s' _   Active: active (running) since Fri 2022-09-23 17:14:22 CST; 6s ago
. F9 x; n8 a3 _ Main PID: 1940 (qemu-ga)/ W+ f+ L# i( Z  U% h
    Tasks: 1 (limit: 49744)
/ L& b0 q$ @: n4 u2 W5 K/ h   Memory: 836.0K
. d5 \% E, f! H3 s. N  S8 `   CGroup: /system.slice/qemu-guest-agent.service
% L, r5 F7 |5 t% w9 s           └─1940 /usr/bin/qemu-ga --method=virtio-serial --path=/dev/virtio-ports/org.qemu.guest_agent>
" M  h# S% X7 Z7 V& Q6 k
1 ?9 f: h$ K1 t+ zSep 23 17:14:22 bogon systemd[1]: Started QEMU Guest Agent.
) p! J. E8 g+ X  d. b( Z3 j- ?9 d$ f! z[root@bogon ~]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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