ste*_*ep2 2 virtualbox virtual-machine vagrant
? ~ 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.
Run Code Online (Sandbox Code Playgroud)

我正在使用 (vagrant box add) mwrock/Windows2012R2 --provider virtualbox
我还缺少什么?我如何 RDP 到我的虚拟机?
这是一个老问题,但看看它是如何成为谷歌的最佳结果之一,我将提供一个最近的答案。
测试:
脚步:
Vagrantfile使用 RDP 转发配置Windows VM:
config.vm.guest = :windows
config.vm.communicator = "winrm"
config.vm.network "forwarded_port", guest: 3389, host: 3389
Run Code Online (Sandbox Code Playgroud)启用远程桌面。在虚拟机中:
当您vagrant up应该看到类似于以下内容的内容时:
==> default: Forwarding ports...
default: 3389 (guest) => 3389 (host) (adapter 1)
Run Code Online (Sandbox Code Playgroud)
然后vagrant rdp应该启动远程桌面并连接到虚拟机。
| 归档时间: |
|
| 查看次数: |
3135 次 |
| 最近记录: |