From owner-freebsd-virtualization@freebsd.org Fri May 27 10:44:11 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 08DE3B4BEFE for ; Fri, 27 May 2016 10:44:11 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.0x20.net", Issuer "mail.0x20.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 85A6A1474; Fri, 27 May 2016 10:44:09 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id B1D226E0081; Fri, 27 May 2016 12:44:06 +0200 (CEST) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id u4RAi66X013880; Fri, 27 May 2016 12:44:06 +0200 (CEST) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id u4RAi6UF012785; Fri, 27 May 2016 12:44:06 +0200 (CEST) (envelope-from lars) Date: Fri, 27 May 2016 12:44:06 +0200 From: Lars Engels To: Peter Grehan Cc: "freebsd-virtualization@freebsd.org" Subject: Re: bhyve graphics support Message-ID: <20160527104405.GA15808@e-new.0x20.net> References: <442c6d8f-2b64-c88b-382a-cf73eb6f7404@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HSVPcR81XVhxeM7P" Content-Disposition: inline In-Reply-To: <442c6d8f-2b64-c88b-382a-cf73eb6f7404@freebsd.org> X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p23 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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: Fri, 27 May 2016 10:44:11 -0000 --HSVPcR81XVhxeM7P Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 27, 2016 at 01:33:42AM -0700, Peter Grehan wrote: > As of r300829, support for graphic output has been checked into the=20 > projects/bhyve_graphics branch. This is just the usr.sbin/bhyve=20 > executable, so is quick and easy to build from source. >=20 > Assuming a reasonably current source tree is in /usr/src, > svn co http://svn.freebsd.org/base/projects/bhyve_graphics path/to/dir > cd path/to/dir > make BHYVE_SYSDIR=3D/usr/src -m /usr/src/share/mk >=20 > UEFI GOP support has been checked into the freebsd/edk2 repo: > =20 > https://github.com/freebsd/uefi-edk2/commit/a36132939e259df79b16699c03c6f= 1d63c7454b9 >=20 > A pre-built bhyve/UEFI binary image with GOP support is available at: > https://people.freebsd.org/~grehan/bhyve_uefi/BHYVE_UEFI_20160526.fd >=20 > The new bhyve executable supports some new devices. An example of using= =20 > them for Windows10 is: >=20 > bhyve \ > -c 2 \ > -s 3,ahci-cd,/images/win10_install.iso \ > -s 4,ahci-hd,/images/win10.img \ > -s 11,fbuf,tcp=3D0.0.0.0:5900,w=3D1600,h=3D900,wait \ > -s 20,xhci,tablet \ > -s 31,lpc \ > -l bootrom,/images/BHYVE_UEFI_20160526.fd \ > -m 2G -H -w \ > windows Thanks for your work on this! With Ubuntu 16.04 I was not successful so far. After compiling bhyve and downloading the UEFI image I start Ubuntu like this: grub-bhyve -m device.map -r hd0,msdos1 -M 4G ubuntu ~lars/dev/bhyve_graphics/bhyve \ -s 0:0,hostbridge \ -s 1:0,lpc \ -s 2:0,virtio-net,tap1 \ -s 3:0,virtio-blk,./ubuntu-hd.img \ -s 11,fbuf,tcp=3D0.0.0.0:5900,w=3D1280,h=3D720,wait \ -s 20,xhci,tablet \ -l bootrom,/home/lars/dev/bhyve_graphics/BHYVE_UEFI_20160526.fd \ -c 4 \ -m 4G \ ubuntu Then I connect with vncviewer but only see this message: "Boot failed. EFI misc device" Is there anything I can try? --HSVPcR81XVhxeM7P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJXSCT1XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1t234IAIF+0AFoirHTuHs7kWUSiaLc uZbJtzMbC9zDeHPSgcH+OoyZi5kp8/lkD/0t6JDtIWmqSx84z8Ge64UWYVImmC+w Kme88bA6h3FngudnnGy4SX0pDawZwhM/tPgWeK3FKnRoiBSBZaNcvqiQtxg2KFVX OGQCHiziAihUu9IPFcOwNWj/xsAwbOtTFSCURjJGT3pOwNi4WXYf2Aq/bScaV6Jp Vv082vHYbOF4yNtOUQO6JfILIlNdemZ/MmDajlXZFvOzaSJKmjl+kLma1YGK1v7H N0Dkk5n2bf+S7AMgZJ1HgIXJ6JMBO9KH0OnTRSIzjp4xQ4A4A+31JgujwalW+6Q= =67SW -----END PGP SIGNATURE----- --HSVPcR81XVhxeM7P--