Date: Sat, 17 Sep 2016 01:08:21 +0300 From: Boris Samorodov <bsam@passap.ru> To: Peter Grehan <grehan@freebsd.org> Cc: freebsd-virtualization@freebsd.org Subject: Re: current+bhyve+windows7 problem Message-ID: <fa29ffff-f3f1-0a23-29c0-48ede42eedde@passap.ru> In-Reply-To: <1d089dda-2232-9984-2c52-a7e921121407@freebsd.org> References: <2fb0fff7-d07c-83a6-b50d-51097003b8cd@passap.ru> <1d089dda-2232-9984-2c52-a7e921121407@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fa29ffff-f3f1-0a23-29c0-48ede42eedde>