An operating system that is running on a virtual machine runs in user mode, not in kernel mode. If it runs in kernel mode then there are no restrictions on what it can do, and the hypervisor cannot be in control of all resources.