簡體   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

我正在使用(vagrant box add) mwrock/Windows2012R2 --provider virtualbox

我還缺少什么? 我如何 RDP 到我的虛擬機?

這是一個老問題,但看看它是如何成為谷歌的最佳結果之一,我將提供一個最近的答案。

測試:

  • 主機:macOS 10.13.6 (High Sierra)
  • 虛擬機:Windows 10 1803 (RS4)
  • 流浪者 2.1.5
  • 微軟遠程桌面 10.2.1

腳步:

  1. 使用 RDP 轉發為 Windows VM 配置Vagrantfile

     config.vm.guest = :windows config.vm.communicator = "winrm" config.vm.network "forwarded_port", guest: 3389, host: 3389
  2. 啟用遠程桌面。 在虛擬機中:

    • 開始 > 設置 > 遠程桌面 > 啟用遠程桌面
  3. 安裝 RDP 客戶端

當你vagrant up應該會看到類似於:

==> default: Forwarding ports...
  default: 3389 (guest) => 3389 (host) (adapter 1)

然后vagrant rdp應該啟動遠程桌面並連接到虛擬機。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM