Unable to RDP into Host

116 views
Skip to first unread message

Gerane

unread,
Jun 23, 2015, 2:52:18 PM6/23/15
to vagra...@googlegroups.com
After running a few Vagrant VMs I am no longer able to RDP into the Host. This remains true even if all Vagrants VMs have been destroyed. This was not an issue prior to installing Vagrant. 

If I bring up a VM, I am able to RDP into a guest from outside via IP:ForwardedPort. Is there a way to force any port forwarding configs to be flushed out if a Vagrant Destroy is not doing this?

dragon788

unread,
Jun 24, 2015, 3:30:41 PM6/24/15
to vagra...@googlegroups.com
Using Vagrant + VMware or Vagrant + Virtualbox? Primarily I'd suggest setting up your port forwardings in the vagrant file to avoid conflicting with the host's ports, and technically Vagrant should be doing this already if you are on a Windows host it will avoid 3389 and other "in use" ports, as on Linux it avoids 22 and some others.

Gerane

unread,
Jun 24, 2015, 9:26:50 PM6/24/15
to vagra...@googlegroups.com
I am using vagrant + virtualbox. I have this set up in my vagrant fie.

It is set to auto-correct in my vagrant file and usually maps to 2222. I can have all vagrant VMs destroyed yet my Host 3389 still cannot be accessed. I would think that even if there was some sort of conflict having all vagrant VMs destroyed should clear up any port forwardings? 

The only thing I can think of was a few test boxes I fired up for testing when I first installed vagrant. I just downloaded them from vagrant and used their default configs. These did not have port forwarding properly set up. I then edited their vagrant files to properly use auto correct. However, my 3389 is still broken.

Is there a way to check for any hung configurations or force defaults?

dragon788

unread,
Jun 25, 2015, 2:16:49 PM6/25/15
to vagra...@googlegroups.com
This sounds more like there is a firewall setting on the host that was changed and is blocking 3389 or something turned off the remote desktop services. You can check in Virtualbox under Network>NAT to see if there are any port mappings on 3389 and delete them, but it feels more likely that the network interface type of Local Area Connection got changed to public which enabled the firewall and is blocking RDP.

Gerane

unread,
Jun 25, 2015, 2:20:24 PM6/25/15
to vagra...@googlegroups.com
It turned out to be a permissions issues. Somehow the permissions of the MachineKeys directory had changed on my Host Box. The administrators group didn't have permissions to the folder. Windows was trying to create a new cert but was failing due to the lack of permissions.
Reply all
Reply to author
Forward
0 new messages