Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

vfio error cause failed to start privileged kata container #1712

@zhabinecho

Description

@zhabinecho

Description of problem

When I create the POD with network interface passthrough to guest, it fails:

time="2019-05-18T16:52:11.569715264+08:00" level=error msg="failed to hotplug VFIO device" ID=396f4418692cb203212f3c1ef479f14e2a1911b946676dfcae168da4de749a85 error="QMP command failed: vfio error: 0000:5c:00.0: device is already attached" sandbox=396f4418692cb203212f3c1ef479f14e2a1911b946676dfcae168da4de749a85 source=virtcontainers subsystem=sandbox vfio-device-BDF="5c:00.0" vfio-device-ID=vfio-f20ea15af640067e0

time="2019-05-18T16:52:11.569748867+08:00" level=error msg="Failed to add device" ID=396f4418692cb203212f3c1ef479f14e2a1911b946676dfcae168da4de749a85 error="QMP command failed: vfio error: 0000:5c:00.0: device is already attached" source=virtcontainers subsystem=device

The pci device 5c:00.0 has already pass to guest through qemu, the qemu command as follow

-device vfio-pci,host=0000:5c:00.0

Maybe the vfio in container devices don't need hotplug when start privileged kata container?

Expected result

Actual result


(replace this text with the output of the kata-collect-data.sh script, after
you have reviewed its content to ensure it does not contain any private
information).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions