简体   繁体   English

Vagrant RDP => Windows2012R2 | 我如何 rdp 进入我的流浪盒子?

[英]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.

1

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:测试:

  • Host: macOS 10.13.6 (High Sierra)主机:macOS 10.13.6 (High Sierra)
  • VM: Windows 10 1803 (RS4)虚拟机:Windows 10 1803 (RS4)
  • vagrant 2.1.5流浪者 2.1.5
  • Microsoft Remote Desktop 10.2.1微软远程桌面 10.2.1

Steps:脚步:

  1. 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
  2. Enable Remote Desktop.启用远程桌面。 In the VM:在虚拟机中:

    • Start > Settings > Remote Desktop > Enable Remote Desktop开始 > 设置 > 远程桌面 > 启用远程桌面
  3. Install an RDP client安装 RDP 客户端

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM