Configure VirtualBox to run three Server under one private domain - networking

I need to setup VMs on VM VirtualBox. The ultimate goal is to create SharePoint 2013 Development environment. I want private network with DNS ... Active Directory Server running on window server 2012, another VM running SQL Server Database and 3rd VM running SharePoint. Networking and Server configuration is new area to me so I am struggling with these topic.
Now I have install window server 2012 with adopter 'Internal Network' without DHCP (Disable) and give static IP address to this window, but then I don't have internet access and it case undefined network.
My first step is to install Active Directory on this within a domain and put SQL database server and SharePoint Server under the main domain.
I need guideline.!! is my steps are correct??
Many Thanks in advanced

Ultimately you do not want this test network to have access to the interenet as it could cause disruption in your production network. I have a dev Sharepoint 2013 environment with VirtualBox using server 2008 r2.
I created a host-only network in VirtualBox v4.3 ( I think there is one by default ). I configured it to not have dhcp, as my test DC would handle that for me, under File > Preferences > Network > VirtualBox Host-Only Adpater. Assigned that adapter and only that apdapter to my VM's. I was able to have the machines communicate to eachother and to the host. I used the host to do any required downloads and then pass them to the VM's using the C$ shares or shared folders i configured on the VM settings. More importantly i dont have to worry about other computer finding my Dev DHCP server.
https://www.virtualbox.org/manual/ch06.html#network_hostonly

Related

Cannot establish network link between host and VM on Hyper-V

I'm having trouble creating a network link between my Hyper-V host machine and its VM (both are running Windows 10).
I created an virtual external switch for both the host and VM so that both can access the internet and download programs and Windows updates, but I could not get them to communicate with each other directly. My research told me to create a virtual internal switch in Hyper-V and then have the devices be able to access each other that way (presumably by doing something like typing \\host_machine_IP\c$ into an explorer window once the network connection had been made). But once I created the virtual internal switch and assigned static IP address to both the host and VM on it, I still could not ping the host from the VM, or vice versa.
Am I missing a step? Let me know what more details you guys need.
By default you would have Windows Firewall blocking your communications until you confirm network profile to be other than Public. Try selecting a home\work network location profile via Control Panel > Network and Sharing canter. Or disable the firewall on the machine you try connecting to. Otherwise you should have no communication problem with the setup described, provided the subnet is the same for both machines.

Network adapter not working after a couple of minutes Windows Server 2012

we have been trying to solve a strange problem for the last 2 days but after a lot of searching we are stuck at the same point. We previously had Windows Server 2012 and it was working great, no problems, but decided to upgrade to R2 and that's where all our problems started.
Server:
HP PorLiant ML310e Gen8
2 Network cards ( Broadcom NetExtreme Gigabit Ethernet )
Windows Server 2012 R2
Clients:
Windows 8.1 Pro
We use one of the network cards for the server and the other for a virtual machine in Hyper-V. When the server was updated, all users, groups and permissions where created and assigned, so every member of the network could join their computers with their new users and passwords (no problem here), but when clients try to access the shared folders of the network they are unable to do so. And they can't ping the server.
So, the deal is that when the server is just started (or restarted) every client can see the network directories, can ping the server, everything works just fine for 2 or 3 minutes, then the network falls apart and there is no way for us to bring it back up other than restarting the server, but again it only works for like 3 minutes.
If we try to ping the server's IP address we get the 'General Failure' Message.
We have tried:
Enabling and disabling network adapters
Changing the order of the network adapters
Hyper-V is not being started
Disabling Network Load Balancing (NLB)
Disabling Large Send Offload (LSO) both with netsh and in the card's properties
Change the network adapter static IP
Disabling IPv6
Disabling the 'Allow the computer to turn off this device to save power'
Also noted that the server is getting several IP addresses from the DHCP. We have Microsoft Dynamics CRM 2013, and SQL Server 2012 installed.
Can any of you guys please help us with this situation? we'll be very grateful :)
Thanks in advance!
Greetings!
Ok,so this was an ol' windows trick... no matter what configuration we tried, windows server kept taking down the network minutes after it was started, so we:
Completely uninstall both network adapters
Restarted the server
Did the standar network adapter configuration (static IP addres, network, gateway, set the virtual switching for Hyper-V)
And everything started working again. So we kept the same configuration as before; Windows just needed to install the network adapters again.
Greetings!

Hyper-v internal lab and internet connection

