While I've not personally tried using DiskWarrior, just have never had the need, nonetheless I'd assume it would work to some degree within a Virtual Machine. In other words I don't see why it wouldn't be able to see the disk layout structure and make repairs to the filesystem as necessary.
Another thing to consider is using First Aid in Disk Utility.