Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Nov 2022 16:09:15 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 267644] FreeBSD guest running halt -p hangs on Linux client
Message-ID:  <bug-267644-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267644

            Bug ID: 267644
           Summary: FreeBSD guest running halt -p hangs on Linux client
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: andrew.cagney@gmail.com

Created attachment 237946
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D237946&action=
=3Dedit
dmesg from VM

A pretty vanilla install into a qemu guest created using:

        sudo virt-install \
                --connect=3Dqemu:///system --check=3Dpath_in_use=3Doff
--graphics=3Dnone --virt-type=3Dkvm --noreboot --console=3Dpty,target_type=
=3Dserial
--vcpus=3D1 --memory=3D2048  --cpu=3Dhost-passthrough
--network=3Dnetwork:swandefault,model=3Dvirtio --rng=3Dtype=3Drandom,device=
=3D/dev/random
--security=3Dtype=3Dstatic,model=3Ddac,label=3D'1000:107',relabel=3Dyes \
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
--filesystem=3Dtarget=3Dpool,type=3Dmount,accessmode=3Dsquash,source=3D/hom=
e/pool \
                --name=3Dw.freebsd-base \
                 --os-variant=3Dfreebsd13.0 \
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
--disk=3Dpath=3D/home/pool/w.freebsd-base.qcow2,size=3D10,bus=3Dvirtio,form=
at=3Dqcow2 \
                --cdrom=3D/home/pool/w.freebsd-base.iso

(the ISO is tweaked to help automate the install).  Afterwards:

[root@freebsd ~ 0]# halt -p
Nov  8 15:48:21 freebsd halt[779]: halted by root
Nov  8 15:48:21 freebsd syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop... done
Waiting (max 60 seconds) for system process `syncer' to stop...=20
Syncing disks, vnodes remaining... 2 1 0 done
Waiting (max 60 seconds) for system thread `bufdaemon' to stop... done
Waiting (max 60 seconds) for system thread `bufspacedaemon-0' to stop... do=
ne
All buffers synced.
Uptime: 37s
uhub0: detached
uhub1: detached

I'd have expected the vm to then quit (the whole shutdown process seems a
little slow).
I should note that using the host to ask the guest VM to shutdown does work
(for instance using virsh say).

I've tried it with hosts:

Linux 5.15.5-100.fc34.x86_64
qemu-kvm-5.2.0-8.fc34.x86_64

Linux 6.0.5-200.fc36.x86_64
qemu-kvm-6.2.0-16.fc36.x86_64

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-267644-227>