I have created and I am happily using a virtual lab with Hyper-V software on my Windows 8 professional.
The lab include four servers:
Windows Server with Active Directory and DNS
Windows Server with SQL Server 2012
Windows Server with SharePoint 2013 server
All the servers have the following network configuration
IP Address: 192.168.10.x
Subnet Mask: 255.255.255.0
Everything works as expected. Now I need to make something to make the lab access the internet. By reading here and there I have found a post which explains how to setup the ICS.
I suspect however that this will not work in my case because the configuration of the IP address used by ICS which is in a different subnet (192.168.137.1).
How can I do to make the lab access the internet for windows updates?
Thanks
EDIT:
I have added a small simple diagram to explain the scenario.
You could create another virtual switch which is external. Add another network interface to your devices and conect the external virtual switch. Just activate the network interface when you need to update so it won't interfere with your lab enviroment.

Access localhost on the main machine from VMware Workstation 8 for ASP.NET development test

I run an ASP.NET Development Server (that came with MS Visual Studio 2010) on my Windows 7 machine. I'm currently developing an ASP.NET C# web application and to test it on Windows 7 machine I need to navigate my web browser to an address like this:
http://localhost:59215/Default.aspx
I also have the VMware Workstation 8 installed on that Windows 7 with other OS as virtual machines. I need to try to load my web app from those virtual machines, but when I type the above address there I get "Cannot display page" error in a browser. Note that I can access internet from a virtual machine itself, but for some reason localhost on the main machine is not accessible.
Any ideas how to set this up?
OK, I got it!
For those who're interested, here's how:
Say, my developement URL on the host computer is:
http://localhost:59215/Default.aspx
Download this util, called tcpTrace and run it on a host machine. When it starts configure it as follows:
Listen to port #: 80
Destination Server: localhost
Destination Port #: 59215 (which will be different in your case)
Click OK and let tcpTrace run on the host computer.
On the virtual machine navigate the browser to the IP address of the host computer, for instance in my case:
http://192.168.0.4/Default.aspx
and it will work!
PS. To get an IP address on the host machine, run ipconfig there (in a command prompt window). Your IP will be presented in the "IPv4 Address" line for network you're connected on.
PS2. Also my Windows 7 (host) doesn't come with any third-party anti-virus or firewall. It has a built-in Windows firewall and MS Security Essentials as an AVP. So if your setup is different one needs to open the incoming port 80.
PS3. Speaking of the VMWare Workstation, the virtual machine's network adapter setting is set on "NAT: Used to share the host's IP address" as it came out-of-box when you install it.
localhost is the local machine (to the OS).
I'm not sure if the VS dev server will allow external connections, you may want to install IIS - either way, you'll have to open up the Windows Firewall to allow external connections.
I'm no VMWare user but each OS will have its own IP address(?) - and that's how you'd connect to the Windows 7/IIS image. http://the.ip.address.of.the.win7.image/

Debug website on host from virtual machine

I have a Windows 7 machine hosting a Windows 7 virtual machine. I am developing a web application using visual studio 2010 on my host machine. I want to run the application in debug mode and access my localhost server from a browser on the virtual machine. (The purpose of this is to be able to debug an application that uses Windows Authentication using different users without having to log off and on for different users on my host machine...)
I am using a bridged connection for the virtual machine. I googled how to solve this problem and most of the threads that I found said that if I was using a bridged connection, I could access the server on the host machine by just entering the IP address of my host machine into the url in the browser of the virtual machine. I have tried some different urls using the IP but none of them have worked.
As an example, suppose I run my web application in visual studio on my host machine and its url is
http://localhost:62789/MyPage.aspx
Assume also that I ran ipconfig in CommandPrompt on my host machine and found out that the IP address for my host machine is xxx.xxx.xxx.x. What url should I enter on the virtual machine to access my web application?
Thanks in advance.
EDIT:
I set up IIS to host the web project. After that, I just added the following line (xxx.xxx.xxx.xxx is my IP) to my hosts file and I was able to access the website from the virtual machine:
xxx.xxx.xxx.xxx MyWebsite.net
I also had to edit my firewall settings.
I personally found it easiest to setup my virtual machine using the Microsoft Loopback Adapter, and assigning the virtual machine to that adapter. The Guest OS will be assigned it's own IP with DHCP. Using the Loopback Adapter will basically put your host and guest OS on the same network. The guest will only be able to access the host, and will not be able to access the internet.
You could then access the host from the guest using whatever ip address you see on the host(run ipconfig/all on the host).
Edit: FYI I am using Virtual PC so your milage may vary. THe Loopback Adapter is a free download from Microsoft.
Edit2: You will probably need to open ports on the host machine to allow access to the web server also. The guest OS's request will still be going through the Windows firewall
It seems like you might be using VisStudio's integrated Web Server. I'm not sure this can accept requests from any host other than localhost.
Remote machines cannot connect to Visual Studio web server
Simple solution? Use IIS to host the project. Once IIS is installed (if not already) it's easy to change the project settings such that a virtual directory is created and debugging occurs in IIS.

Resources