[英]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.
我正在使用(vagrant box add) mwrock/Windows2012R2 --provider virtualbox
我還缺少什么? 我如何 RDP 到我的虛擬機?
這是一個老問題,但看看它是如何成為谷歌的最佳結果之一,我將提供一個最近的答案。
測試:
腳步:
使用 RDP 轉發為 Windows VM 配置Vagrantfile
:
config.vm.guest = :windows config.vm.communicator = "winrm" config.vm.network "forwarded_port", guest: 3389, host: 3389
啟用遠程桌面。 在虛擬機中:
當你vagrant up
應該會看到類似於:
==> default: Forwarding ports...
default: 3389 (guest) => 3389 (host) (adapter 1)
然后vagrant rdp
應該啟動遠程桌面並連接到虛擬機。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.