add remote_command option, split out from create_vm