Creating a virtual machine snapshot