From owner-freebsd-questions@freebsd.org Thu Jul 5 16:39:14 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C4F3103B9A8 for ; Thu, 5 Jul 2018 16:39:14 +0000 (UTC) (envelope-from andreas@drewke.net) Received: from mailrelay2-3.pub.mailoutpod1-cph3.one.com (mailrelay2-3.pub.mailoutpod1-cph3.one.com [46.30.212.11]) (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 DC6F48730E for ; Thu, 5 Jul 2018 16:39:13 +0000 (UTC) (envelope-from andreas@drewke.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drewke.net; s=20140924; h=from:subject:date:message-id:to:mime-version:content-type; bh=61dMg3W5BTEQGtyXg4x+imnkqztr+Ny+v0W1a5eGkHI=; b=frIorSXBeMJCFkZAKqNNNF+m69Fgvcf7zGiHQlbZa/T65NvRW9C3aA8Mhvf4QjxHQG6Mv07FvGXcY EVhzFoQBgShqpmf3pFHJ1kGxLs8cMX/wmuJgaXFNmXq+FhYpLhAEIebzwit/5cBBoXIikTU+jENZY4 Fxv3tWBV+9oOsjes= X-HalOne-Cookie: 613f46ecc1103707847e2fbf9e1e7fbee7d4547b X-HalOne-ID: afa51166-806f-11e8-a8a4-d0431ea8a290 Received: from [192.168.178.86] (unknown [87.123.150.4]) by mailrelay2.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id afa51166-806f-11e8-a8a4-d0431ea8a290; Thu, 05 Jul 2018 16:23:01 +0000 (UTC) To: freebsd-questions@freebsd.org From: Andreas Drewke Subject: Windows via bhyve@FreeBSD11.1 Message-ID: <3d1cb33e-6081-c98f-d0c5-184a212e2383@drewke.net> Date: Thu, 5 Jul 2018 18:22:40 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 16:39:14 -0000 Hi, I am a fulltime FreeBSD user now for a few months and do mostly game related software development next to emailing, web browsing and such... But now I need a build environment of my stuff for Windows and Linux. As I do not have dedicated machines for that I would prefer VMs inside FreeBSD for that to not to reboot each time I want to have a build. So I tried to do virtualisation of Windows 10 with bhyve@FreeBSD 11.1. First I tried with VirtualBox but this was not a stable solution. The VM would hang when compiling. Data have been lost and such. I followed those both tutorial - https://www.ateamsystems.com/tech-blog/howto-windows-10-bhyve-w-freebsd-11/ - https://wiki.freebsd.org/bhyve/Windows and came up with the following cmd to launch a Win 10 installation VM session |bhyve \ | |-c 2 \ -s 0,hostbridge \ -s 3,ahci-hd,"/home/andreas/Virtual Machines/BuildVM-Win10-x64.img" \ -s 4,ahci-cd,"/home/andreas/Downloads/Win10_1803_German_x64.iso" \ -s 10,virtio-net,tap0 \ -s 29,fbuf,tcp=0.0.0.0:5900,wait \ -s 30,xhci,tablet \ -s 31,lpc \ -l com1,stdio \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ -m 2G -H -w \ BuildVM-Win10-x64| I also tryed Win7, Win8.1. I also tryed to remaster Win7 DVD and such. But I always get: |Boot Failed. EFI DVD/CDROM Boot Failed. EFI Hard Drive| I also wonder why I need to run the command as root. "uname -a" tells |FreeBSD andreas-desktop 11.1-RELEASE-p10 FreeBSD 11.1-RELEASE-p10 #0: Tue May 8 05:21:56 UTC 2018 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64| "dmesg" tells: |CPU: AMD Ryzen 7 1700 Eight-Core Processor (2994.46-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1 Features=0x178bfbff Features2=0x7ed8320b AMD Features=0x2e500800 AMD Features2=0x35c233ff Structured Extended Features=0x209c01a9 XSAVE Features=0xf SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768 TSC: P-state invariant, performance statistics| Any hints are highly appreciated. Many thanx and Best regards Andreas