From nobody Sat Dec 25 19:24:33 2021 X-Original-To: stable@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 1E34919072F8 for ; Sat, 25 Dec 2021 19:24:48 +0000 (UTC) (envelope-from eugene@zhegan.in) Received: from elf.hq.norma.perm.ru (mail.norma.perm.ru [128.127.146.8]) (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 (2048 bits) client-digest SHA256) (Client CN "mail.norma.perm.ru", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JLv5B5DgHz4mxt for ; Sat, 25 Dec 2021 19:24:46 +0000 (UTC) (envelope-from eugene@zhegan.in) Received: from [192.168.243.7] ([192.168.243.7]) by elf.hq.norma.perm.ru (8.16.1/8.15.2) with ESMTP id 1BPJMMHb039887 for ; Sun, 26 Dec 2021 00:22:22 +0500 (+05) (envelope-from eugene@zhegan.in) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=vivat-retail.ru; s=key; t=1640460142; bh=067ExBwBE5Ij4qfOiWHQxdRiTDdzLT6O3i0ko6oSCXY=; h=Date:To:From:Subject; b=f6PgvEmybSfJxIE0XqGlhr3GWOmmLGCm5h79E9m/LrOSrjrTi1ZdWMYziqi3FswWp t6H9JA8RicKztkKB0S3VHNxq3EoFh2xFlNWbnOwW1ddZPHyyJ+cky+CsjsqVZ38VNx sYBcqaohNo+flxYNnVI9NbMV2aMRl/AEfD/bJw3E= Message-ID: Date: Sun, 26 Dec 2021 00:24:33 +0500 List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 To: stable@freebsd.org Content-Language: ru From: "Eugene M. Zheganin" Subject: FreeBSD trap under some hypervisor Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4JLv5B5DgHz4mxt X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=fail ("headers rsa verify failed") header.d=vivat-retail.ru header.s=key header.b=f6PgvEmy; dmarc=none; spf=pass (mx1.freebsd.org: domain of eugene@zhegan.in designates 128.127.146.8 as permitted sender) smtp.mailfrom=eugene@zhegan.in X-Spamd-Result: default: False [1.57 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:c]; R_DKIM_REJECT(1.00)[vivat-retail.ru:s=key]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[stable@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(0.88)[0.881]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.993]; DMARC_NA(0.00)[zhegan.in]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[vivat-retail.ru:-]; NEURAL_SPAM_SHORT(0.99)[0.986]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:212494, ipnet:128.127.146.0/24, country:RU]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello, I have some experience deploying FreeBSD in several clouds that don't initially state FreeBSD support. When I upload the sample image into these clouds, it usually runs just fine. I created the image from bhyve, using sysutils/vm-bhyve config like: loader="bhyveload" cpu=1 memory=2048M network0_type="virtio-net" network0_switch="public" disk0_type="virtio-blk" disk0_name="disk0.img" uuid="248d160e-0bf2-11ec-971e-ac1f6b9712f0" network0_mac="58:9c:fc:05:a7:90" This image can then be run in several openstack-based public clouds, like russian VM provider Selectel one, or Rostelecom cloud. But when upploading this image into the Yandex cloud (seems to be KVM/Qemu-based), I get a trap immidiately after starting loading the kernel: Loading kernel... /boot/kernel/kernel text=0x17b9e0 text=0xdd6d30 text=0x65b9ac data=0x140 data=0x1b9348+0x445cb8 syms=[0x8+0x178e90+0x8+0x199058] Loading configured modules... /boot/entropy size=0x1000 /boot/kernel/cryptodev.ko size 0xae38 at 0x2113000 /boot/kernel/zfs.ko size 0x67feb0 at 0x211e000 /etc/hostid size=0x25 ---<>--- Copyright (c) 1992-2021 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994         The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr 9 04:24:09 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe) kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address   = 0x7ffb2000 fault code              = supervisor read instruction, page not present instruction pointer     = 0x20:0x7ffb2000 stack pointer           = 0x28:0xffffffff827b2488 frame pointer           = 0x28:0xffffffff827b2510 code segment            = base 0x0, limit 0xfffff, type 0x1b                         = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags        = resume, IOPL = 0 current process         = 0 () trap number             = 12 panic: page fault cpuid = 0 time = 1 KDB: stack backtrace: #0 0xffffffff80c57345 at ??+0 #1 0xffffffff80c09d21 at ??+0 #2 0xffffffff80c09b93 at ??+0 #3 0xffffffff8108b187 at ??+0 #4 0xffffffff8108b1df at ??+0 #5 0xffffffff8108a83d at ??+0 #6 0xffffffff810617a8 at ??+0 #7 0xffffffff80b99fbf at ??+0 #8 0xffffffff8037c02c at ??+0 Uptime: 1s Does anyone have a clue for this ? Or may be anyone is more successfull in this than I am. Asking for support via usual Yandex channel seems to be futile, because they don't provide FreeBSD images in their catalog, thus they don't state FreeBSD as supported (in fact, only Azure or AliCloud are). Thanks. Eugene.