From owner-freebsd-current@freebsd.org Sun Aug 19 16:28:32 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA89B106ED36 for ; Sun, 19 Aug 2018 16:28:32 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78FA47E0A2; Sun, 19 Aug 2018 16:28:32 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 170FA1A33A; Sun, 19 Aug 2018 16:28:32 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lf1-f52.google.com with SMTP id a4-v6so9153270lff.5; Sun, 19 Aug 2018 09:28:32 -0700 (PDT) X-Gm-Message-State: AOUpUlGDGSDM2ROe8eUIQymBZdMgNH5guxOHh8TCx+dReHw9O1iNRRpL b8yqeJG2yF4XRymiO2o8trrMI7o7sQUWolYnqUY= X-Google-Smtp-Source: AA+uWPyxJCoA0AcWh3OL5Sb+3hl1K2o+WmVEx4IF2rAiF8d3EqRBzNv7Ydv2tPxHHIqB5SJRjrkiAj+PJjBcUzMmgRM= X-Received: by 2002:a19:ca09:: with SMTP id a9-v6mr5778599lfg.120.1534696110606; Sun, 19 Aug 2018 09:28:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:5742:0:0:0:0:0 with HTTP; Sun, 19 Aug 2018 09:28:10 -0700 (PDT) In-Reply-To: References: <20180819152253.bbcrefdvynl7y5ka@ler-imac.local> <20180819153526.7ruovrpmdsimkmfj@ler-imac.local> From: Kyle Evans Date: Sun, 19 Aug 2018 11:28:10 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: LUA loader: bhyve now doesn't? To: Warner Losh Cc: FreeBSD Current , John Baldwin , tychon@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2018 16:28:33 -0000 On Sun, Aug 19, 2018 at 10:42 AM, Warner Losh wrote: > On Sun, Aug 19, 2018 at 9:35 AM, Larry Rosenman wrote: > >> On Sun, Aug 19, 2018 at 09:33:18AM -0600, Warner Losh wrote: >> > On Sun, Aug 19, 2018 at 9:22 AM, Larry Rosenman wrote: >> > >> > > With today's change to LUA as the loader, I seem to have an issue with >> > > bhyhve: >> > > >> > > Consoles: userboot >> > > >> > > FreeBSD/amd64 User boot, Revision 1.1 >> > > (Thu Nov 16 15:04:02 CST 2017 root@borg.lerctr.org) >> > > Startup error in /boot/lua/loader.lua: >> > > LUA ERROR: cannot open /boot/lua/loader.lua: no such file or directory. >> > > >> > > /boot/kernel/kernel text=0x1063d88 data=0x12e930+0x283970 >> > > syms=[0x8+0x14cf28+0x8+0x163e57] >> > > Hit [Enter] to boot immediately, or any other key for command prompt. >> > > Booting [/boot/kernel/kernel]... >> > > >> > > These VM's have been running for MONTHS. >> > > >> > > Ideas? >> > > >> > >> > There's no boot/lua/loader.lua. >> > >> > You can either fix that, or you can recompile with >> > LOADER_DEFAULT_INTERP=4th for the moment. >> actually on the host there is: >> borg.lerctr.org /home/ler $ ls -l /boot/lua/ >> total 131 >> -r--r--r-- 1 root wheel 3895 Aug 19 09:46 cli.lua >> -r--r--r-- 1 root wheel 3204 Aug 19 09:46 color.lua >> -r--r--r-- 1 root wheel 14024 Aug 19 09:46 config.lua >> -r--r--r-- 1 root wheel 10302 Aug 19 09:46 core.lua >> -r--r--r-- 1 root wheel 9986 Aug 19 09:46 drawer.lua >> -r--r--r-- 1 root wheel 3324 Aug 19 09:46 hook.lua >> -r--r--r-- 1 root wheel 2543 Aug 19 09:46 loader.lua >> -r--r--r-- 1 root wheel 2431 Aug 19 09:46 logo-beastie.lua >> -r--r--r-- 1 root wheel 2203 Aug 19 09:46 logo-beastiebw.lua >> -r--r--r-- 1 root wheel 1958 Aug 19 09:46 logo-fbsdbw.lua >> -r--r--r-- 1 root wheel 2399 Aug 19 09:46 logo-orb.lua >> -r--r--r-- 1 root wheel 2119 Aug 19 09:46 logo-orbbw.lua >> -r--r--r-- 1 root wheel 12010 Aug 19 09:46 menu.lua >> -r--r--r-- 1 root wheel 3941 Aug 19 09:46 password.lua >> -r--r--r-- 1 root wheel 2381 Aug 19 09:46 screen.lua >> borg.lerctr.org /home/ler $ >> >> This is when booting the vm, and it's not on the vm's disk. >> >> So the bhyveload behavior *CHANGED*. >> >> POLA? >> > > Unlikely, but a couple of questions. Have you always used the LUA loader, > or is this a change with the recent default switch? > > And to be clear, you expect the host's file to be used for this, not the VM > filesystem? > (CC'ing jhb@ and tychon@, who might have better insight) If we can swing it, I think the best model here should have always been that userboot uses the host's scripts but the guest's loader.conf. The current model doesn't tolerate any mismatch between host and guest and looks unsustainable. Thanks, Kyle Evans