thenickdude / KVM-Opencore

OpenCore disk image for running macOS VMs on Proxmox/QEMU

Home Page:https://www.nicksherlock.com/2021/10/installing-macos-12-monterey-on-proxmox-7/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kernel panic when booting macos

Bradley-Liu opened this issue · comments

hi thenickdue. Recently I updated my unraid from 6.9.2 , which uses qemu 6.1 to 6.11.5 which uses qemu 7.1.
After the update, I can't start my macos anymore. It panics during the boot process.
Panic:

panic(cpu 2 caller 0xffffff801d348953): Kernel trap at 0xffffff801f25e226, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000160, CR3: 0x0000000021be2000, CR4: 0x00000000003626e0
RAX: 0x00000000fffffff2, RBX: 0xffffff9061c58c00, RCX: 0x0000000000004e79, RDX: 0xffffffa0ccc8f35c
RSP: 0xffffffa0ccc8f320, RBP: 0xffffffa0ccc8f320, RSI: 0xffffffa0ccc8f697, RDI: 0x0000000000000000
R8:  0xffffffa0ccc8f2e8, R9:  0x0000000000000009, R10: 0x0000000000000002, R11: 0x0000000000000002
R12: 0xffffff8b95700000, R13: 0xffffff86c9ebf800, R14: 0xffffff9061c4fc00, R15: 0xffffffa0ccc8f697
RFL: 0x0000000000010246, RIP: 0xffffff801f25e226, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x0000000000000160, Error code: 0x0000000000000000, Fault CPU: 0x2 VMM, PL: 0, VF: 1

