Hi everyone,
On my home server I'm trying to pass through a SATA HDD to a VM (Debian/Openmediavault) via a cheap 2-port PCIe SATA controller (ASM1062).
I followed the PCI passthrough instructions on the wiki (https://pve.proxmox.com/wiki/Pci_passthrough). Now every time I start up the VM with passed through SATA controller and a HDD attached, my Proxmox host freezes/becomes non-responsive, so I have to power it off and restart. With no HDD attached, the VM boots fine.
I already changed PCIe ports, updated BIOS, tried another guest system (Ubuntu server), but to no avail. Syslog messages (see below) look always the same before the machine freezes.
Here is my current setup and config:
Hardware
pveversion
cat /etc/default/grub
cat /etc/modules
dmesg | grep ecap
find /sys/kernel/iommu_groups/ -type l
cat /etc/pve/nodes/pve/qemu-server/107.conf
tail -f /var/log/syslog (until system freezes)
As I just started with Proxmox and due to only basic Linux knowledge I wasn't able to debug further on my own.
Any help appreciated.
On my home server I'm trying to pass through a SATA HDD to a VM (Debian/Openmediavault) via a cheap 2-port PCIe SATA controller (ASM1062).
I followed the PCI passthrough instructions on the wiki (https://pve.proxmox.com/wiki/Pci_passthrough). Now every time I start up the VM with passed through SATA controller and a HDD attached, my Proxmox host freezes/becomes non-responsive, so I have to power it off and restart. With no HDD attached, the VM boots fine.
I already changed PCIe ports, updated BIOS, tried another guest system (Ubuntu server), but to no avail. Syslog messages (see below) look always the same before the machine freezes.
Here is my current setup and config:
Hardware
Code:
FUJITSU D3400-B1/D3400-B1, BIOS V5.0.0.11 R1.29.0 for D3400-B1x 01/27/2020
CPU0: Intel(R) Celeron(R) CPU G3900 @ 2.80GHz (family: 0x6, model: 0x5e, stepping: 0x3)
SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 02)
pveversion
Code:
pve-manager/6.1-8/806edfe1 (running kernel: 5.3.18-3-pve)
cat /etc/default/grub
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
cat /etc/modules
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
dmesg | grep ecap
Code:
[ 0.062365] DMAR: dmar0: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 7e3ff0505e
[ 0.062368] DMAR: dmar1: reg_base_addr fed91000 ver 1:0 cap d2008c40660462 ecap f050da
find /sys/kernel/iommu_groups/ -type l
Code:
/sys/kernel/iommu_groups/7/devices/0000:00:1f.2
/sys/kernel/iommu_groups/7/devices/0000:00:1f.0
/sys/kernel/iommu_groups/7/devices/0000:00:1f.3
/sys/kernel/iommu_groups/7/devices/0000:00:1f.4
/sys/kernel/iommu_groups/5/devices/0000:00:1c.0
/sys/kernel/iommu_groups/3/devices/0000:00:16.0
/sys/kernel/iommu_groups/1/devices/0000:00:02.0
/sys/kernel/iommu_groups/8/devices/0000:01:00.0
/sys/kernel/iommu_groups/6/devices/0000:00:1c.7
/sys/kernel/iommu_groups/4/devices/0000:00:17.0
/sys/kernel/iommu_groups/2/devices/0000:00:14.2
/sys/kernel/iommu_groups/2/devices/0000:00:14.0
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
/sys/kernel/iommu_groups/9/devices/0000:02:00.0
cat /etc/pve/nodes/pve/qemu-server/107.conf
Code:
bootdisk: scsi0
cores: 1
hostpci0: 02:00.0
ide2: local:iso/ubuntu-18.04.4-live-server-amd64.iso,media=cdrom
memory: 1024
name: vm-ubuntu
net0: virtio=06:27:82:86:D5:33,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-107-disk-0,size=32G
scsihw: virtio-scsi-pci
smbios1: uuid=59c160d6-...
sockets: 1
vmgenid: 4632c869-...
tail -f /var/log/syslog (until system freezes)
Code:
Apr 10 15:25:36 pve pvedaemon[1070]: <root@pam> starting task UPID:pve:00002065:00026913:5E9073D0:qmstart:107:root@pam:
Apr 10 15:25:36 pve pvedaemon[8293]: start VM 107: UPID:pve:00002065:00026913:5E9073D0:qmstart:107:root@pam:
Apr 10 15:25:36 pve kernel: [ 1579.583491] ata6.00: disabled
Apr 10 15:25:36 pve kernel: [ 1579.583733] sd 5:0:0:0: [sdb] Synchronizing SCSI cache
Apr 10 15:25:36 pve kernel: [ 1579.583754] sd 5:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Apr 10 15:25:36 pve kernel: [ 1579.583755] sd 5:0:0:0: [sdb] Stopping disk
Apr 10 15:25:36 pve kernel: [ 1579.583759] sd 5:0:0:0: [sdb] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Apr 10 15:25:36 pve systemd[1]: Created slice qemu.slice.
Apr 10 15:25:36 pve systemd[1]: Started 107.scope.
Apr 10 15:25:36 pve systemd-udevd[8298]: Using default interface naming scheme 'v240'.
Apr 10 15:25:36 pve systemd-udevd[8298]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Apr 10 15:25:36 pve systemd-udevd[8298]: Could not generate persistent MAC address for tap107i0: No such file or directory
Apr 10 15:25:36 pve kernel: [ 1580.347080] device tap107i0 entered promiscuous mode
Apr 10 15:25:36 pve systemd-udevd[8298]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Apr 10 15:25:36 pve systemd-udevd[8298]: Could not generate persistent MAC address for fwbr107i0: No such file or directory
Apr 10 15:25:36 pve systemd-udevd[8300]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Apr 10 15:25:36 pve systemd-udevd[8299]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Apr 10 15:25:36 pve systemd-udevd[8299]: Using default interface naming scheme 'v240'.
Apr 10 15:25:36 pve systemd-udevd[8299]: Could not generate persistent MAC address for fwln107i0: No such file or directory
Apr 10 15:25:36 pve systemd-udevd[8300]: Using default interface naming scheme 'v240'.
Apr 10 15:25:36 pve systemd-udevd[8300]: Could not generate persistent MAC address for fwpr107p0: No such file or directory
Apr 10 15:25:36 pve kernel: [ 1580.379381] fwbr107i0: port 1(fwln107i0) entered blocking state
Apr 10 15:25:36 pve kernel: [ 1580.379382] fwbr107i0: port 1(fwln107i0) entered disabled state
Apr 10 15:25:36 pve kernel: [ 1580.379445] device fwln107i0 entered promiscuous mode
Apr 10 15:25:36 pve kernel: [ 1580.379476] fwbr107i0: port 1(fwln107i0) entered blocking state
Apr 10 15:25:36 pve kernel: [ 1580.379478] fwbr107i0: port 1(fwln107i0) entered forwarding state
Apr 10 15:25:36 pve kernel: [ 1580.383594] vmbr0: port 3(fwpr107p0) entered blocking state
Apr 10 15:25:36 pve kernel: [ 1580.383596] vmbr0: port 3(fwpr107p0) entered disabled state
Apr 10 15:25:36 pve kernel: [ 1580.383664] device fwpr107p0 entered promiscuous mode
Apr 10 15:25:36 pve kernel: [ 1580.383682] vmbr0: port 3(fwpr107p0) entered blocking state
Apr 10 15:25:36 pve kernel: [ 1580.383683] vmbr0: port 3(fwpr107p0) entered forwarding state
Apr 10 15:25:36 pve kernel: [ 1580.390983] fwbr107i0: port 2(tap107i0) entered blocking state
Apr 10 15:25:36 pve kernel: [ 1580.390985] fwbr107i0: port 2(tap107i0) entered disabled state
Apr 10 15:25:36 pve kernel: [ 1580.391092] fwbr107i0: port 2(tap107i0) entered blocking state
Apr 10 15:25:36 pve kernel: [ 1580.391093] fwbr107i0: port 2(tap107i0) entered forwarding state
Apr 10 15:25:38 pve pvedaemon[1070]: <root@pam> end task UPID:pve:00002065:00026913:5E9073D0:qmstart:107:root@pam: OK
As I just started with Proxmox and due to only basic Linux knowledge I wasn't able to debug further on my own.
Any help appreciated.