Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open windows desktop when using vagrant on mac os?

I am running vagrant to boot up a windows environment on mac os x Yosemite. I found that 'vagrant rdp' is only supported in windows. Then how could I be able to open the desktop of a windows virtual machine?

like image 896
Da Tong Avatar asked Feb 12 '23 18:02

Da Tong


2 Answers

You also need to have a RDP client installed. Install the Microsoft Remote Desktop app from here: https://itunes.apple.com/en/app/microsoft-remote-desktop/id715768417?mt=12

Then in the terminal:

vagrant rdp

The Remote Desktop app will launch automatically.

like image 197
Brandon Avatar answered Feb 16 '23 04:02

Brandon


If you haven't already done so, you will need to set the communicator and network ports in your Vagrant file as follow:

  config.vm.communicator = "winrm"

  config.vm.network "forwarded_port", host:3389, guest: 3389

The Vagrant example for this has a video that shows it working a Mac, so it should all be possible: https://www.vagrantup.com/blog/feature-preview-vagrant-1-6-windows.html

like image 23
Tom Burns Avatar answered Feb 16 '23 02:02

Tom Burns