From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 9 19:55:56 2010 Return-Path: Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 361F810657FC for ; Thu, 9 Sep 2010 19:55:56 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id D64518FC17 for ; Thu, 9 Sep 2010 19:55:55 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 2BFC245E98; Thu, 9 Sep 2010 21:29:33 +0200 (CEST) Received: from localhost (chello089077043238.chello.pl [89.77.43.238]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 22D8845E13 for ; Thu, 9 Sep 2010 21:29:28 +0200 (CEST) Date: Thu, 9 Sep 2010 21:29:15 +0200 From: Pawel Jakub Dawidek To: freebsd-emulation@FreeBSD.org Message-ID: <20100909192915.GA2065@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Subject: VirtualBox: BIOS reports invalid number of disks. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Sep 2010 19:55:56 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. I wanted to test booting off of ZFS/RAIDZ in VirtualBox, but unfortunately it didn't work. After looking a bit deeper it looks like VirtualBox's BIOS reports that there is only one disk present. If I choose to ignore number of disks reportd by BIOS, it seems to work fine. I manage to make it work with the following patch, which just assumes there are more disks and stops looking for them one first failure: http://people.freebsd.org/~pjd/patches/bios_numdrives.patch This seems to be a bug in VirtualBox, but I'm more familiar with FreeBSD code... It also make me to think if VirtualBox's BIOS is the only one broken out there. Maybe patch like this is useful in general? Before ZFS we never needed more than one disk to boot, so maybe we didn't notice more broken BIOSes? --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkyJNYoACgkQForvXbEpPzRfPQCeKAeIC83ZnCrmm/PU4+egh2Ql 0CoAn1pMIXAAO1ZxH6LVlrPbQ0zJWVGv =2XD7 -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--