From owner-freebsd-current@freebsd.org Sun Aug 19 15:42:06 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 AEB15106D206 for ; Sun, 19 Aug 2018 15:42:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x241.google.com (mail-io0-x241.google.com [IPv6:2607:f8b0:4001:c06::241]) (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)) by mx1.freebsd.org (Postfix) with ESMTPS id 438777C2A9 for ; Sun, 19 Aug 2018 15:42:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x241.google.com with SMTP id l7-v6so10640183iok.6 for ; Sun, 19 Aug 2018 08:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=nZoHXt5L3yX/B/3Lzm9NXnRqBzYYOwVDoY4YWK4zeAw=; b=0qg6pDDNGzCkEt9wysZoRMMEj/Le6jA7TRfhkz+CstwAysLbupyBTDhRoaPEPwWPQn 1avAatvNglvx64/A0i75Oy/JjK1M71IGAZtK0drM2Qkf7qhglF4S8B4RvsKUDChLFZD6 ApV6+/19Q9D9WlolPlCYyLj2zEtE2m52Y+ON8HY4v4qat2lJXIRqcNRiovy4xOKk1K1O kcaRxZc/pItaABRXvCFvO1OVRnC6BsdvGGgUdUWBangwxcWoCwFdCDXm+2TqmURor3v2 K3MPgBeZ/tO87oiknbbonhyut6DBwAGUFPKOccOEne6dCeYDbfEAUzh9ILZSK5lrzVAO VxkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=nZoHXt5L3yX/B/3Lzm9NXnRqBzYYOwVDoY4YWK4zeAw=; b=eZ1AaEJiQntQXF/g+nmHpM/kYIv3X4t0SSR96jZVsCo06pged9FWmBkUYjh1LvyS6a gLGDE6jwmFdG5OrpzeCiMIhlGhTfejVXqwWW5ZQTmiIguqeHhu1k12em1D15catDZs9h nJyyJrVejmAgqL0gAWTm7GCn9nde8y3QsI+gRHuHhhUPjg0MZ+aZOBTHGXDYnZiqFsxE S3rosa2WtnB/RVlIxBwpXRUWpDNpTEC8k12dK8Lw7Hj1GaTd+O5B3mSDMnk+Hfc96pWR HUdvXc4AAlOZDmeJzavah8SpCFQV5DWlfNsLRDh5rGkbsJe3/iCGI6fq2qdcKfdWFWie dTkw== X-Gm-Message-State: AOUpUlE5j0av3bDUSWFHGXlqKEIbKc80zIGgnCPE0XyWZIY/NlDmdapc NIkd24xoXkZtmiY0mM7rZYaatWIbk2zzG4QxKEOTrw== X-Google-Smtp-Source: AA+uWPy9Z3Uu2CxdTZHv5KUjtzg6GwR3GGr0maxRwfdCp/DC75Ku1Fi+fD5XK2PAMRpVBNaZB/Hl70gznh0C7uSvOAw= X-Received: by 2002:a6b:d004:: with SMTP id x4-v6mr34953255ioa.299.1534693325573; Sun, 19 Aug 2018 08:42:05 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:2806:0:0:0:0:0 with HTTP; Sun, 19 Aug 2018 08:42:05 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <20180819153526.7ruovrpmdsimkmfj@ler-imac.local> References: <20180819152253.bbcrefdvynl7y5ka@ler-imac.local> <20180819153526.7ruovrpmdsimkmfj@ler-imac.local> From: Warner Losh Date: Sun, 19 Aug 2018 09:42:05 -0600 X-Google-Sender-Auth: X32tfPkd2g38QRA-6FzXsWr3Yl4 Message-ID: Subject: Re: LUA loader: bhyve now doesn't? To: Warner Losh , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 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 15:42:07 -0000 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? I'll look into this later today. Warner