Page 1 of 1

Connecting Visual Studio & TFS using Virtualbox

Posted: 15. Aug 2015, 15:00
by Anil86
I want to connect Windows 10 (host) & windows server 2012 (guest) using Virtualbox.

Setup:

Windows 10: Visual Studio
Windows server: Team foundation server

Laptop is connected to WiFi.

I want Visual Studio & Team Foundation Server to communicate with each other.

What steps need to be taken to achieve this?

PS Note: I've no background knowledge about networking.

Re: Connecting Visual Studio & TFS using Virtualbox

Posted: 15. Aug 2015, 21:02
by noteirak
You have two choices:
- Use Host-Only mode and I would suggest a dedicated IP for the guest
- Use NAT mode and use port forwarding for the protocol you need

I would avoid Bridged mode since the host wouldn't be able to talk to the guest in case your Wifi is not connected. The two methods mentionned above work at all times.

Re: Connecting Visual Studio & TFS using Virtualbox

Posted: 15. Aug 2015, 22:03
by Anil86
noteirak wrote:You have two choices:
- Use Host-Only mode and I would suggest a dedicated IP for the guest
- Use NAT mode and use port forwarding for the protocol you need

I would avoid Bridged mode since the host wouldn't be able to talk to the guest in case your Wifi is not connected. The two methods mentionned above work at all times.
OK.

I'm using 2 adapters for guest.

Internal network : For TFS communication with Visual Studio
Bridged network : For TFS able to access internet (for doing updates).

I'm following Chaminda's blog's tutorial "Setup Virtual Environment for TFS 2013 - Using Virtualbox"
Here different components of TFS are installed on different VMs.

I wanted to know how can I install all TFS components on one VM & make it communicate with Windows 10 host (running Visual Studio).

Re: Connecting Visual Studio & TFS using Virtualbox

Posted: 15. Aug 2015, 22:06
by noteirak
Internal network is only valid for the VMs themselves, you won't be able to communicate with the host.
I told you which modes to use in my previous post, this is what you need to use.

If you're not sure what to do, tell me exactly where you are stuck and I can try to help you out

Re: Connecting Visual Studio & TFS using Virtualbox

Posted: 16. Aug 2015, 13:56
by Perryg
Copy from PM Please ask questions here and not PMs.
I'll use Host-only network.

I've taken following steps:

1. I've installed Windows Server 2012 on guest & installed Team Foundation Server in it.
2. I installed Active Directory Domain Services in Windows server & created a new forest with name WorkySoftwares (dot) net.
3. I gave a static IPv4 address (192.169.1.1) for guest.
4. I set DNS options to communicate only with above ip address.
5. I adjusted the Forward Lookup to the above ip address
5. I enabled file sharing & network discovery ON & added exception for them in firewall.

Please help me with, what are the next steps I should take?
Do these guests need to be visible from the LAN?
As for the IP you can not use the same address that the host uses but it will need to be within the same subnet.

You need to post your expectations of what it is you want in detail. What needs to see these guests.

Note: it is usually easier if the guests are in their own scheme outside the host. Meaning you would use internal for the guests and if they need to see the Internet you add another guest that works as a router. I use pFsense since it is small and really good at routing with very little adjustments. Or you can use another Windows guest that supports ICS (Internet Connection Sharing).