From owner-freebsd-questions@freebsd.org Thu Jul 5 18:24:17 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 4F3E4104536C for ; Thu, 5 Jul 2018 18:24:17 +0000 (UTC) (envelope-from andreas@drewke.net) Received: from mailrelay3-3.pub.mailoutpod1-cph3.one.com (mailrelay3-3.pub.mailoutpod1-cph3.one.com [46.30.212.12]) (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 B76A88E944 for ; Thu, 5 Jul 2018 18:24:16 +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:in-reply-to: references; bh=9Pj944hMXVV2tx+L7ZqS+lbBzJyK1Ks8/kTbZVzRJW8=; b=KJc0UtblRbA6hWWqq2y8zZWD4fzO+w5j9Nrmb9P4VRHEEYn312bY8+dK0tdZzRNj8UuWmWazn1NE/ bEHXTM+RqXFfBqv4gxSosPlCT0/K5nowLOOYYYir0pWOcEkWkBgp1TofCdhm5SrO4RBk5XZdIU32da ZA1hMHDDFCQodoTY= X-HalOne-Cookie: f028a24d810f10c3407acda8d4371b3c5525ef65 X-HalOne-ID: 5d0f0c2a-807e-11e8-80b5-d0431ea8bb03 Received: from [192.168.178.86] (unknown [87.123.150.4]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 5d0f0c2a-807e-11e8-80b5-d0431ea8bb03; Thu, 05 Jul 2018 18:08:05 +0000 (UTC) Subject: Re: Windows via bhyve@FreeBSD11.1 From: Andreas Drewke To: freebsd-questions@freebsd.org References: <3d1cb33e-6081-c98f-d0c5-184a212e2383@drewke.net> Message-ID: <90438094-ec29-8d45-d598-862097fb3e18@drewke.net> Date: Thu, 5 Jul 2018 20:07:44 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <3d1cb33e-6081-c98f-d0c5-184a212e2383@drewke.net> 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 18:24:17 -0000 Hi, I got it. I had 2 problems. - First I did not see anything as I was connecting with freerdp which does not work. Using vncviewer indeed does. - But I need to press quickly a key after connecting with vncviewer in the window I started the bhyve or in the vnc viewer. Not 100% sure here. (Also order of drives seem to be important, haveing cd first worked for me, having cd as second did not, this was a hint on bsdforen.de) Now my windows does install. I am super curios. Using "vncviewer" is worth a note in a blog or documentation I think. Spend like 8+ hours to find out how to boot a Windows 7/8.1,10 in bhyve under FBSD. Many thanx. Best regards Andreas On 07/05/18 18:22, Andreas Drewke wrote:Hi, > > 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