Automatic virtual machine setup