current+bhyve+windows7 problem
Peter Grehan
grehan at freebsd.org
Wed Sep 14 23:36:17 UTC 2016
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.
More information about the freebsd-virtualization
mailing list