Re: current+bhyve+windows7 problem
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. > ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
High vCPU Counts in bhyve
Good day to all! I was recently given the hint that I could edit vmm.h to allow for more than 16 vCPUs in bhyve, so I did just that to see what would happen. I understand it's not supported, just wanted to try it out. When trying to boot FreeBSD 12-CURRENT with anything up to 25 vCPUs the guest will boot and run just fine. At 26+ vCPUs the guest OS will panic at boot time. I have posted all of these outputs and more to GitHub [1]. I started by installing FreeBSD with 16 vCPUs and then incrementing until it wouldn't go any further. You can find the dmesg.boot output of the guest at 16 vCPUs on GitHub [2]. Here is the relevant line in /usr/src/sys/amd64/include/vmm.h: #define VM_MAXCPU32/* maximum virtual cpus */ Here is what appears in the serial console when attempting to boot with 26 vCPUs (The full output can also be found on GitHub [3]): Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x60 fault code = supervisor write data, page not present instruction pointer = 0x20:0x80ff3859 stack pointer = 0x28:0x821c19d0 frame pointer = 0x28:0x821c1a50 code segment= base 0x0, limit 0xf, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags= interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) [ thread pid 0 tid 10 ] Stopped at acpi_install_wakeup_handler+0x1d9: movq%rdi,0x60(%r14) db> If anyone has any hints on how to get more information from this or ideas on the apparent APIC error would be greatly appreciated. Thanks and happy hacking! -Trent @pr1ntf [1] https://gist.github.com/pr1ntf/270efd6ec3fe376e68d1f9dad2deef31 [2] https://gist.githubusercontent.com/pr1ntf/270efd6ec3fe376e68d1f9dad2deef31/raw/09dde8362a5e488794e6d7c8b70bb0368b964b49/3-guest-dmesg.boot.txt [3] https://gist.githubusercontent.com/pr1ntf/270efd6ec3fe376e68d1f9dad2deef31/raw/09dde8362a5e488794e6d7c8b70bb0368b964b49/4-guest-26vcpucrash.txt ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
[Bug 212721] FreeBSD 11.0-RC3 fails on Hyper-V 2012r2
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212721 Mark Linimonchanged: What|Removed |Added Assignee|freebsd-b...@freebsd.org|freebsd-virtualization@Free ||BSD.org CC|freebsd-am...@freebsd.org | -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"