The life and death of a virtual machine