cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

CS 4.20.1 : SR-IOV Passthrough PVI vNIC MAP to a VM interface

Open tatay188 opened this issue 6 months ago • 2 comments

The required feature described as a wish

We Just migrated to CS 4.20.1 As an Operator we need to be able to Map the vNIC to a VM interface - similar to VMWARE and OPEN-NEBULA

We loaded the PCI modules on the KVM agent, but there is no UI to take advantage of the PCI-vNIC, using regular linux bridges, VXLAN-guest and VLAN-Public, no DPDK.

Where we currently we are migrating VMWARE and opennebula VNF functions.

Does Cloudstack have at least a manual process to achieve this on cloudstack? No matter how old. or a Script that we Should activate?

expecting Something similar to OpenNebula:

**To use PCI passthrough in OpenNebula, the devices first has to be listed. OpenNebula is using host monitor to collect the available devices. This monitor is a script that is run regularly by OpenNebula on each host. It is located at:

/var/lib/one/remotes/im/kvm-probes.d/pci.rb

and it is configured with a configuration file at:

/var/lib/one/remotes/etc/im/kvm-probes.d/pci.conf

In this configuration, you can define which devices will be listed in OpenNebula as available for PCI passthrough. You can select devices based on PCI Id, PCI address or PCI device name. Example of configuration selecting Mellanox ConnectX-5 Virtual Functions:

:filter: '15b3:1018' :short_address: [] :device_name: []**

Image

Thank you

Tata Y.

tatay188 avatar Jun 17 '25 05:06 tatay188

@tatay188 you should be able to implement PCI passthrough with agent hooks feature [1] or extraconfig [2]

[1] #3839 [2] https://www.shapeblue.com/cloudstack-feature-first-look-enable-sending-of-arbitrary-configuration-data-to-vms/

rajujith avatar Jun 17 '25 07:06 rajujith

Thank you @rajujith DO you have an example for either to enable SR-IOV on a NIC like Mellanox® ConnectX®-5

Sending Arbitrary data to VMs is for all VMs, we want to impact just some VMs, like a Feature for specific VM's or VNF's

I am still trying to get more information about hooks about its logic, that is why I am asking an example with the SR-IOV

tatay188 avatar Jun 20 '25 00:06 tatay188

@tatay188 Sorry, I don't have examples for this use case. Regarding extraconfig, you should be able to set that per instance.

rajujith avatar Jun 24 '25 04:06 rajujith