To prevent problems with your virtual machines and to save space on your backup media, you should not back up virtual machines with Time Machine.
If you do not exclude virtual machines from Time Machine backups, Time Machine can back up a virtual machine while it is running. Restoring from this kind of backup would overwrite your current virtual machines with versions that are incomplete and potentially damaged. For the recommended method of backing up virtual machines, see Copy a Virtual Machine to External Media.