You need to write a Rule using the Rules API to transfer data from a physical device to a virtual device. The following link should help.