FreeBSD Bhyve 上的 PCI 直通
上一页FreeBSD Ports 中的 OPTIONS 功能介绍——使用 OPTIONS_SET/OPTIONS_UNSET/NO_DIALOG 进行操作和实践下一页2023 年 FreebBSD 谷歌编程之夏学生介绍:Raghav Sharma
最后更新于
# vm passthru
DEVICE BHYVE ID READY DESCRIPTION
hostb0 0/0/0 No 12th Gen Core Processor Host Bridge/DRAM Registers
pcib1 0/1/0 No 12th Gen Core Processor PCI Express x16 Controller
vgapci0 0/2/0 No AlderLake-S GT1
pcib2 0/6/0 No 12th Gen Core Processor PCI Express x4 Controller
none0 0/8/0 No 12th Gen Core Processor Gaussian & Neural Accelerator
xhci0 0/20/0 No Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller
none1 0/20/2 No Alder Lake-S PCH Shared SRAM
ig4iic0 0/21/0 No Alder Lake-S PCH Serial IO I2C Controller
none2 0/22/0 No Alder Lake-S PCH HECI Controller
ahci0 0/23/0 No Alder Lake-S PCH SATA Controller [AHCI Mode]
pcib3 0/28/0 No -
pcib4 0/29/0 No -
isab0 0/31/0 No Z690 Chipset LPC/eSPI Controller
hdac0 0/31/3 No Alder Lake-S HD Audio Controller
ichsmb0 0/31/4 No Alder Lake-S PCH SMBus Controller
none3 0/31/5 No Alder Lake-S PCH SPI Controller
ix0 1/0/0 No Ethernet Controller 10-Gigabit X540-AT2
ix1 1/0/1 No Ethernet Controller 10-Gigabit X540-AT2
nvme0 2/0/0 No E18 PCIe4 NVMe Controller
none0 3/0/0 No Killer E3000 2.5GbE Controller
xhci1 4/0/0 No -kern.geom.label.disk_ident.enable="0"
kern.geom.label.gptid.enable="0"
zfs_load="YES"
vmm_load="YES"
pptdevs="3/0/0 4/0/0"# vm passthru
DEVICE BHYVE ID READY DESCRIPTION
hostb0 0/0/0 No 12th Gen Core Processor Host Bridge/DRAM Registers
pcib1 0/1/0 No 12th Gen Core Processor PCI Express x16 Controller
vgapci0 0/2/0 No AlderLake-S GT1
pcib2 0/6/0 No 12th Gen Core Processor PCI Express x4 Controller
none0 0/8/0 No 12th Gen Core Processor Gaussian & Neural Accelerator
xhci0 0/20/0 No Alder Lake-S PCH USB 3.2 Gen 2x2 XHCI Controller
none1 0/20/2 No Alder Lake-S PCH Shared SRAM
ig4iic0 0/21/0 No Alder Lake-S PCH Serial IO I2C Controller
none2 0/22/0 No Alder Lake-S PCH HECI Controller
ahci0 0/23/0 No Alder Lake-S PCH SATA Controller [AHCI Mode]
pcib3 0/28/0 No -
pcib4 0/29/0 No -
isab0 0/31/0 No Z690 Chipset LPC/eSPI Controller
hdac0 0/31/3 No Alder Lake-S HD Audio Controller
ichsmb0 0/31/4 No Alder Lake-S PCH SMBus Controller
none3 0/31/5 No Alder Lake-S PCH SPI Controller
ix0 1/0/0 No Ethernet Controller 10-Gigabit X540-AT2
ix1 1/0/1 No Ethernet Controller 10-Gigabit X540-AT2
nvme0 2/0/0 No E18 PCIe4 NVMe Controller
ppt0 3/0/0 Yes Killer E3000 2.5GbE Controller
ppt1 4/0/0 Yes -loader="uefi"
graphics="yes"
xhci_mouse="yes"
cpu=4
cpu_sockets=1
cpu_cores=4
cpu_threads=1
memory=16G
ahci_device_limit="8"
network0_type="virtio-net"
network0_switch="lan0"
disk0_type="ahci-hd"
disk0_name="disk0"
disk0_dev="sparse-zvol"
graphics_port=5902
graphics_res="1920x1080"
# windows expects the host to expose localtime by default, not UTC
utctime="no"
# JP keyboard
bhyve_options="-K jp"
uuid="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
network0_mac="58:9c:fc:xx:xx:xx"
passthru0="3/0/0"
passthru1="4/0/0"# vm start windows12月 16 19:13:17: bhyve exited with status 0
12月 16 19:13:17: restarting
12月 16 19:13:17: [bhyve options: -c 4,sockets=1,cores=4,threads=1 -m 16G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -K jp -U 0e7bf333-96b9-11ea-bb29-e8611f133073 -S]
12月 16 19:13:17: [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/dev/zvol/zroot/data/vm/windows/disk0 -s 5:0,virtio-net,tap4,mac=58:9c:fc:06:57:ac -s 6:0,passthru,3/0/0 -s 7:0,passthru,4/0/0 -s 8:0,fbuf,tcp=0.0.0.0:5902,w=1920,h=1080 -s 9:0,xhci,tablet]
12月 16 19:13:17: [bhyve console: -l com1,/dev/nmdm-windows.1A]
12月 16 19:13:17: starting bhyve (run 2)
12月 16 19:13:18: bhyve exited with status 4
12月 16 19:13:18: destroying network device tap4
12月 16 19:13:18: stopped