From owner-freebsd-virtualization@freebsd.org Tue Oct 13 12:42:11 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 1DE97A12D52 for ; Tue, 13 Oct 2015 12:42:11 +0000 (UTC) (envelope-from tycho.nightingale@pluribusnetworks.com) Received: from mail-qg0-x22d.google.com (mail-qg0-x22d.google.com [IPv6:2607:f8b0:400d:c04::22d]) (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 CF340D92 for ; Tue, 13 Oct 2015 12:42:10 +0000 (UTC) (envelope-from tycho.nightingale@pluribusnetworks.com) Received: by qgt47 with SMTP id 47so12482284qgt.2 for ; Tue, 13 Oct 2015 05:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pluribusnetworks.com; s=google; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=6kyRTe8yqXvrkEevYf51V3kypvweyvypXti6Rf0DtSw=; b=WQcPtqDS4ai2mS/Z2kj+jWNwITOCmXtHlgNK2lKXhs1HHiMvt5IycqblvDZJYDX6yI MgnNzT4AW6yH3qXi91UPTaGNTXLwRNguRFJsxUyxdb0gppgcjlCrjDBcw3e0TKNeFeuf uQUXE9PJlYB3cRRtkgMeW/6N4V842ts/keCr0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=6kyRTe8yqXvrkEevYf51V3kypvweyvypXti6Rf0DtSw=; b=avN4+Zzd7kE3yL5ai45b15R69eDO2P7o1v1LEkhyBu5o5euGOhsekIARbP8SvjtcqX jSzqVcH1V9iPbLwd/q5aqPn/LI+9C3M/6NUJI2oyPqkf/tgk9jT4lB7TPeDKdrTg5mvw 6+YnLc2FBhbRIF8D83H+KyjzK4OCcD48wVAj71E9/R9yNtdEDVzZtG35wi+aMplT5t4u hxUZkSwqE2ALXhXeCQ4++Kh15XoiKvQJ2tmNRyv6pgt+M4wt0HY0HXKgAuOIuH/tkMr5 V5DmiDYxu3jF+AeHZnaw1SVncqcdNOoAfNFyQkNpz/2MaOMiqqC3aRjvK3GpWQMs0FsS T/6g== X-Gm-Message-State: ALoCoQnnUB1jFK7SPJtBM1e3Lfap5SVVKqSNP/J4dcMQHZlCrTCUgdDfRtMvcGbkiQgzoHvI6oGX X-Received: by 10.140.109.74 with SMTP id k68mr40358256qgf.77.1444740129653; Tue, 13 Oct 2015 05:42:09 -0700 (PDT) Received: from [10.0.1.15] (209-6-121-211.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com. [209.6.121.211]) by smtp.gmail.com with ESMTPSA id o39sm1072574qgd.48.2015.10.13.05.42.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Oct 2015 05:42:09 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Illumos boot From: Tycho Nightingale In-Reply-To: Date: Tue, 13 Oct 2015 08:42:07 -0400 Cc: "freebsd-virtualization@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <17936712-FB88-4017-8C0D-BEC4926D698E@pluribusnetworks.com> References: To: Matt Churchyard X-Mailer: Apple Mail (2.1878.6) 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: Tue, 13 Oct 2015 12:42:11 -0000 Hi, Please see inline. On Oct 13, 2015, at 7:17 AM, Matt Churchyard via freebsd-virtualization = wrote: > In my quest to continue expanding guest support in my vm-bhyve utility = (See https://github.com/churchers/vm-bhyve :) ), I've found the Windows = support pretty solid once I got clear on the slot requirements. I'm now = trying an OS that requires CSM (Illumos) but unfortunately I'm currently = struggling to get it to boot up correctly. >=20 > Here's an example of the command I'm generating at the moment (This is = running on an Intel Core-i3): >=20 > bhyve -c 2 -m 2G -s 0,hostbridge -s 31,lpc \ > -s 3,ahci-cd,/data/vm/.iso/smartos-latest.iso \ > -s 4:0,ahci-hd,/data/vm/smartos/disk0.img \ > -s 5:0,virtio-net,tap0 \ > -l com1,stdio -l com2,/dev/nmdm2A \ > -H -l bootrom,/data/vm/.config/BHYVE_UEFI_CSM.fd \ > smartos >=20 > I have com1 set to stdio so I can easily watch the output as it runs. > It tends to get as far as "Legacy INT19 Boot...", then fall over. > Depending on whether I put the network interface directly in the slot = after the HDD, I seem to get different errors - >=20 > slot 3 - cd > slot 4 - hdd > slot 5 - virtio-net >=20 > panic[cpu0]/thread=3Dffffff01457cdb40: BAD TRAP: type=3De (#pf Page = fault) rp=3Dffffff0004a69a60 addr=3D40 occurred in module "genunix" due = to a NULL pointer dereference >=20 > slot 3 - cd > slot 4 - hdd > slot 7 - virtio-net >=20 > panic[cpu1]/thread=3Dffffff0004002c40: BAD TRAP: type=3Dd (#gp General = protection) rp=3Dffffff0004002740 addr=3D0 >=20 > On com2 I see the boot menu, then one and a half lines of dots. The = second line of dots stops about 2/3 of the way across. Have you tried booting illumos in verbose mode =97 edit the grub command = line and provide =91-v=92. That may give you a better backtrace than a = program counter. > Interestingly, my code normally puts the CD after the HDD, which = Windows seems happy with as long as the slots are consecutive. > In SmartOS this gives me a different error: >=20 > slot 3 - hdd > slot 4 - cd > slot 5 - virtio-net >=20 > PlatformBdsBootFail > Boot Failed. Harddisk 1 > !!!! Find PE image = /home/grehan/proj/stock_edk2/Build/BhyveX64/DEBUG_GCC48/X64/UefiCpuPkg/Cpu= Dxe/CpuDxe/DEBUG/CpuDxe.dll (ImageBase=3D000000007F8DC000, = EntryPoint=3D000000007F8DC2AF) !!!! This error is from the UEFI code. It implies that the CSM boot failed = or was never invoked. If the HDD isn=92t bootable, yet the CD is, that = is the most likely source as the CSM assumes the first block device it = encounters is the desired boot source. Tycho=