My server is kernel panic when, pci pass-through

npr05324

New Member
Jun 14, 2020
1
0
1
25
Motherboard: Gigabyte B450 Aorus Elite
CPU: Ryzen 2700X
Proxmox Version: pve-manager/6.2-6/ee1d7754 (running kernel: 5.4.41-1-pve)

Code:
// 1 port pcie nie (motherboard embedded.) --> A nic
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 16)
        Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
        Kernel driver in use: r8169
        Kernel modules: r8169
        
// 1 port pcie nic --> B nic
04:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 07)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:0123]
        Kernel driver in use: r8169
        Kernel modules: r8169

// 2 ports pcie nic --> C nic

// C.0
09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 07)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:0123]
        Kernel driver in use: r8169
        Kernel modules: r8169
// C.1
0a:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 07)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:0123]
        Kernel driver in use: r8169
        Kernel modules: r8169)


Code:
root@console:~# cat /etc/modprobe.d/vfio.conf

options vfio-pci ids=10de:1401,10de:0fba disable_vga=1 // VGA, but vga's passthrough works perfect.
options vfio-pci ids=10ec:8168 // ids--> Realtek 8168 nic

Code:
root@console:~# cat /etc/modprobe.d/blacklist.conf

blacklist radeon
blacklist nouveau
blacklist nvidia
// why does not add r8169? since i use server network(Internal&External), so i think if i add r8169 in blacklist my nic's module(A,B nic) dose not work.(probably)

Code:
// Grub Settings in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"

// my vm config
bootdisk: scsi0
cores: 2
cpu: kvm64

// not work
hostpci0: 09:00.0;0a:00.0

// not work too
hostpci0: 09:00.0
hostpci1: 0a:00.0

ide2: none,media=cdrom
machine: q35
memory: 1024
name: Cathode-Untangle
numa: 1
ostype: l26
sockets: 1
vcpus: 2

Hi, I have 2 ports nic(1 pcie x1 card, 2 ports).
I want use UTM(Untangle firewall). So i boot vm sever with pci device(pass-throughed, C.0&C.1)
My proxmox server was stop. (I think, that was Kernel panic.)
If you have any idea, write feel free!



(My english not well, because i am korean. I apologise to you.)
 
My proxmox server was stop. (I think, that was Kernel panic.)
If you have any idea, write feel free!
Did it stop after you tried to start the VM with the PCI passthrough?
Any information in the logs or on an attached screen?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!