Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3026
  • Last Modified:

Can't get Host to connect to its VirtualBox SQLServer Database

I've been given a Virtual Machine and am running it using VirtualBox on my Windows 7 machine.

The Virtual Machine is using Windows Server 2008 and contains a MS SQL Server 2008 database which I would like to access from my host.

I set up the guests network adapter to use the Bridged Adapter and created a Bridged to my Local Area Connection in my host.

I can ping the IP address of the guest from my host.

I can directly access the database on the guest machine.

Using Microsoft SQL Server Manager on my host I am trying to establish a connection to the virtual database, and this is where I'm stuck. I'm not even sure what server name to enter. Everything I try just ends up with a "cannot connect" error.

This networking stuff is a little over my head.

How do I connect to this database?
0
Tony McCreath
Asked:
Tony McCreath
  • 2
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You do not need to change any network settings on the host, and create a bridged connection.

Setting a Bridge Network Connection on the VM, both the VM and Host should have network IP addresses which on the same network?

Make sure Firewalls are disabled on Host and VM, and try specifying an IP address or Servername in the SQL Manager.
0
 
Tony McCreathTechnical SEO ConsultantAuthor Commented:
Got it.

It looks like it was the windows firewall on the guest that was blocking things.

Now to work
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
no problems.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now