My bhyve command looks like this:
However, after reading man bhyve with examples several times, I still do not understand the need for flags:
These flags are very common in all the examples, including the examples from man bhyve, but I absolutely don’t understand why they should be used.
System:
FreeBSD 13.2
AMD EPYC 7763 64-core
RAM: 128Gb
Filesystem: ZFS with default settings.
Code:
bhyve \
-c 64 \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
-l com1,stdio \
-m 64G \
-s 0,hostbridge \
-s 1,lpc \
-s 2,virtio-net,tap0 \
-s 3,nvme,/dev/zvol/test/debian \
debian
However, after reading man bhyve with examples several times, I still do not understand the need for flags:
Code:
-A Generate ACPI tables. Required for FreeBSD/amd64 guests.
-H Yield the virtual CPU thread when a HLT instruction is detected.
If this option is not specified, virtual CPUs will use 100% of a host
CPU.
-P Force the guest virtual CPU to exit when a PAUSE instruction is detected.
-w Ignore accesses to unimplemented Model Specific Registers (MSRs).
This is intended for debug purposes.
-S Wire guest memory.
These flags are very common in all the examples, including the examples from man bhyve, but I absolutely don’t understand why they should be used.
- -A - the virtual machine starts without it. Explain what this flag does for me and what I will lose if I don't use it.
- -H - this option is needed so that bhyve processes do not consume 100% of the CPU, but as much as they actually consume. In other words, without -H, idle processes will consume 100% of each of the 64 cores. But I don’t notice the effect of this consumption on processor temperature. With the machine running, the CPU temperature is 45 degrees Celsius regardless of whether I use -H or not.
- -P - I don’t understand why this flag should be used. Explain, please.
- -w - I don’t understand the purpose of this flag.
System:
FreeBSD 13.2
AMD EPYC 7763 64-core
RAM: 128Gb
Filesystem: ZFS with default settings.