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