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

Reply via email to