[英]Vagrant RDP => Windows2012R2 | How do I rdp into my vagrant box?
➜ ~ 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
我正在使用(vagrant box add) mwrock/Windows2012R2 --provider virtualbox
What else am I missing?我还缺少什么? How do I RDP into my vm?我如何 RDP 到我的虚拟机?
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:使用 RDP 转发为 Windows VM 配置Vagrantfile
:
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:当你vagrant up
应该会看到类似于:
==> default: Forwarding ports...
default: 3389 (guest) => 3389 (host) (adapter 1)
Then vagrant rdp
should launch Remote Desktop and connect to the VM.然后vagrant rdp
应该启动远程桌面并连接到虚拟机。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.