Panicked task 0xffffff8b95f84208: 182 threads: pid 0: kernel_task
Backtrace (CPU 2), panicked thread: 0xffffff8b95bec598, Frame : Return Address
0xffffffa0ccc8ed00 : 0xffffff801d1eb31d mach_kernel : _handle_debugger_trap + 0x4ad
0xffffffa0ccc8ed50 : 0xffffff801d359236 mach_kernel : _kdp_i386_trap + 0x116
0xffffffa0ccc8ed90 : 0xffffff801d348480 mach_kernel : _kernel_trap + 0x3e0
0xffffffa0ccc8ede0 : 0xffffff801d185951 mach_kernel : _return_from_trap + 0xc1
0xffffffa0ccc8ee00 : 0xffffff801d1eb5fd mach_kernel : _DebuggerTrapWithState + 0x5d
0xffffffa0ccc8eef0 : 0xffffff801d1eaca9 mach_kernel : _panic_trap_to_debugger + 0x1a9
0xffffffa0ccc8ef50 : 0xffffff801d9e08cb mach_kernel : _panic + 0x84
0xffffffa0ccc8f040 : 0xffffff801d348953 mach_kernel : _sync_iss_to_iks + 0x2c3
0xffffffa0ccc8f1c0 : 0xffffff801d348642 mach_kernel : _kernel_trap + 0x5a2
0xffffffa0ccc8f210 : 0xffffff801d185951 mach_kernel : _return_from_trap + 0xc1
0xffffffa0ccc8f230 : 0xffffff801f25e226 com.apple.driver.AirPort.BrcmNIC : _wlc_wowl_get_replay_counter + 0xe
0xffffffa0ccc8f320 : 0xffffff801f019dce com.apple.driver.AirPort.BrcmNIC : _wlc_ol_armtx + 0x342
0xffffffa0ccc8f6f0 : 0xffffff801f0c4c29 com.apple.driver.AirPort.BrcmNIC : _wlc_doiovar + 0x7266
0xffffffa0ccc8f8a0 : 0xffffff801f0c9347 com.apple.driver.AirPort.BrcmNIC : _wlc_iovar_op + 0x3b4
0xffffffa0ccc8f950 : 0xffffff801f0edf8a com.apple.driver.AirPort.BrcmNIC : __wlc_ioctl + 0x2064
0xffffffa0ccc8fb00 : 0xffffff801f0ca62e com.apple.driver.AirPort.BrcmNIC : _wlc_ioctl + 0x6d
0xffffffa0ccc8fb50 : 0xffffff801efda787 com.apple.driver.AirPort.BrcmNIC : __ZN15AirPort_BrcmNIC7wlIoctlEjPvmbP8OSObject + 0x45
0xffffffa0ccc8fb80 : 0xffffff801efe8af4 com.apple.driver.AirPort.BrcmNIC : __ZN15AirPort_BrcmNIC12SetCryptoKeyEPhiiS0_bP10ether_addr + 0x23a
0xffffffa0ccc8fca0 : 0xffffff801efe677d com.apple.driver.AirPort.BrcmNIC : __ZN15AirPort_BrcmNIC13setCIPHER_KEYEP8OSObjectP14apple80211_key + 0x41b
0xffffffa0ccc8fd40 : 0xffffff801effbcf7 com.apple.driver.AirPort.BrcmNIC : __ZN15AirPort_BrcmNIC17apple80211RequestEjiP16IO80211InterfacePv + 0x16d
0xffffffa0ccc8fda0 : 0xffffff801ef12468 com.apple.iokit.IO80211FamilyLegacy : __ZN13RSNSupplicant10installPTKEP16RSNAuthenticator + 0x19e
0xffffffa0ccc8fde0 : 0xffffff801ef12af9 com.apple.iokit.IO80211FamilyLegacy : __ZN13RSNSupplicant9ptkThreadEP16RSNAuthenticator + 0x19f
0xffffffa0ccc8fe30 : 0xffffff801ef12bb9 com.apple.iokit.IO80211FamilyLegacy : __ZN13RSNSupplicant14ptkThreadGatedEP8OSObjectPvS2_S2_S2_ + 0xf
0xffffffa0ccc8fe40 : 0xffffff801d915d54 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0xb4
0xffffffa0ccc8fea0 : 0xffffff801d244e18 mach_kernel : _thread_call_delayed_timer + 0x528
0xffffffa0ccc8fee0 : 0xffffff801d245ecb mach_kernel : _thread_call_delayed_timer + 0x15db
0xffffffa0ccc8ffa0 : 0xffffff801d18519e mach_kernel : _call_continuation + 0x2e
      Kernel Extensions in backtrace:
         com.apple.iokit.IO80211FamilyLegacy(1200.12.2b1)[63565270-42B3-31A8-80FB-16DA0EBBFA4C]@0xffffff801ee40000->0xffffff801ef86fff
            dependency: com.apple.driver.AppleMobileFileIntegrity(1.0.5)[4E741445-0025-3DB8-8292-C7533F3C0917]@0xffffff801e792000->0xffffff801e7c0fff
            dependency: com.apple.driver.corecapture(1.0.4)[3A3001CC-D289-35D6-B101-7B16A7F8AC9E]@0xffffff80203f0000->0xffffff8020412fff
            dependency: com.apple.iokit.CoreAnalyticsFamily(1)[D0FF0186-6F90-3AF1-9F7E-A2BD383CCA20]@0xffffff801eadc000->0xffffff801eae5fff
            dependency: com.apple.iokit.IONetworkingFamily(3.4)[196DFD8C-1D79-39E6-AEFA-FCF645C51977]@0xffffff801f99f000->0xffffff801f9b5fff
            dependency: com.apple.iokit.IOSkywalkFamily(1.0)[F96DD1E4-1285-31A2-8AE8-4C6884D59E11]@0xffffff801fce9000->0xffffff801fd16fff
            dependency: com.apple.kec.corecrypto(12.0)[7A2A4035-FDBB-38A2-88B7-7AF62A0BD48B]@0xffffff8020421000->0xffffff8020499fff
         com.apple.driver.AirPort.BrcmNIC(1400.1.1)[D35E9C22-17DD-30E6-BF29-1F3C10BCB958]@0xffffff801efa2000->0xffffff801f4fafff
            dependency: com.apple.driver.corecapture(1.0.4)[3A3001CC-D289-35D6-B101-7B16A7F8AC9E]@0xffffff80203f0000->0xffffff8020412fff
            dependency: com.apple.driver.mDNSOffloadUserClient(1.0.1b8)[A560C3FC-5D7E-3B9B-8B2D-425FB3ED908E]@0xffffff801fbf9000->0xffffff801fbfdfff
            dependency: com.apple.iokit.IO80211FamilyLegacy(1200.12.2b1)[63565270-42B3-31A8-80FB-16DA0EBBFA4C]@0xffffff801ee40000->0xffffff801ef86fff
            dependency: com.apple.iokit.IONetworkingFamily(3.4)[196DFD8C-1D79-39E6-AEFA-FCF645C51977]@0xffffff801f99f000->0xffffff801f9b5fff
            dependency: com.apple.iokit.IOPCIFamily(2.9)[752CD69F-309E-31FF-881C-2A22ACB6C0B6]@0xffffff801fc00000->0xffffff801fc2ffff
            dependency: com.apple.iokit.IOSkywalkFamily(1.0)[F96DD1E4-1285-31A2-8AE8-4C6884D59E11]@0xffffff801fce9000->0xffffff801fd16fff

