There's also 'Source Code' https://www.imdb.com/title/tt0945513/
Not fully virtual, though. Just the badly maimed torso and head of a victim of a terrorist attack on a train, brain wired to systems, stimulating the last working remains to replay the last 8 minutes over and over again. To gather information and reconstruct 'whodunnit'.