Your message dated Wed, 4 Dec 2024 12:42:37 +0300
with message-id <1f30fd30-2b71-4d7f-8aab-dbd4cc4ae...@tls.msk.ru>
and subject line Re: I could fix this on my two systems (qemu-guest-agent not
starting)
has caused the Debian Bug report #1058029,
regarding qemu-guest-agent: QEMU-GA WON'T START
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1058029: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058029
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: qemu-guest-agent
Version: 1:8.1.2+ds-1~bpo12+1
Severity: serious
Justification: 6
Dear Maintainer,
The problem arose after upgrading from bullseye to bookworm.
All was OK on bullseye, but on bookworm qemu-ga refuse to start with
following messages :
1702295113.963828: debug: disabling command: guest-get-devices
1702295113.963868: critical: error opening channel
'/dev/virtio-ports/org.qemu.guest_agent.0': No such file or directory
1702295113.963873: critical: failed to create guest agent channel
1702295113.963875: critical: failed to initialize guest agent channel
The systemd command looks like :
[Unit]
Description=QEMU Guest Agent
BindsTo=dev-virtio\x2dports-org.qemu.guest_agent.0.device
After=dev-virtio\x2dports-org.qemu.guest_agent.0.device
[Service]
ExecStart=-/usr/sbin/qemu-ga
Restart=always
RestartSec=0
[Install]
Regards
JP P
-- System Information:
Debian Release: 12.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-0.deb11.13-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=C
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages qemu-guest-agent depends on:
ii init-system-helpers 1.65.2
ii libc6 2.36-9+deb12u3
ii libglib2.0-0 2.74.6-2
ii libnuma1 2.0.16-1
ii libudev1 252.19-1~deb12u1
ii liburing2 2.3-3
qemu-guest-agent recommends no packages.
qemu-guest-agent suggests no packages.
-- Configuration Files:
/etc/init.d/qemu-guest-agent changed:
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="QEMU Guest Agent"
NAME=qemu-ga
DAEMON=/usr/sbin/$NAME
PIDFILE=/var/run/$NAME.pid
set -x
DAEMON_ARGS=""
TRANSPORT=virtio-serial:/dev/virtio-ports/org.qemu.guest_agent.0
[ -x "$DAEMON" ] || exit 0
. /lib/init/vars.sh
do_check_transport() {
method=${TRANSPORT%%:*}; path=${TRANSPORT#*:}
case "$method" in
virtio-serial | isa-serial)
if [ ! -e "$path" ]; then
echo log_warning_msg "$NAME: transport endpoint not found,
not starting"
return 1
fi
;;
*) echo 'Not virtio-serial or isa-serial'
;;
esac
}
do_start()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started
echo start-stop-daemon -Sq -p $PIDFILE -x $DAEMON --test > /dev/null \
|| return 1
echo start-stop-daemon -Sq -p $PIDFILE -x $DAEMON -- --daemonize \
$DAEMON_ARGS -m "$method" -p "$path" \
|| return 2
}
do_stop()
{
# Return
# 0 if daemon has been stopped
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
echo start-stop-daemon -Kq --retry=TERM/30/KILL/5 -p $PIDFILE --name
$NAME
}
case "$1" in
start)
do_check_transport || exit 0
echo 'Apres check-transport'
exit 10
[ "$VERBOSE" != no ] && echo log_daemon_msg "Starting $DESC" $NAME
echo do_start
case "$?" in
0|1) [ "$VERBOSE" != no ] && echo log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && echo log_end_msg 1 ;;
esac
;;
stop)
[ "$VERBOSE" != no ] && echo log_daemon_msg "Stopping $DESC" $NAME
echo do_stop
case "$?" in
0|1) [ "$VERBOSE" != no ] && echo log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && echo log_end_msg 1 ;;
esac
;;
status)
status_of_proc "$DAEMON" $NAME && exit 0 || exit $?
;;
restart|force-reload) # we do not support reload
do_check_transport || exit 0
echo log_daemon_msg "Restarting $DESC" $NAME
echo do_stop
case "$?" in
0|1)
echo do_start
case "$?" in
0) echo log_end_msg 0 ;;
1) echo log_end_msg 1 ;; # Old process is still running
*) echo log_end_msg 1 ;; # Failed to start
esac
;;
*)
# Failed to stop
echo log_end_msg 1
;;
esac
;;
*)
echo "Usage: /etc/init.d/qemu-guest-agent
{start|stop|status|restart|force-reload}" >&2
exit 3
;;
esac
-- no debconf information
--- End Message ---
--- Begin Message ---
On Sun, 7 Jul 2024 21:43:03 +0000 Holger Levsen <hol...@layer-acht.org> wrote:
On Sun, Jul 07, 2024 at 07:18:18PM +0000, Holger Levsen wrote:
> On Sun, Jul 07, 2024 at 06:46:21PM +0000, Holger Levsen wrote:
> > subject says it all, one was freshly installed with bookworm, the other
> > was upgraded. both don't use backports. happy to give more data.
the fix for me was to add these lines to the guests XML definition:
<channel type='unix'>
<source mode='bind'/>
<target type='virtio' name='org.qemu.guest_agent.0'/>
</channel>
It has always been required to have some channel from host to
the guest kernel for qga to work. virt-manager adds configuration
like this by default. libvirtd itself doesn't, so you have to
configure something like this manually. But nothing ever changed
in this context since the introduction of qemu-guest-agent.
And qga in the guest starts automatically when the channel in the
guest kernel is present, - you don't start it manually.
I'm closing this bug report now, since I still don't understand
what's not working the way it is designed, - for a year already,
there were no more comments from the original reporter about any
of my questions. Feel free to reopen it and give something to
work on, if you think it is incorrect.
Thanks,
/mjt
--- End Message ---