I had this problem as well. Shawn's suggestion that another Vagrantfile is
inherited was the source my problem. The .vagrant.d directory contained the
box definition and this contained a Vagrantfile with port 3389 begin
forwarded from guest to host. Changing that Vagrantfile solved the problem.
On Tuesday, 4 February 2014 01:19:05 UTC+1, Owain Perry wrote:
>
> Hi,
>
> I am having issues with port forward collisions. It seems to map 3389
> first regardless of what I specify in the configuration. Although it does
> do the mapping last , but the first port causes a collision with local
> running RDP service. I am also trying to get a multi machine environment
> setup.
>
> Host: windows 8
> Guest: windows 2012 (not r2)
> Vagrant: 1.4.3
> vagrant-windows: 1.5.1
>
> <config>
>
> Vagrant.configure("2") do |config|
>
> config.vm.define "web" do |web|
> web.vm.network :forwarded_port, guest: 3389, host: 3377 , id: "rdp",
> auto_correct: true
> web.vm.box_url = "http://localhost/boxes/windows_2012_virtualbox.box"
> web.vm.box = "win2012"
> web.winrm.username = "vagrant"
> web.winrm.password = "vagrant"
> web.vm.guest = :windows
> web.windows.halt_timeout = 15
> web.berkshelf.enabled = true
> web.vm.provider :virtualbox do |vb|
> vb.gui = true
> vb.customize ["modifyvm", :id, "--memory", "2048"]
> end
> web.vm.provision :chef_solo do |chef|
> chef.log_level = :info
> chef.add_recipe ("demo.rest.service::default")
> end
> end
> end
>
> </config>
>
> <output>
>
> [web] Clearing any previously set network interfaces...
> [web] Preparing network interfaces based on configuration...
> [web] Forwarding ports...
> [web] -- 22 => 2222 (adapter 1)
> *[web] -- 3389 => 3389 (adapter 1)*
> [web] -- 5985 => 5985 (adapter 1)
> *[web] -- 3389 => 3377 (adapter 1)*
> [web] Running 'pre-boot' VM customizations...
> [web] Booting VM...
>
> </output
>
> Any help appreciated.
>
> O.
>
>
--
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.