Well, it depends on the virus. If it's a worm or a ransomware virus, it will spread across the network and infect your real computer. To stop this, you would need to turn off your internet connection and unplug your Ethernet. so that the virus can't even travel through your wifi to infect your computer