From nobody Wed Mar 30 10:44:42 2022 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3EB191A4B01E for ; Wed, 30 Mar 2022 10:44:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KT33G20J0z3mhT for ; Wed, 30 Mar 2022 10:44:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 204E3114F9 for ; Wed, 30 Mar 2022 10:44:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22UAig6x093115 for ; Wed, 30 Mar 2022 10:44:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22UAif8V093114 for virtualization@FreeBSD.org; Wed, 30 Mar 2022 10:44:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 262936] bhyve randomly fails to boot/stop/reboot Date: Wed, 30 Mar 2022 10:44:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bergerkos@yahoo.co.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648637082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eIn6hpc5Vk2B7lLGKBXjg95okCA424rlvWhhYqlMGjQ=; b=oGjqqYgZh/mbIYt20pkeUk/StJEV08lmpkp4ZTHHbRhadOdK9QpJghDT3D1MTBu+zFUKaH bqX8XfiLPhrARfn143+CiX4IcuNMmDAWBB7YzOdbZqPourfrqw5aGwhtUNTTcBRqI0tUyR jgCwI6uVCbGMltvBWQGDlKr0BzJza88QRyccjYe9LWyAFDT+dI60BUa7uwHnaJV7ii0trI ko8rz7F0Ij/qIaOGFqy6YtTqgWGCy7zZmilUINstkcLRIwD78VDM5g0ifwJJoKs2j7TvcM TcJ54gByGL0l2bF+Xqz6Y2ggrHBnIK9fsd4aYwkPZSAh3pqIt5pkSZ8QK0NHPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648637082; a=rsa-sha256; cv=none; b=VnEsH3lEaoOAocMNW5U+sPWhM4CrPnsxPPmLQZXnwxGXLVPhdzI+IsSk6kqApz2g7KwDyb Dv95cHL46+vOlU0fMaYTK08tA0gtZbmSOGMtksUBngss05fZxzjbhZ9QTgLtwtKsWZ1v/i KITqfkpZJlB0bmzdyvnHurN1SZZpaTyoV7t2liKbA9O1coQpa3e5anuolgRYF6Ys7DoyOO igSmEUYdjg9KV9U1qTomQa0wO+lHMFZUc/nfAAM1a12v3LlZQu2xsTYT3dgr9d6l7akmES pQrXAYWjUlWDSPmboypRRyOk5d0R4V4HZKXh/llSSRU0Zhh4Cr5TH7ZsdfpdEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262936 Bug ID: 262936 Summary: bhyve randomly fails to boot/stop/reboot Product: Base System Version: 13.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: bergerkos@yahoo.co.uk THe system is 13.0-STABLE FreeBSD 13.0-STABLE #0 stable/13-n249491-be8e3417= 77c (installed from one of the snapshots) My Windows 10 VM randomly fails to boot (bhyve console hangs dead), after w= hich it cannot be started again without the machine reboot. I have passthrough network and USB cards, so may be related, maybe not. What happens in detail: SOMETIMES boot console hangs dead at UEFI booting stage, after which `bhyve= ctl --vm $my_vm --force-reset / --force-poweroff` commands don't work at all. B= oot console itself hangs and so does the corresponding 'bhyve' process. The `bh= yve --vm $myvm --destroy` command DOES something: ls /dev/vmm is empty, VM destroyed, but the `bhyve` process is still hanging there. It disappears up= on user logout/login (desktop).=20 But when, after these manipulations, I try to start the VM anew it gives off this error: bhyve: Failed to map MSI-X table BAR on 12/0/0: Device busy bhyve: failed to initialize BARs for PCI 12/0/0 device emulation initialization error: Device busy Here is my command: bhyve -S -c sockets=3D1,cores=3D4,threads=3D2 -m 8G -H -w \ -s 0,hostbridge \ -s 3,passthru,8/0/0 \ -s 4,virtio-blk,/bhyve/win-alt.img,sectorsize=3D512/4096 \ -s 6,hda,rec=3D/dev/dsp,play=3D/dev/dsp \ -s 8,passthru,12/0/0 \ -s 29,fbuf,tcp=3D0.0.0.0:5900,w=3D1600,h=3D900,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l com1,stdio \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ windows-10 Is there anything else that can be "reset" there without a complete machine reboot? --=20 You are receiving this mail because: You are the assignee for the bug.=