From owner-freebsd-virtualization@freebsd.org Fri Sep 16 22:08:35 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 E2602BDD7D7 for ; Fri, 16 Sep 2016 22:08:35 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward3j.cmail.yandex.net (forward3j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5483B78; Fri, 16 Sep 2016 22:08:35 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp1o.mail.yandex.net (smtp1o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::25]) by forward3j.cmail.yandex.net (Yandex) with ESMTP id E37952073D; Sat, 17 Sep 2016 01:08:23 +0300 (MSK) Received: from smtp1o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp1o.mail.yandex.net (Yandex) with ESMTP id 2DD591300D91; Sat, 17 Sep 2016 01:08:22 +0300 (MSK) Received: by smtp1o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 3gw1eECigE-8M5S1St8; Sat, 17 Sep 2016 01:08:22 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0,1 0 Subject: Re: current+bhyve+windows7 problem To: Peter Grehan References: <2fb0fff7-d07c-83a6-b50d-51097003b8cd@passap.ru> <1d089dda-2232-9984-2c52-a7e921121407@freebsd.org> Cc: freebsd-virtualization@freebsd.org From: Boris Samorodov Message-ID: Date: Sat, 17 Sep 2016 01:08:21 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <1d089dda-2232-9984-2c52-a7e921121407@freebsd.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Fri, 16 Sep 2016 22:08:36 -0000 15.09.2016 02:36, Peter Grehan пишет: > 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 \ Peter, great, thank you! That was it. A note, sectorsize parameter should be written at the end of that line (error otherwise): -s 4:0,ahci-hd,/dev/zvol/book/vm/win/disk0.img,sectorsize=512 \ > (You may have to delete/recrease the image file and re-install to get > it to pick up the new sectorsize) > > later, > > Peter. >