NetBSD Problem Report #60524

From www@netbsd.org  Sat Aug  1 12:57:27 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2793F1A923C
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  1 Aug 2026 12:57:27 +0000 (UTC)
Message-Id: <20260801125725.9A3B81A923D@mollari.NetBSD.org>
Date: Sat,  1 Aug 2026 12:57:25 +0000 (UTC)
From: carenas@gmail.com
Reply-To: carenas@gmail.com
To: gnats-bugs@NetBSD.org
Subject: WARNING triggered booting NetBSD VMs on most hypervisors
X-Send-Pr-Version: www-1.0
X-From4GNATS: "carenas@gmail.com via gnats" <gnats-admin@NetBSD.org>

>Number:         60524
>Category:       kern
>Synopsis:       WARNING triggered booting NetBSD VMs on most hypervisors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 01 13:00:00 +0000 2026
>Originator:     Carlo Arenas
>Release:        
>Organization:
>Environment:
NetBSD  8.3 NetBSD 8.3 (GENERIC) #0: Sat May  4 18:57:00 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386

the issue is reproducible also in older releases, as well as newer ones (including current), with very similar output.
>Description:
Using qemu-system-i386 or qemu-system-x86_64 on a Linux host to run NetBSD VM (with or without KVM) triggers a boot warning for failing to attach the `vmt` driver.

during initialization off the CPU, the possibility of running under an hypervisor is checked, so use that information to ensure that the driver matches the expected hypervisor (not tested, as I don't have VMWare)
>How-To-Repeat:
Start a NetBSD VM under QEMU/kvm (or any other VMM other than VMWare), and the following will be observed during kernel initialization:

vmt0 at cpu0
vmware: open failed, eax=ffffffff, ecx=0000001e, edx=00005658
vmt0: failed to open backdoor RPC channel (TCLO protocol)
...
WARNING: 1 error while detecting hardware; check system log.
>Fix:
Index: sys/arch/x86/x86/vmt.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/vmt.c,v
retrieving revision 1.22
diff -u -r1.22 vmt.c
--- sys/arch/x86/x86/vmt.c	9 May 2024 12:09:59 -0000	1.22
+++ sys/arch/x86/x86/vmt.c	1 Aug 2026 12:07:47 -0000
@@ -51,6 +51,8 @@
 		return 0;
 	if ((ci->ci_flags & (CPUF_BSP|CPUF_SP|CPUF_PRIMARY)) == 0)
 		return 0;
+	if (vm_guest != VM_GUEST_VMWARE)
+		return 0;

 	return vmt_probe();
 }

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.