From owner-freebsd-current@freebsd.org Sun Aug 19 15:55:04 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 22049106D9A6 for ; Sun, 19 Aug 2018 15:55:04 +0000 (UTC) (envelope-from jmaloney@ixsystems.com) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 8C0FE7C985 for ; Sun, 19 Aug 2018 15:55:03 +0000 (UTC) (envelope-from jmaloney@ixsystems.com) Received: by mail-ed1-x536.google.com with SMTP id e19-v6so7066108edq.7 for ; Sun, 19 Aug 2018 08:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixsystems-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=P2UAjEH9FNbqGNUQAe07aQNh766d1mnYudtEs4LRCjE=; b=WuwrKSjA8jmdD+iPEeD63c7SUXQ/IT6dnM+UPbvwhFJ/jatXCqF8tRFjgkPAnOpWFf 4fUZ6NJwt1Amf2wRgPOp+Gbv9shKtShVPwROC4n67ZwbFx7EMe0LAZIQ7XiXZJQEo10Q U3PMctuAf+c7dV/FZbT9IQAXrzVVsQVEex3AbAzgLAWboXSmBmfk/m1aY7ylD0/dx0mC C9fa3mOmK0mvw69oV4RJAhRXJ7ZLIWjhU9xK15ay8BjWOxXc/T3hw+RoTDQcHrIeC2oX jQS2sT/f+U1mAqCV2ZV2uVNHCRMegPy18c7UTVJ/XtHcaqHF08R7uW3zdSvL+EbQgNad uuhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=P2UAjEH9FNbqGNUQAe07aQNh766d1mnYudtEs4LRCjE=; b=RFhSwWXtYs4g2+2h6aTvrEq1aWN4agcQx6Od7x6qykh73aLjGpAQbcoKJaGvc8bKRD 4a4vb227tBPU7cOxpM/GiQyV0iYYJIv5pP9BdwY4MXhlDl4KV1XWHbjdfhecJEXZDHWk m9chhEd+Ds28npviSKJruG4NUz6MxEljQht4xvMr/wa53NMg6pUlbb2E3jb5LnusaoAD cpezpv/DiTzM0AZEGZt4LIpKxRHbdM6YsNEPwY3wMWGC90q8VN2nKYl6B5qRHLuyZngd LMPDa6asHxZRaPbfVsqzjccReRhJNXrH7GLiSRyow/wBwSuz/F4dhFzKjvAi0hMocnoq gyAg== X-Gm-Message-State: AOUpUlGdCVeizGjilmpRPstJs+MmfFPEhL1NjlY6AQjSF9dwqEqh9xHT MWJhD4paj/m9/jSfhvpXWVRrOWnXYUTLSJFRmQVqjA== X-Google-Smtp-Source: AA+uWPzT47+op40jdzenVNLqcax1g5XDycTaB+WzHtER8VKF11ORIA5W0lx3wnkFyig2GpCKBRSTSNufBJzhAxNHmsc= X-Received: by 2002:aa7:c592:: with SMTP id g18-v6mr32017662edq.214.1534694102489; Sun, 19 Aug 2018 08:55:02 -0700 (PDT) MIME-Version: 1.0 References: <20180819152253.bbcrefdvynl7y5ka@ler-imac.local> <20180819153526.7ruovrpmdsimkmfj@ler-imac.local> In-Reply-To: <20180819153526.7ruovrpmdsimkmfj@ler-imac.local> From: Joe Maloney Date: Sun, 19 Aug 2018 11:54:51 -0400 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:55:04 -0000 I ran into this as well months ago. To workaround it I extracted userboot.so for the VM's, and launched bhyve with the alternate userboot.so. You can use a flag as described in the manpage to start userboot.so from an alternate location. https://www.freebsd.org/cgi/man.cgi?query=bhyveload&sektion=8 Also support was recently added for vm-bhyve to specify alternate userboot.so location for one that is compatible with 4th. You just need to extract that somewhere onto the host, and specify it to load when starting the VM. https://github.com/churchers/vm-bhyve/blob/d4532f6da3e155a4430acbb9138e59c0d5abfc39/sample-templates/config.sample Alternatively you could just use UEFI, or UEFI-CSM firmware. Joe Maloney QA Manager / iXsystems Enterprise Storage & Servers Driven By Open Source On Sun, Aug 19, 2018 at 11:38 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? > > > > > > Warner > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org" > > -- > Larry Rosenman https://people.FreeBSD.org/~ler/ > Phone: +1 214-642-9640 E-Mail: ler@FreeBSD.org > US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106 >