Dot Net Dunk

Wandering in the land of .NET
posts - 42, comments - 21, trackbacks - 165

My Links

News

Archives

Post Categories

Blog Roll

Sourcesafe, Virtual Machines, and BizTalk Server 2004

This probably belongs in the "really, really obvious" category - but since it is also really really useful, I'll blog it :-)

Installing BizTalk 2004 isn't just a "Double click setup.exe" job, so it's nice to create a Virtual Machine containing your one-stop dev environment, containing SQL, VS.NET, BTS, NUnit, and so on. It's also nice to be able to connect up to network resources such as Sourcesafe, the Internet, and so on.

Now, networks don't like multiple machines with the same name, so if two developers indiscriminately start up the VM with normal networking enabled, it causes problems. Renaming a BTS server is a whole world of pain, but luckily there's a far easier solution - simply configure Virtual PC to use "Shared Networking (NAT)". This sets up a virtual NAT with your host machine as the gateway, meaning the network can't see your VM but your VM can see the network

To access your main network resources, you then have two options:

1) Using the "Local Users and Groups" MMC snapin, create an account on your guest OS with the same account name and password as your main domain account. As long as you keep the passwords in sync, you will be able to use domain-authenticated resources (such as Sourcesafe) without any further authentication just by logging in to your VM as that user. (For a discussion of why, see Keith Brown's excellent "Programming Windows Security" book).

Or

2) If you don't want to set up a local account, you can authenticate yourself to any server by doing the following:

- From a command prompt, type net use \\<servername>\ipc$ /user:<your domain name>\<your user name>

- Enter your password when prompted

- You are now domain-authenticated on that server.

If you use this method to connect to your SourceSafe sever then when you run sourcesafe you will be asked for your username. Just enter your network login name (eg 'dotnetdunk') and you can use SourceSafe as normal.

Personally, I prefer option 1 ;-)

Print | posted on Friday, May 14, 2004 7:57 AM | Filed Under [ BizTalk Server Nuggets ]


Feedback

# re: Sourcesafe, Virtual Machines, and BizTalk Server 2004

"Renaming a BTS server is a whole world of pain.." - I'm totaly agree!
And here is Greate decision for this ugly "the same comp name" problem.
Cool!
3/21/2006 1:08 AM | Leonid Ganeline

# re: Sourcesafe, Virtual Machines, and BizTalk Server 2004

Ok, I am trying this right now with the Shared Networking (NAT) as the only network connection configured for the Virtual PC. But we still receive "Duplicate Name exists on the network errors". Also, we are now having problems with sourcesafe where we cannot log into source safe from the host OS unless sourcesafe is running under the same user account on the guest OS.

7/5/2006 7:59 PM | Ben Runchey

# re: Sourcesafe, Virtual Machines, and BizTalk Server 2004

Hi Ben,

You sometimes seem to get the 'duplicate name' message because there's an old cached record of the name on the domain - e.g. if you or someone fired up the machine without the right networking turned on, even if they later fixed it. I'd not worry too much about it.

As for your host/guest VSS problem I'm not really sure what to suggest here - probably something I'd have to have a poke around myself. Sounds odd though... 7/10/2006 11:52 AM | Duncan Millard

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 7 and 5 and type the answer here:

Powered by: