0

I want to connect to SQL server on VirtualBox VM from Host machine via SSMS and .NET code. Details are as follows

  • Host: Window 10 Professional
  • Virtual Box Ver.:5.2.8 r121009 (Qt5.6.2)
  • Guest: Window 7 Professional(Firewall down)
  • Network: Host:Asus Router- DHCP enter image description here Guest: Currently on NAT enter image description here enter image description here Each time i try to connect from Host, it fails.

SQL Configuration is as follows, Services enter image description here


Protocol enter image description here


TCPIP Properties enter image description here

Please help.

thank you Dheeraj Kumar

1 Answer 1

0

I solved it, do below steps

  1. Go to Virtual Box application on Host machine
  2. Now go to settings for Virtual machine
  3. Change Attached To: Bridged Adapter
  4. Now this step is tricky, you may need to choose/try different option here, select one try to run VM and see if it gets the IP address, if not choose another and try again
  5. Once VM gets IP, you can connect it from Host
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.