From owner-freebsd-virtualization@freebsd.org Thu Nov 5 17:37:24 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 C954BA276B5 for ; Thu, 5 Nov 2015 17:37:24 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (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 4DD631E6C; Thu, 5 Nov 2015 17:37:24 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: by lbbkw15 with SMTP id kw15so34853498lbb.0; Thu, 05 Nov 2015 09:37:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ZhrtWQt5QLZ6u5etvtRJHKvsU5gV1/YT7Qevv42tyHE=; b=tpAGNkr4tpRdEWwoQrLFaJ7w/Erz2JBL0b+6NYE1AcUrzVXxQ6edUfco3daxYvKVX4 I0vjaHwUYIaVe2gNJzQw2DuuA82MP0heS36dXYTMbxJBASjFKu2tezPaJRz906qjatXt 7ZHHdjRATrEkRJrqh1Js42hrjhHmQms6fERNQm7Xy9n2wuAoYJ+Ud5KrBNK1zrkFazPm E7nxvtIJsQBa61mRXDHP5olM4AzhnqzLFB1Ofo1NPlBtYRKRE4jNIKqRXvC79jJKgsuP lANtBXg5SKdPT6rcPbed+kI2D7B6ZG0/KNyRvvD/ZytZegqlHftmADe24fOtIUuo1EjX 9YGg== X-Received: by 10.112.35.196 with SMTP id k4mr4493291lbj.3.1446745042279; Thu, 05 Nov 2015 09:37:22 -0800 (PST) Received: from kloomba.lvv.mirantis.net ([213.147.219.128]) by smtp.gmail.com with ESMTPSA id b199sm677983lfe.28.2015.11.05.09.37.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2015 09:37:21 -0800 (PST) Sender: Roman Bogorodskiy Date: Thu, 5 Nov 2015 20:37:18 +0300 From: Roman Bogorodskiy To: Peter Grehan Cc: "freebsd-virtualization@freebsd.org" Subject: Re: Illumos support in bhyve Message-ID: <20151105173717.GB2025@kloomba.lvv.mirantis.net> References: <56118B2B.2040101@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline In-Reply-To: <56118B2B.2040101@freebsd.org> User-Agent: Mutt/1.5.24 (2015-08-30) 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: Thu, 05 Nov 2015 17:37:25 -0000 --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Peter Grehan wrote: > To follow up on the previous post, with the UEFI support introduced in=20 > r288524, bhyve can now boot Illumos since there is a working BIOS. >=20 > This has been tested with SmartOS and also OpenIndiana and OmniOS,=20 > though I've not been able to work out how to enable serial console=20 > support for the latter two post-install. >=20 > The best bet is the most recent SmartOS: > =20 > https://us-east.manta.joyent.com/Joyent_Dev/public/SmartOS/smartos-latest= =2Eiso >=20 > Grab the UEFI build with CSM/BIOS enabled: > http://people.freebsd.org/~grehan/bhyve_uefi/BHYVE_UEFI_CSM_20151002= =2Efd >=20 > An example command line is: >=20 > bhyve \ > -c 2 \ > -s 3,ahci-cd,/path/to/smartos-20151001T070028Z.iso \ > -s 4,ahci-hd,/path/to/smartos.img \ > -s 5,virtio-net,tap0 \ > -s 31,lpc \ > -l com1,/dev/nmdm0A \ > -l com2,/dev/nmdm1A \ > -l bootrom,/path/to/BHYVE_UEFI_CSM_20151002.fd \ > -m 2G -H smartos >=20 > UEFI/CSM debug output is on com1, grub1 is on com2, install is on com1.= =20 > On a reboot after install, login sessions are enabled for both com1 and= =20 > com2. >=20 > Many thanks to Andriy Gapon for helping out with debug, and Ben Perrault= =20 > for giving it a good shakeout. Hi Peter, I tried this instruction and I was able to get into smartos installation. I choose all the default options there, it reported successful installation. Then I dropped 'ahci-cd' part, but I cannot get smartos boot. I can see on nmdm0B the following: Legacy INT19 Boot... And that's all. And there's nothing on nmdm1B. My command is: bhyve -c 2 -s 4,ahci-hd,/home/novel/smartos.img -s 5,virtio-net,tap0 -s 31,lpc -l com1,/dev/nmdm0A -l com2,/dev/nmdm1A -l bootrom,/home/novel/uefi/BHYVE_UEFI_CSM_20151002.fd -m 2G -H smartos ^T reports: load: 1.17 cmd: bhyve 4821 [running] 2461.38r 347.75u 2109.83s 100% 7580k And, by the way, is it possible to run FreeBSD using UEFI? I encountered problems with that as well: https://lists.freebsd.org/pipermail/freebsd-virtualization/2015-November/00= 3904.html Any hints how to debug this are appreciated. Thanks, Roman Bogorodskiy --s/l3CgOIzMHHjg/5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJWO5PNAAoJEMltX/4IwiJqdv4IAJEp1BmuUev/GwZuFBtsknpo dtucNols2Di+H7LfSqhqNUnxedEDIuiMbn+fFsK+aZlUM6oILsNpD+6nnJerriM4 1BUOLs39cv07vkXykCp/SxNc8N0ExcysXJBXf8olyQ5iOoTaNZvYBh3PzBuzpTDA K9pOwCCGjbuXyvQ19Yd+aopW9KGthntE485BdTeBjOQ5TCjuCNMAIYNJ1VAcqS1P wspcHVIwiEWI7066xe+iEbWsGlnZ4ut9fgZ7g4Ageasjo8YoZ/l51BzqCMbj193J iKtpTB20b2okBNKyST69CzhpueaEtnNWGm5M9m2qVA7EXwi5YBMpGctv3gHceOg= =FstA -----END PGP SIGNATURE----- --s/l3CgOIzMHHjg/5--