From owner-freebsd-virtualization@freebsd.org Sun Jan 1 14:26:40 2017 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 9BC31C9A079 for ; Sun, 1 Jan 2017 14:26:40 +0000 (UTC) (envelope-from vincent@up4.com) Received: from smtp117.ord1c.emailsrvr.com (smtp117.ord1c.emailsrvr.com [108.166.43.117]) (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 61D5D1B31 for ; Sun, 1 Jan 2017 14:26:39 +0000 (UTC) (envelope-from vincent@up4.com) Received: from smtp7.relay.ord1c.emailsrvr.com (localhost [127.0.0.1]) by smtp7.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id E16E8A00B2 for ; Sun, 1 Jan 2017 09:18:31 -0500 (EST) X-Auth-ID: vincent@up4.com Received: by smtp7.relay.ord1c.emailsrvr.com (Authenticated sender: vincent-AT-up4.com) with ESMTPSA id BE483A0083 for ; Sun, 1 Jan 2017 09:18:31 -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); Sun, 01 Jan 2017 09:18:31 -0500 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Arch Linux UEFI Bhyve Setup From: Vincent Olivier In-Reply-To: Date: Sun, 1 Jan 2017 09:18:31 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <680F62F7-9FD7-4FB3-A60A-DED3C784BE7F@up4.com> References: To: freebsd-virtualization@freebsd.org 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: Sun, 01 Jan 2017 14:26:40 -0000 Happy 2017 all, I guess my resolution for 2017 is more clarity. So what I mean to know with this experiment is simply this: can UEFI be = used with a serial console (i.e.: without a graphic console), if so, is = it preferable over GRUB for Linux distros that support UEFI? Until I am positive about using UEFI over serial console, I will stick = to GRUB but if someone coule elaborate on this, I would appreciate it = greatly! Thanks, Vincent > On Dec 31, 2016, at 9:26 AM, Vincent Olivier wrote: >=20 > Hi, >=20 > A new thread for this same target setup: = https://twitter.com/MUP4/status/814595352112283649 >=20 > 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. >=20 > 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. >=20 > Here is the grub-bhyve command sequence that I used for the Arch Linux = installer on the the ALTNET virtual machine: >=20 > zfs create -V4G -o volmode=3Ddev bhyve/altnet >=20 > grub-bhyve -m /bhyve/altnet/setup/device.map -r cd0 -M 512M altnet < = /bhyve/altnet/setup/grub.cfg >=20 > 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 >=20 > Here is its grub.cfg file: >=20 > linux (cd0)/arch/boot/x86_64/vmlinuz archisobasedir=3Darch = archisolabel=3DARCH_201612 ro > initrd (cd0)/arch/boot/x86_64/archiso.img > boot >=20 > Here is its device.map file: >=20 > (cd0) /bhyve/archlinux-2016.12.01-dual.iso > (hd0) /dev/zvol/bhyve/altnet >=20 > Here is my adaptation of the above for the UNIFI UEFI virtual machine, = just for the Arch Linux installer: >=20 > zfs create -V2G -o volmode=3Ddev bhyve/unifi >=20 > 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 >=20 > But when I run this, I get this: >=20 > 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 >=20 > 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. >=20 > Is there hope for me? >=20 > Happy new year! >=20 > Vincent