From owner-freebsd-virtualization@freebsd.org Mon Nov 2 17:27:45 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F296A24105 for ; Mon, 2 Nov 2015 17:27:45 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: from mail-lb0-x243.google.com (mail-lb0-x243.google.com [IPv6:2a00:1450:4010:c04::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3BD75110E; Mon, 2 Nov 2015 17:27:45 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: by lbvc6 with SMTP id c6so8790567lbv.2; Mon, 02 Nov 2015 09:27:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=pPd46h0mPLptBjQOUFpQRzSUQ8QidPUIOeGiG9KA1sE=; b=XG0hFmPwXykMvEDmQChfFtO1dalW8wMoIgI0PW4JdPrVNE5CTs6W3ZAH66QuJw+PWn NN2ekCEVHpDxHOoM3WSE4W9hoIhprf937YKXMnbDTpAuNMW7sxbBMbwKI8A6VUvo29K/ rD1cy8DwSHvwAK3Mtl6yRmU5TxoRFDBsJAh3k1WOWtOPAofnJaMyUbydp2WcI/L9SDHy +4wSpu3aUHo295Owqb+GCUrtNa8M3wZXN52reB/YjQsRUhUrEhUdNriYfrqwJH/ga1WH rGGHu74Wpvw3fNycQjHiTAeFuajtefZXySTMjFjvPJsEJghktI+/4veAk2AkaQPV2Oim o82g== MIME-Version: 1.0 X-Received: by 10.112.87.69 with SMTP id v5mr10705489lbz.70.1446485263230; Mon, 02 Nov 2015 09:27:43 -0800 (PST) Received: by 10.25.213.2 with HTTP; Mon, 2 Nov 2015 09:27:43 -0800 (PST) In-Reply-To: <20151102171356.GB18899@kloomba.lvv.mirantis.net> References: <20151102171356.GB18899@kloomba.lvv.mirantis.net> Date: Mon, 2 Nov 2015 10:27:43 -0700 Message-ID: Subject: Re: bhyve -l bootrom problem From: Trent Thompson To: Roman Bogorodskiy Cc: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2015 17:27:45 -0000 According to the bhyve/Windows wiki: https://wiki.freebsd.org/bhyve/Windows The lpc slot needs to be in slot 31, and the block devices bust be in 3, 4, 5, and 6. I have had luck* booting into the Debian install environment using this method, as long as you pass "console=ttyS0" to grub at boot time. I believe you must do the same as well on FreeBSD, with adding the ability to use a console in /boot/loader.conf *I have installed Debian VMs utilizing UEFI, however I have not had success after destroying the VM. They fail to boot and drop you to that fancy EFI shell. On Mon, Nov 2, 2015 at 10:13 AM, Roman Bogorodskiy wrote: > Hi, > > I'm facing a strange problem with -l bootrom. > > I try to boot a VM this way: > > sudo /usr/sbin/bhyve -l bootrom,/home/novel/uefi/BHYVE_UEFI_20151002.fd > -c 2 -m 214 -A -I -u -H -P -s 0:0,hostbridge -s > 2:0,virtio-net,tap0,mac=52:54:00:56:9a:77 -s > 3:0,ahci-hd,/home/novel/FreeBSD-11.0-CURRENT-amd64.raw -s 1,lpc -l > com1,/dev/nmdm0A testvm > > BHYVE_UEFI_20151002.fd is downloaded from [1]. > FreeBSD-11.0-CURRENT-amd64.raw is downloaded from [2]. > > VMs fail to boot with 'Boot Failed. EFI Hard Drive' and brings into UEFI > shell. > > Changing ahci-hd to virtio-blk changes error message to: > > 'Boot Failed. EFI Misc Device'. > > Dropping 'hostbridge' and 'virtio-net' doesn't seem to change anything. > > Also, before trying FreeBSD-11.0-CURRENT-amd64.raw I tried my old images > I used with bhyveload and they fail in the same way, though they're > still booting using bhyveload. > > I'm running -CURRENT updated last weekend on Intel i5-2310. > > What could be wrong with this? > > 1: http://people.freebsd.org/~grehan/bhyve_uefi/BHYVE_UEFI_20151002.fd > 2: > > http://ftp.freebsd.org/pub/FreeBSD/snapshots/VM-IMAGES/11.0-CURRENT/amd64/Latest/FreeBSD-11.0-CURRENT-amd64.raw.xz > > Roman Bogorodskiy >