➜ ~ vagrant rdp
==> default: Detecting RDP info...
default: Address: 127.0.0.1:3389
default: Username: vagrant
==> default: Vagrant will now launch your RDP client with the connection parameters
==> default: above. If the connection fails, verify that the information above is
==> default: correct. Additionally, make sure the RDP server is configured and
==> default: running in the guest machine (it is disabled by default on Windows).
==> default: Also, verify that the firewall is open to allow RDP connections.
I'm using (vagrant box add) mwrock/Windows2012R2 --provider virtualbox
What else am I missing? How do I RDP into my vm?
This is an old question, but seeing as how it's one of the top results in google I'll provide a recent answer.
Tested with:
Steps:
Configure Vagrantfile
for Windows VM with RDP forwarded:
config.vm.guest = :windows config.vm.communicator = "winrm" config.vm.network "forwarded_port", guest: 3389, host: 3389
Enable Remote Desktop. In the VM:
When you vagrant up
should see something similar to:
==> default: Forwarding ports...
default: 3389 (guest) => 3389 (host) (adapter 1)
Then vagrant rdp
should launch Remote Desktop and connect to the VM.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.