Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

VM with PCI-Passthrough won't boot

Description

After upgrading from RC1 to RC2 a VM with Home Assistant won't boot after starting TrueNAS. There is one USB-Controller attached as a PCI-Passthrough device to the VM. To work around the problem, I stop the VM, delete the device from the VM, add the device again and start the VM. Then the VM boots as usual before the update.

Steps to reproduce:

Add a pci-passthrough device to a VM
Enable Autostart for the VM
Restart TrueNAS
VM won't boot
Stop the VM
Delete the pci-passthrough device
Add a pci-passthrough device to the VM
Start the VM
VM boots

Problem/Justification

None

Impact

None

Activity

Show:

gontran Lemaire 
March 2, 2022 at 3:14 PM

Hello
Excuse me to contact you here i know its not the good place.
I try to find you on the freenas community without any success

Can you quickly explain how do you passthrough your usb device to the vm ?
Or maybe answer here : https://www.truenas.com/community/threads/usb-passthrough-via-pci-passthrough.99456/
Regards
Gontran

Hans Maulwurf 
January 8, 2022 at 6:29 AM
(edited)

Hi , sorry for the late reply, the first days of the year were very busy. Thank you very much. Yes, I only want to passthrough one USB-device. I will create a suggestion.

EDIT: There is already a suggestion: https://jira.ixsystems.com/browse/NAS-108713

Bug Clerk 
January 7, 2022 at 11:17 AM

Waqar 
January 2, 2022 at 9:30 AM

the PCI device you are adding does not has a reset mechanism available which is why it fails to start.

 

2021-12-27T08:55:23.877231Z qemu-system-x86_64: vfio: Cannot reset device 0000:00:14.0, no available reset mechanism.

I'll investigate and see if we should perhaps not show these as valid options at all but this behavior is not consistent and in some cases the vm can start but when you stop it can hang indefinitely or sometimes the device just hangs or sometimes even works as well depending on the hardware/drivers of the device in question.

 

Also please feel free to create a suggestion ticket for USB passthrough if you only want to do that in reality. 

 

Hans Maulwurf 
December 27, 2021 at 7:10 PM

Hi , i added a file with he output. The name of the VM is "HomeAssistantNew".

Complete

Details

Assignee

Reporter

Labels

Impact

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created December 25, 2021 at 3:06 PM
Updated July 1, 2022 at 5:56 PM
Resolved January 7, 2022 at 11:35 AM