The original usage of the device plugin limits device allocation to one device per pod. However, to allow multiple pods to share a single device, a virtual device function is provided. After setting up the Virtual Mode in the device plugin, the following changes will be applied:
1) Each device is registered multiple times as specified in the yaml file using the VirtualNum parameter.2) When a user deploys an application pod and requests a single device, all available devices on the target worker node will be mounted into the user application pod.3) To use the virtual mode of the device plugin, the user application pod must share the XRM host network on the worker node where the pod is scheduled.