Add VM and prepare some data for VM.