Process name corresponding to current thread (0xffffff8b95bec598): kernel_task
Boot args: keepsyms=1 

Mac OS version:
22C65

Kernel version:
Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64
Kernel UUID: 6B3374E9-7FD7-354D-886F-E995FAAC2CA3
roots installed: 0
KernelCache slide: 0x000000001ce00000
KernelCache base:  0xffffff801d000000
Kernel slide:      0x000000001cedc000
Kernel text base:  0xffffff801d0dc000
__HIB  text base: 0xffffff801cf00000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: NO (0xe00002bc)
Hibernation exit count: 0

System uptime in nanoseconds: 13838572530
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x0000000338d7dfb4
  Sleep   : 0x0000000000000000 0x0000000000000000 0x0000000000000000
  Wake    : 0x0000000000000000 0x0000000b83d4a657 0x0000000000000000
Compressor Info: 0% of compressed pages limit (OK) and 0% of segments limit (OK) with 0 swapfiles and OK swap space
Zone info:
  Zone map: 0xffffff80601fb000 - 0xffffffa0601fb000
  . PGZ   : 0xffffff80601fb000 - 0xffffff80641fc000
  . VM    : 0xffffff80641fc000 - 0xffffff853052f000
  . RO    : 0xffffff853052f000 - 0xffffff86c9b95000
  . GEN0  : 0xffffff86c9b95000 - 0xffffff8b95ec8000
  . GEN1  : 0xffffff8b95ec8000 - 0xffffff90621fb000
  . GEN2  : 0xffffff90621fb000 - 0xffffff952e52e000
  . GEN3  : 0xffffff952e52e000 - 0xffffff99fa861000
  . DATA  : 0xffffff99fa861000 - 0xffffffa0601fb000
  Metadata: 0xffffffa080a0b000 - 0xffffffa0a0a0b000
  Bitmaps : 0xffffffa0a0a0b000 - 0xffffffa0aca0b000

last started kext at 11850844098: >AudioAUUC	1.70 (addr 0xffffff7fb2dde000, size 12288)
loaded kexts:
com.khronokernel.CryptexFixup	1.0.1
as.vit9696.!AALC	1.7.6
as.vit9696.WhateverGreen	1.6.2
as.vit9696.Lilu	1.6.3
>AudioAUUC	1.70
>X86PlatformShim	1.0.0
>AGPM	131
>!APlatformEnabler	2.7.0d0
@kext.AMDRadeonX4000	4.0.9
@kext.AMDRadeonServiceManager	4.0.9
>!AGraphicsDevicePolicy	7.1.18
@AGDCPluginDisplayMetrics	7.1.18
>!AGFXHDA	200.2
>pmtelemetry	1
@filesystems.nfs	1
|IOUserEthernet	1.0.1
>usb.!UUserHCI	1
>!AHV	1
>!ADiskImages2	198.40.3
@UVCService	1
>ACPI_SMC_PlatformPlugin	1.0.0
>!A!ISlowAdaptiveClocking	4.0.0
>!AFIVRDriver	4.1.0
>!A16X50ACPI	3.2
@kext.AMD9500!C	4.0.9
>!A!IMCEReporter	115
>AirPort.BrcmNIC	1400.1.1
>!AAHCIPort	370
>!AFileSystemDriver	3.0.1
@filesystems.tmpfs	1
@filesystems.lifs	1
@filesystems.apfs	2142.61.2
@filesystems.hfs.kext	627.40.1
@BootCache	40
@!AFSCompression.!AFSCompressionTypeZlib	1.0.0
@!AFSCompression.!AFSCompressionTypeDataless	1.0.0d1
@private.KextAudit	1.0
>!AACPIButtons	6.1
>!ARTC	2.0.1
>!ASMBIOS	2.1
>!AAPIC	1.7
$!AUserConsent	1
@!ASystemPolicy	2.0.0
@nke.applicationfirewall	403
|IOKitRegistryCompatibility	1
|EndpointSecurity	1
@Dont_Steal_Mac_OS_X	7.0.0
@kec.Compression	1
@kec.!AEncryptedArchive	1
>!AHIDKeyboard	231
@kext.AMDRadeonX4000HWLibs	1.0
|IOAccelerator!F2	475
@kext.AMDRadeonX4000HWServices	4.0.9
>!AGraphicsControl	7.1.18
>!AHDA!C	400.3
|IOHDA!F	400.3
@kext.triggers	1.0
>IOHIDPowerSource	1
|IO!BSerialManager	9.0

