Solved Why doesn't Bhyve accept VM's CPU settings?

Trying to get this Windows 10 VM to work:
Code:
loader="uefi"

uuid="ece44dd0-4fd1-11ee-b4fb-0010181ac80d"

debug="yes"

cpu=4
cpu_sockets=1
cpu_cores=4
cpu_threads=1

memory=32GB

network0_type="virtio-net"
network0_switch="SW_A"
network0_mac="ee:00:00:00:00:01"

passthru0="2/0/0=2:0"

disk0_type="virtio-blk"
#disk0_type="ahci-hd"
disk0_dev="custom"
disk0_name="/dev/ada1"

#disk1_type="ahci-cd"
#disk1_dev="custom"
#disk1_name="/zroot/VMs/.iso/virtio-win-0.1.262.iso"


graphics="yes"
graphics_port="5901"
graphics_res="1920x1080"
graphics_wait="yes"
xhci_mouse="yes"

Though it works when I edit the CPU settings as such:
Code:
loader="uefi"

uuid="ece44dd0-4fd1-11ee-b4fb-0010181ac80d"

debug="yes"

cpu=4
#cpu_sockets=1
#cpu_cores=4
#cpu_threads=1

memory=32GB

network0_type="virtio-net"
network0_switch="SW_CAD"
network0_mac="ee:00:00:00:00:01"

passthru0="2/0/0=2:0"

disk0_type="virtio-blk"
#disk0_type="ahci-hd"
disk0_dev="custom"
disk0_name="/dev/ada1"

#disk1_type="ahci-cd"
#disk1_dev="custom"
#disk1_name="/zroot/VMs/.iso/virtio-win-0.1.262.iso"


graphics="yes"
graphics_port="5901"
graphics_res="1920x1080"
graphics_wait="yes"
xhci_mouse="yes"
But this time, the VM recognises two CPUs in two sockets.

What am I doing wrong?
 
I might be wrong, but aren't you overriding everything with cpu=4? I'm thinking of how CPU layouts are defined in bhyve's program arguments. When looking at bhyve(), you can see the -c flag expects either a single or a combined statement.

I assume, your "cpu=4" may lead to unexpected outcomes? Does it work without that?
 
I might be wrong, but aren't you overriding everything with cpu=4? I'm thinking of how CPU layouts are defined in bhyve's program arguments. When looking at bhyve(), you can see the -c flag expects either a single or a combined statement.

I assume, your "cpu=4" may lead to unexpected outcomes? Does it work without that?

For some reason, this worked:
Code:
cpu=12
cpu_sockets=1
cpu_cores=6
cpu_threads=2

I guess, for some reason, "cpu_threads" cannot not be 1.
 
Back
Top