How does a host PC remain free from viruses on a VM?

253 views

Hello everyone,

I recently heard that a host PC is unaffected from viruses that have infected a virtual machine on that PC? How can this be the case, as both share the same hardware?

In: 9

6 Answers

Anonymous 0 Comments

The fact it runs on the same hardware isn’t super important, given most malware doesn’t infect hardware. For the rare malware that does (ie. firmware/UEFI malware), they have to get past the hardware abstraction layer that the hypervisor presents to the VM to access, which isn’t easy.

Most malware instead affects the file system of the environment you’re running in (ie. user files, applications and the OS). Since the file system of a VM is typically contained within the VM itself (virtual disks) and it does not share a file system with the host, any malware that infects the guest will not infect the host.

Unless the malware is specifically designed to exploit a vulnerability in the hypervisor and allows it to escape.

You are viewing 1 out of 6 answers, click here to view all answers.