From owner-freebsd-virtualization@freebsd.org Tue Apr 26 09:24:37 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 7AD27AAC96B for ; Tue, 26 Apr 2016 09:24:37 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (m.saper.info [IPv6:2a01:4f8:a0:7383::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "m.saper.info", Issuer "Marcin Cieslak 2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F159C18E0 for ; Tue, 26 Apr 2016 09:24:36 +0000 (UTC) (envelope-from saper@saper.info) Received: from m.saper.info (saper@m.saper.info [IPv6:2a01:4f8:a0:7383::]) by m.saper.info (8.15.2/8.15.2) with ESMTPS id u3Q9OVgb083992 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 Apr 2016 09:24:31 GMT (envelope-from saper@saper.info) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=saper.info; s=Sep2014; t=1461662671; bh=6A5Dir/KK2MEKMpAaaO4OVt7Smz1aRKcNUOXN9d7FNo=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=I5BHMMQ1PQWAwwcyKh5jbqlgA55DidjQm4K8md2zDnHZ6O1X5kogRiorod6+4pB2n FKiw4E/CC2HEQT/M8aSjqUKuPzOPunNd2HbCRCW6licTrlq6qWx+ZjrdmjxJSL3qcA S+dmjDpLVeQ6OQ4F8FrcvmK7ryt9oGNrNrhh/UrU= Received: from localhost (saper@localhost) by m.saper.info (8.15.2/8.15.2/Submit) with ESMTP id u3Q9OUjP083989; Tue, 26 Apr 2016 09:24:30 GMT (envelope-from saper@saper.info) X-Authentication-Warning: m.saper.info: saper owned process doing -bs Date: Tue, 26 Apr 2016 09:24:30 +0000 From: Marcin Cieslak To: =?ISO-8859-15?Q?Roger_Pau_Monn=E9?= cc: freebsd-virtualization@freebsd.org Subject: Booting Windows/UEFI (was Re: Booting r298488 as Xen Dom0 may break ZFS pool?) In-Reply-To: Message-ID: References: <20160425084714.64ejioyqgquwu4gw@mac> <20160426071151.ctzdaehgfhzij6q3@mac> <20160426074302.4i3rv7wd5ogg7ful@mac> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.21 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: Tue, 26 Apr 2016 09:24:37 -0000 On Tue, 26 Apr 2016, Marcin Cieslak wrote: > On Tue, 26 Apr 2016, Roger Pau Monné wrote: > > > You will have to boot it using OVMF, which is not compiled with Xen by > > default. I will try to add an OVMF package (like the SeaBIOS one that we > > already have), and wire it into the xen-tools package. > > > > If you want to try it yourself, you can add "--enable-ovmf" to the xen-tools > > package configure and see what breaks ;). > > Thanks, lots of bad Linux-only scripts (#!/bin/bash and the like), will try! I got lazy and I have downloaded https://sourceforge.net/projects/edk2/files/OVMF/OVMF-X64-r15214.zip/download recompiled xen-tools by adding to xen-tools/Makefile CONFIGURE_ARGS+= --enable-ovmf CONFIGURE_ARGS+= --with-system-ovmf=/root/xen/OVMF.fd and worked pretty much out of the box. This is Windows Server 2016 Technical Preview 2016, with GPL PV drivers added to get networking. My config: builder = "hvm" memory = 4096 vcpus = 2 name = "Windows" disk = [ '/dev/zvol/zroot/windows0,raw,hda,w','/root/fat.bin,raw,hdb,w' ] boot = "c" # Boot to hard disk image vnc = 2 vnclisten = "0.0.0.0" usbdevice = 'tablet' on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' acpi = 1 bios = 'ovmf' vif = [ 'bridge=bridge0' ] /root/fat.bin is a little partitioned "hard drive" with FAT16 partition used to provide GPL drivers. Marcin