From owner-freebsd-virtualization@freebsd.org Sat Dec 31 14:36:41 2016 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 C4995C998C6 for ; Sat, 31 Dec 2016 14:36:41 +0000 (UTC) (envelope-from vincent@up4.com) Received: from smtp125.iad3a.emailsrvr.com (smtp125.iad3a.emailsrvr.com [173.203.187.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8583313B6 for ; Sat, 31 Dec 2016 14:36:40 +0000 (UTC) (envelope-from vincent@up4.com) Received: from smtp32.relay.iad3a.emailsrvr.com (localhost [127.0.0.1]) by smtp32.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id E3F4355D0 for ; Sat, 31 Dec 2016 09:26:42 -0500 (EST) X-Auth-ID: vincent@up4.com Received: by smtp32.relay.iad3a.emailsrvr.com (Authenticated sender: vincent-AT-up4.com) with ESMTPSA id BD23155B6 for ; Sat, 31 Dec 2016 09:26:42 -0500 (EST) X-Sender-Id: vincent@up4.com Received: from [192.168.0.3] (216-46-32-34.telebecinternet.net [216.46.32.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:465 (trex/5.7.12); Sat, 31 Dec 2016 09:26:42 -0500 From: Vincent Olivier Content-Type: multipart/signed; boundary="Apple-Mail=_93D70132-4712-4F7A-A72D-113A57D5FD65"; protocol="application/pgp-signature"; micalg=pgp-sha512 Subject: Arch Linux UEFI Bhyve Setup Message-Id: Date: Sat, 31 Dec 2016 09:26:41 -0500 To: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 31 Dec 2016 14:36:41 -0000 --Apple-Mail=_93D70132-4712-4F7A-A72D-113A57D5FD65 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, A new thread for this same target setup: = https://twitter.com/MUP4/status/814595352112283649 Please note that the tap interface naming doesn=E2=80=99t follow the = nomenclature in the diagram as I am just testing isolated aspect of the = setup for now. The =C2=AB Cinq =C2=BB FreeBSD 11 machine already the ALTNET non-UEFI = (grub-bhyve) machine running Arch Linux. I wanted to try UEFI with the = same Arch Linux distro but it doesn=E2=80=99t seem to work. Here is the grub-bhyve command sequence that I used for the Arch Linux = installer on the the ALTNET virtual machine: zfs create -V4G -o volmode=3Ddev bhyve/altnet grub-bhyve -m /bhyve/altnet/setup/device.map -r cd0 -M 512M altnet < = /bhyve/altnet/setup/grub.cfg bhyve -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 = -s3:0,virtio-blk,/dev/zvol/bhyve/altnet -s = 4:0,ahci-cd,/bhyve/archlinux-2016.12.01-dual.iso -l com1,stdio -c 1 -m = 512M altnet Here is its grub.cfg file: linux (cd0)/arch/boot/x86_64/vmlinuz archisobasedir=3Darch = archisolabel=3DARCH_201612 ro initrd (cd0)/arch/boot/x86_64/archiso.img boot Here is its device.map file: (cd0) /bhyve/archlinux-2016.12.01-dual.iso (hd0) /dev/zvol/bhyve/altnet Here is my adaptation of the above for the UNIFI UEFI virtual machine, = just for the Arch Linux installer: zfs create -V2G -o volmode=3Ddev bhyve/unifi bhyve -c 1 -m 512M -A -H -P \ -s 0:0,hostbridge \ -s 1:0,lpc \ -s 2:0,virtio-net,tap1 \ -s 3:0,virtio-blk,/dev/zvol/bhyve/unifi \ -s 4:0,ahci-cd,/bhyve/archlinux-2016.12.01-dual.iso \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -l com1,stdio \ unifi But when I run this, I get this: Arch Linux archiso x86_64 UEFI CD UEFI Shell x86_64 v1 UEFI Shell x86_64 v2 EFI Default Loader Reboot Into Firmware Interface Boot in 1 sec. rdmsr to register 0x34 on vcpu 0 Unhandled ps2 mouse command 0xe1 Unhandled ps2 mouse command 0x0a Unhandled ps2 mouse command 0x01 Unhandled ps2 mouse command 0x41 And then it stalls. I waited max 2 minutes and then I did a "bhyvectl = --destroy --vm=3Dunifi=E2=80=9D in another session. I tried different = bhyve flags (-w, etc.) to no avail. Is there hope for me? Happy new year! Vincent --Apple-Mail=_93D70132-4712-4F7A-A72D-113A57D5FD65 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJYZ8AiAAoJEOggPckf4s14XJcP/RmThe5c0byhG6zX/E4lKKnc bvhSCtjIhF2d77m8y9zBoEVvhUR+iEAclSTTUj+KoDD2m1HjjunFoz1XHLj5W5Cr K2LJwc9ia1HdLy6hxajCJWX2rVwtbPBk48Z3AplqH9TTv7Qy7/tzSsBa6X0XZHnM /4jOdJ8XLqyxg9Z+Rs6bkpTRY1/AmQb+o2Rm6tdv48p8QxmUz5y/5o2EXCn+W6v/ 3/36oopS8dBO9qi5A4Wm3yhjBFDczmkJU9mK3WqRQihM9lPtKq8mkSWuI+E94G5y 1BVpjMPtmvap0aw9ociC1M+c2T5mTLN27gmmqV4NX4eqN9jJdJVV46pkUuHlHG9V gucyyo1TCcELqfxIcFizrV3VDrzWtTyVJuV5ZqnKZS+GJ6ldjqGa4xwsd/U0U3px I9W7hcOFm3p4PGFCEFX2IrUrcUER5YQ1IisLGvOBuH2GxBeb6D4wDkaWn6Pp+KWY MEZsynQkfjcz4YAC+Bn2ooGVtQhtoDX11PsYh4bVyczkfxvPhjB+tIRabxlgErbf O8tNjNmDsPqWFJ1K7vOebAZjfpabAuJWcqgIdYeTYfenf8/0rm2GJO6fz9Jrxj9v D/GfY9QkFCF32MDahgeKMYQyeXjszmKly6gIVNmX7mM1Mz58TCL4Y3i8ldt64/C5 r+Z6gQwdyVd02LSo+E2v =JdWG -----END PGP SIGNATURE----- --Apple-Mail=_93D70132-4712-4F7A-A72D-113A57D5FD65--