My conifg file:

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='4' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>Ventura</name>
  <uuid>4b21297f-3fc5-4b91-0bf0-50e4e2453b7b</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="Ventura.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>33554432</memory>
  <currentMemory unit='KiB'>33554432</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='8'/>
    <vcpupin vcpu='2' cpuset='3'/>
    <vcpupin vcpu='3' cpuset='9'/>
    <vcpupin vcpu='4' cpuset='4'/>
    <vcpupin vcpu='5' cpuset='10'/>
    <vcpupin vcpu='6' cpuset='5'/>
    <vcpupin vcpu='7' cpuset='11'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-6.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/4b21297f-3fc5-4b91-0bf0-50e4e2453b7b_VARS-pure-efi.fd</nvram>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='4' threads='2'/>
    <cache mode='passthrough'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/disks/S4EWNC0N901171J/Ventura/vdisk3.img' index='1'/>
      <backingStore/>
      <target dev='hdd' bus='virtio'/>
      <alias name='virtio-disk3'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </disk>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <alias name='pci.3'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <alias name='pci.4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x14'/>
      <alias name='pci.5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0x15'/>
      <alias name='pci.6'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
    </controller>
    <controller type='pci' index='7' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='7' port='0x16'/>
      <alias name='pci.7'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
    </controller>
    <controller type='pci' index='8' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='8' port='0x17'/>
      <alias name='pci.8'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x7'/>
    </controller>
    <controller type='pci' index='9' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='9' port='0x18'/>
      <alias name='pci.9'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='usb' index='0' model='nec-xhci' ports='7'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </controller>
    <controller type='usb' index='1' model='ich9-ehci1'>
      <alias name='usb1'/>
      <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:a5:2c:5c'/>
      <source bridge='br0'/>
      <target dev='vnet1'/>
      <model type='virtio-net'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/1'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/1'>
      <source path='/dev/pts/1'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-4-Ventura/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='connected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='2'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0' multifunction='on'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x02' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x1'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev2'/>
      <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev3'/>
      <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev4'/>
      <address type='pci' domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x05ac'/>
        <product id='0x024f'/>
        <address bus='1' device='9'/>
      </source>
      <alias name='hostdev5'/>
      <address type='usb' bus='0' port='1'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x05ac'/>
        <product id='0x828d'/>
        <address bus='1' device='15'/>
      </source>
      <alias name='hostdev6'/>
      <address type='usb' bus='0' port='3'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x0bda'/>
        <product id='0x58b0'/>
        <address bus='1' device='2'/>
      </source>
      <alias name='hostdev7'/>
      <address type='usb' bus='1' port='1'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x2717'/>
        <product id='0x5013'/>
        <address bus='1' device='3'/>
      </source>
      <alias name='hostdev8'/>
      <address type='usb' bus='0' port='5'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
  <qemu:commandline>
    <qemu:arg value='-usb'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='usb-kbd,bus=usb-bus.0'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc'/>
    <qemu:arg value='-smbios'/>
    <qemu:arg value='type=2'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='host,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on'/>
    <qemu:arg value='-global'/>
    <qemu:arg value='ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off'/>
    <qemu:arg value='-global'/>
    <qemu:arg value='nec-usb-xhci.msi=off'/>
  </qemu:commandline>
</domain>

It should work. I didn't change any thing in the config xml.
Would you please help me to solve this issue. Thank you!

Looks like a panic in the network driver, are you PCIe-passthroughing a network adapter to macOS? What happens if you remove that?

Double check that the PCIe addresses of your devices haven't changed, causing you to pass through the wrong host devices to the guest.