moved REMOTE_SESSION_KEY init into base attachVirtualMachine