lxc hypervisor does not support PCI devices

Bug #1468762 reported by Yerkanat Ramazanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

OS: Ubuntu 14.04.02
OpenStack Kilo
Hypervisor: LXC

Nova: 1:2015.1.0-0ubuntu1~cloud0
libvirt-bin: Installed: 1.2.12-0ubuntu13~cloud0

I have lxc powered compute node with TeslaK40 card that I want to passthrough to VM. Tutorials that I used are:
https://wiki.openstack.org/wiki/Pci_passthrough
http://docs.openstack.org/kilo/config-reference/content/lxc.html

I can run simple VMs, however when I try to create VM with PCI then it fails.

Compute Node log:
2015-06-25 00:19:18.729 6509 ERROR nova.compute.manager [req-add1f483-f402-47dc-8701-574b8558d3d2 - - - - -] [instance: 5be8bf76-0f8f-4641-8fa8-5ba42ae19388] Instance failed to spawn
2015-06-25 00:19:18.729 6509 TRACE nova.compute.manager [instance: 5be8bf76-0f8f-4641-8fa8-5ba42ae19388] Traceback (most recent call last):
//SPAWNING LOGS
2015-06-25 00:19:18.729 6509 TRACE nova.compute.manager [instance: 5be8bf76-0f8f-4641-8fa8-5ba42ae19388] type=virt_type)
2015-06-25 00:19:18.729 6509 TRACE nova.compute.manager [instance: 5be8bf76-0f8f-4641-8fa8-5ba42ae19388] PciDeviceUnsupportedHypervisor: lxc hypervisor does not support PCI devices

I looked into /usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py and found out that libvirt does not support pci passthrough for other hypervisors except (Xen,KVM,QEMU). Is it bug?

This node originally used KVM, however I could not passthrough PCI successully there, If anybody wants to look into (It would be huge help):
https://ask.openstack.org/en/question/68667/kvm-pci-passthrough-nvidia-tesla-k40/
If any data is reqired I will provide it

Tags: libvirt lxc pci
tags: added: pci
removed: pci-passthrough
Matt Riedemann (mriedem)
Changed in nova:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

This wishlist bug has been open more than a year without any activity.
I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on.
This bug can be reopened (set back to "New") if someone decides to work on this.

Changed in nova:
status: Confirmed → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.