diff --git a/plugins/commands/rdp/command.rb b/plugins/commands/rdp/command.rb index 835ab8543..0ee15cc33 100644 --- a/plugins/commands/rdp/command.rb +++ b/plugins/commands/rdp/command.rb @@ -25,9 +25,15 @@ module VagrantPlugins raise Vagrant::Errors::VMNotCreatedError end + machine.ui.output(I18n.t("vagrant_rdp.detecting")) rdp_info = get_rdp_info(machine) raise Errors::RDPUndetected if !rdp_info + machine.ui.detail( + "Address: #{rdp_info[:host]}:#{rdp_info[:port]}") + machine.ui.detail("Username: #{rdp_info[:username]}") + + machine.ui.success(I18n.t("vagrant_rdp.connecting")) @env.host.capability(:rdp_client, rdp_info) end end diff --git a/templates/locales/command_rdp.yml b/templates/locales/command_rdp.yml index 7f37eefd5..07a0e1e6a 100644 --- a/templates/locales/command_rdp.yml +++ b/templates/locales/command_rdp.yml @@ -1,5 +1,14 @@ en: vagrant_rdp: + detecting: |- + Detecting RDP info... + connecting: |- + Vagrant will now launch your RDP client with the connection parameters + above. If the connection fails, verify that the information above is + correct. Additionally, make sure the RDP server is configured and + running in the guest machine (it is disabled by default on Windows). + Also, verify that the firewall is open to allow RDP connections. + errors: host_unsupported: |- Vagrant doesn't support running an RDP client on your