Dynamic reliability and security monitoring: a virtual machine approach