From owner-freebsd-stable@freebsd.org Thu Oct 27 18:06:01 2016 Return-Path: Delivered-To: freebsd-stable@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 66E14C24243 for ; Thu, 27 Oct 2016 18:06:01 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 08CBE6A2 for ; Thu, 27 Oct 2016 18:06:00 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (mh0.gentlemail.de [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id u9RI5vxf089111 for ; Thu, 27 Oct 2016 20:05:57 +0200 (CEST) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id 73D30810; Thu, 27 Oct 2016 20:05:57 +0200 (CEST) Message-ID: <58124200.5080306@omnilan.de> Date: Thu, 27 Oct 2016 20:05:52 +0200 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Unexpected ahci-hd bytes when running in bhyve(8) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Thu, 27 Oct 2016 20:05:57 +0200 (CEST) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2016 18:06:01 -0000 Hello, I wanted to use a "roaming" ssd with byhve/vmm, which is the home of a GPT based FreeBSD setup. I've been using this for years with ESXi and bare-metal-hosts, and wanted to try out bhyve. Unfortunately this doesn't work the way I'm used to. Booting of ufs:/dev/gpt/myROOT fails with error 19, loader does only see a diskid/BHYVEDISK, not the GPT partitions. I guess ahci-hd isn't 1:1 mapping blocks, neither does virtio-blk, since it shows exactly the same result, which is a bit strange to me: When I boot a Live-CD in vmm with the physical SSD ahci-hd attached, the first 8kByte of /dev/ada0 is 0x0. The same test on the host ('dd if=/dev/ada4 count=16 | hd') shows me PMBR and GPT content, which I also expected to see in bhyve… What am I missing? Here's my switches: bhyve -u -A -H -P \ -S \ -s 0,hostbridge \ -s 6,passthru,6/0/0 \ -s 31,lpc \ -s 1,ahci-cd,releases/ISO-IMAGES/11.0/FreeBSD-11.0-RELEASE-amd64-disc1.iso \ -s 7,ahci-hd,/dev/ada4 \ -l com1,/dev/nmdm0A \ -m 3G -c 4 preed /dev/ada4 is the "roaming" (hotpuggable) SSD on the host. Thanks for any hint, -harry