1. A system comprising: a virtual device detector to detect an indication of a virtual Peripheral Component Interconnect Express (PCIe) device, the indication of the virtual PCIe device being associated with a template; a resource allocator to allocate, from a pool of available resources, based on the template, a plurality of resources required for the virtual PCIe device; and an activation module, to generate a set of entries in a resource mapping table, the set of entries corresponding to the allocated resources, the set of entries to define the virtual PCIe device.