From owner-freebsd-virtualization@freebsd.org Wed Sep 14 23:36:17 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 54B4CBDA592 for ; Wed, 14 Sep 2016 23:36:17 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 16A811F14 for ; Wed, 14 Sep 2016 23:36:16 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id 7734620A10A4 for ; Thu, 15 Sep 2016 09:36:03 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id 7133B280A52 for ; Thu, 15 Sep 2016 09:36:03 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PYFurCczgo8D for ; Thu, 15 Sep 2016 09:36:03 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (c-67-180-92-13.hsd1.ca.comcast.net [67.180.92.13]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 7C0C8280A41; Thu, 15 Sep 2016 09:35:58 +1000 (AEST) Subject: Re: current+bhyve+windows7 problem To: Boris Samorodov References: <2fb0fff7-d07c-83a6-b50d-51097003b8cd@passap.ru> Cc: freebsd-virtualization@freebsd.org From: Peter Grehan Message-ID: <1d089dda-2232-9984-2c52-a7e921121407@freebsd.org> Date: Wed, 14 Sep 2016 16:36:08 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <2fb0fff7-d07c-83a6-b50d-51097003b8cd@passap.ru> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=VuVhOK+n c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=5eVCmCvhg37cu/pjidAGzw==:17 a=N659UExz7-8A:10 a=GW1xBdLrtEIA:10 a=yrnHEAsExx6oyTf6PG4A:9 a=pILNOxqGKmIA:10 wl=host:3 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: Wed, 14 Sep 2016 23:36:17 -0000 Hi Boris, > I use the following command to install Windows 7: > --- > sudo bhyve -c 1 -m 2G -Hwl \ > bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ > -s 0,hostbridge \ > -s 31,lpc \ > -s 3:0,ahci-cd,/vm/.iso/win.iso \ > -s 4:0,ahci-hd,/dev/zvol/book/vm/win/disk0.img \ > -s 5:0,virtio-net,tap2,mac=58:9c:fc:05:ff:ae \ > -s 6:0,fbuf,tcp=0.0.0.0:5900,w=640,h=480 \ > win For Windows 7, you have to force the sector size to be 512 bytes i.e. -s 4:0,ahci-hd,sectorsize=512,/dev/zvol/book/vm/win/disk0.img \ (You may have to delete/recrease the image file and re-install to get it to pick up the new sectorsize) later, Peter.