Ask Your Question
0

Instance is not booting with GPU passthrough

asked 2017-12-15 07:43:02 -0500

jacolex gravatar image

Hi I'm trying configure gpu passthrough with Tesla K40 on Openstack Ocata. Configuration of nova.conf: [pci] alias = { "vendor_id":"10de", "product_id":"1023", "device_type":"type-PCI", "name":"tesla_k40m" } passthrough_whitelist={"vendor_id":"10de","product_id":"1023"}

intel_iommu is enabled.

Flavor: +----------------------------+--------------------------------------+ | Field | Value | +----------------------------+--------------------------------------+ | OS-FLV-DISABLED:disabled | False | | OS-FLV-EXT-DATA:ephemeral | 0 | | access_project_ids | 00fef844a8ac47a698b63d6b4acdaaea | | disk | 40 | | id | g8-8 | | name | g.8VCPU_8GB | | os-flavor-access:is_public | False | | properties | pci_passthrough:alias='tesla_k40m:1' | | ram | 8192 | | rxtx_factor | 1.0 | | swap | | | vcpus | 8 | +----------------------------+--------------------------------------+

Creating and spawning instance is successfull, but virtualmachine stucks on "Booting from hard disk" on console. No log output of instance. Nothing in nova-compute and libvirt logs. This is virsh xml config of hard disk and pci:

<devices> <emulator>/usr/bin/kvm-spice</emulator> <disk type="file" device="disk"> <driver name="qemu" type="qcow2" cache="none"/> <source file="/var/lib/nova/instances/9907ddca-c340-4cc9-87fe-78396be83bab/disk"/> <backingstore type="file" index="1"> <format type="raw"/> <source file="/var/lib/nova/instances/_base/409c47b8208c854c1a44941de4b1004b1ed2e936"/> <backingstore/> </backingstore> <target dev="vda" bus="virtio"/> <alias name="virtio-disk0"/>

</disk> ... <hostdev mode="subsystem" type="pci" managed="yes"> <driver name="vfio"/> <source>
</source> <alias name="hostdev0"/>
</hostdev>

Seems that pci device is attached successfully.

How to diagnose this issue?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-06-04 22:28:50 -0500

jguldmyr gravatar image

Have you prevented the host OS from using the GPU with VFIO?

edit flag offensive delete link more
0

answered 2018-06-04 21:27:02 -0500

cervigni gravatar image

I have exactly the same issue, did you find a solution for this problem?

Thanks

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-12-15 07:43:02 -0500

Seen: 209 times

Last updated: Jun 04