From nobody Thu Jun 15 21:42:35 2023 X-Original-To: freebsd-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 4Qhwkc18zpz4fXnC for ; Thu, 15 Jun 2023 21:42:48 +0000 (UTC) (envelope-from jason@tubnor.net) Received: from mail.tubnor.net (mail.tubnor.net [103.236.162.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qhwkb21jxz4LhN for ; Thu, 15 Jun 2023 21:42:47 +0000 (UTC) (envelope-from jason@tubnor.net) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tubnor.net; s=20220915; t=1686865354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Wuexlp/Nfy/DlbZrEGtuDM6mvExFm5rwOSSCmAxh5Dk=; b=V08mvtcJSz8MDFO+PBYrXhytSfv3QcRIruag1mad5vKZwVa+6q7KFPSjDF9lrA5Ny5Wxv3 e6RAGoElnc6E8EXQNf9F7qdogoJXqQNQC6INioj64my7JA7n6gdZhI5KOOBOSXGZ7soh9z SxV8h2TsY84IP5GMCBBa2ZY7mLSkW8E= Received: from THEMASTER ( [2403:5812:73e6:1:6807:b315:69c1:b336]) by mel01.ar18.net (OpenSMTPD) with ESMTPSA id 99be6499 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 16 Jun 2023 07:42:34 +1000 (AEST) From: To: "'Sean McBride'" , References: <1AC64CF0-2CCF-4B72-9E44-75104E813CF6@rogue-research.com> In-Reply-To: <1AC64CF0-2CCF-4B72-9E44-75104E813CF6@rogue-research.com> Subject: RE: Ubuntu in bhyve Date: Fri, 16 Jun 2023 07:42:35 +1000 Message-ID: <002401d99fd2$4c6d2470$e5476d50$@tubnor.net> 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 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0025_01D9A026.1E19F7C0" X-Mailer: Microsoft Outlook 16.0 Content-Language: en-au Thread-Index: AQG7j4KiCHDB8k9TVed3dRnx5vsdbK/IhHmA X-Rspamd-Queue-Id: 4Qhwkb21jxz4LhN X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:133159, ipnet:103.236.162.0/23, country:AU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N This is a multipart message in MIME format. ------=_NextPart_000_0025_01D9A026.1E19F7C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Make sure your guests (and host) are syncing to a reliable time source. I have heard time to time of some having this issue, but we haven't seen it though we do use OpenNTPD across our BSD/*nix guests (windows has its own time sync service). Cheers, Jason. From: owner-freebsd-virtualization@freebsd.org On Behalf Of Sean McBride Sent: Friday, June 16, 2023 5:20 AM To: freebsd-virtualization@FreeBSD.org Subject: Ubuntu in bhyve Hi all, I am running bhyve (via TrueNAS Core 13) and have some Ubuntu 20.04 and 22.04 guests. One of them rather regularly seizes up hard, where I cannot ssh to it, then after a few minutes works again. This happens repeatedly and on and off. In the Ubuntu logs I see messages like: clocksource: timekeeping watchdog on CPU2: Marking clocksource 'tsc' as unstable because the skew is too large: clocksource: 'hpet' wd_nsec: 536417782 wd_now: 638cb3ff wd_last: 63036152 mask: ffffffff clocksource: 'tsc' cs_nsec: 536821277 cs_now: 225a9f9e1250b cs_last: 225a9b3891749 mask: ffffffffffffffff clocksource: 'tsc' is current clocksource. tsc: Marking TSC unstable due to clocksource watchdog TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'. sched_clock: Marking unstable (12899572906362, 9192186981)<-(12908811630850, -46250627) clocksource: Checking clocksource tsc synchronization from CPU 2 to CPUs 0-1,3. clocksource: Switched to clocksource hpet loop8: detected capacity change from 0 to 114000 Although I don't fully grok these messages, they sound like something that could be bhyve's fault. Anyone know if that may indeed be the case? There is a thread about this on the TrueNAS forum too, but with no answers really: https://www.truenas.com/community/threads/debian-vms-under-bhyve-clock.10837 6/ Thanks, Sean ------=_NextPart_000_0025_01D9A026.1E19F7C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Make sure your guests (and host) = are syncing to a reliable time source. I have heard time to time of some = having this issue, but we haven’t seen it though we do use = OpenNTPD across our BSD/*nix guests (windows has its own time sync = service).

 

Cheers,

 

Jason.

 

From: = owner-freebsd-virtualization@freebsd.org = <owner-freebsd-virtualization@freebsd.org> On Behalf Of = Sean McBride
Sent: Friday, June 16, 2023 5:20 = AM
To: freebsd-virtualization@FreeBSD.org
Subject: = Ubuntu in bhyve

 

Hi = all,

I am running bhyve (via TrueNAS = Core 13) and have some Ubuntu 20.04 and 22.04 = guests.

One of them rather regularly = seizes up hard, where I cannot ssh to it, then after a few minutes works = again. This happens repeatedly and on and off. In the Ubuntu logs I see = messages like:

clocksource: timekeeping =
watchdog on CPU2: Marking clocksource 'tsc' as unstable because the skew =
is too large:
clocksource:   &n=
bsp;           &nb=
sp;       'hpet' wd_nsec: 536417782 =
wd_now: 638cb3ff wd_last: 63036152 mask: ffffffff
clocksource:   &n=
bsp;           &nb=
sp;       'tsc' cs_nsec: 536821277 cs_now: =
225a9f9e1250b cs_last: 225a9b3891749 mask: ffffffffffffffff
clocksource:   &n=
bsp;           &nb=
sp;       'tsc' is current =
clocksource.
tsc: Marking TSC unstable due =
to clocksource watchdog
TSC found unstable after boot, =
most likely due to broken BIOS. Use 'tsc=3Dunstable'.
sched_clock: Marking unstable =
(12899572906362, 9192186981)<-(12908811630850, -46250627)
clocksource: Checking =
clocksource tsc synchronization from CPU 2 to CPUs 0-1,3.
clocksource: Switched to =
clocksource hpet
loop8: detected capacity change =
from 0 to 114000

Although I don't fully grok = these messages, they sound like something that could be bhyve's fault. = Anyone know if that may indeed be the = case?

There is a thread about this on = the TrueNAS forum too, but with no answers = really:

https://www.truenas.com/community/threads/debian-= vms-under-bhyve-clock.108376/

Thanks,

= Sean

=
------=_NextPart_000_0025_01D9A026.1E19F7C0--