current+bhyve+windows7 problem

Boris Samorodov bsam at passap.ru
Fri Sep 16 22:08:36 UTC 2016


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.
> 



More information about the freebsd-virtualization mailing list