First, my setup:
Mac OSX 10.8
Windows 7 running in VM (VMWare Fusion)
SQL Server 2008 R2 running in VM
Boatload of Python scripts + my highly customized Python installation on the Mac side.
I'd like to be able to run scripts locally on my laptop against a snapshot of our development database, which exists happily in my VM. I'd also like to not have the PITA that is rebuilding my Python installation in the Windows VM.
So the question: how can I access the SQL Server instance running in my VM from the Mac side? To access the production data, I use pymssql, which is based on FreeTDS.
I am running with this configuration, as follows:
Create an additional network adapter for the VM and set it as
"Private to my Mac". The default network adapter created during the VM set-up will be used by Windows to get to the network to which the Mac is attached (Internet, etc.) and this new one you create will be used for communication between the Mac and VM host.
The Mac IP on the virtual network can be identified using ifconfig. In my case it was named vmnet1 with IP 192.168.23.1
The Windows VM IP will, by default, be dynamically allocated. You should go into the network setup in Windows and set a static IP that is on the same network as that of the Mac IP. In my case the Windows network adapter created by Fusion was named Ethernet1. I set this to 192.168.23.100/255.255.255.0. Do not set a gateway address as you do not want routes down this path
Create an entry in the Mac /etc/hosts file for the Windows IP, e.g. "192.168.23.100 mywinsys.local"
Create an entry in the Windows /windows/system32/drivers/etc/hosts file for the mac IP, e.g. "192.168.23.1 mymacsys.local"
Be sure to turn off Windows firewall or otherwise open up necessary ports
Be sure that SQL Server is configured to accept IP connections
https://technet.microsoft.com/en-us/library/hh231672(v=sql.110).aspx
Processes running on the mac can connect to Windows processes with mywinsys.local. Processes running on Windows can connect to Mac process with mymacsys.local
Related
I created database on Oracle VM virtualmachine and I need to use it from my local computer for my project, which I develop on Visual studio. How could I do that?
The problem is unrelated to VS,
you need to make sure the network device you installed is reachable from the outer world, and that there is a route from your machine to the VM ip device.
What I write here is the simplest configuration in the case you have a home network...
withing Oracle virtualBox -> choose the VM ->(right click) Settings -> Network.
choose "Bridged Adapter" and select the physical card on your computer.
within the VM make sure the IP address is being taken from DHCP (How to do it depends on the Linux distribution you have).
After doing so - restart the network device within the VM, and make sure both of the machines, the windows and the linux, have the same IP segment, and that ping from the windows can reach the linux VM with Oracle.
If you do not have a home network -
The VM added another networking device on your windows machine (if it is hosted on the same machine), which you need to route the trafic to the VM IP to.
If it is not on the same machine - you need to make sure that the router both the machines are connected to knows about the path to the database.
After the networking issue was resolved (and you can practically ping from one machine to the other assuming the firewall allows it),
make sure the listener on the DB machine listens to the right address.
this link will help: http://docs.oracle.com/cd/B28359_01/network.111/b28317/listener.htm
Than you should be done.
Let me know if this wasn't the problem, and your issue is configuring VS - since this is a different issue, which will depend on if your using ODAC or ODT...
Also let me know if you don't know how to check/configure any of the things I wrote above - I didn't write it all since it is long and complicated to answwer all of it in one post...
I've really benefitted from all the answers out here and now it's my turn to ask for help.
My company uses CISCO VPN. They won't give me the Shared Secret for the group so I am forced to use the windows VM to connect to my work network.
I've tried using the MAC CISCO ISPEC but there it is. Anyway, I'd like to use the connection in my windows vm from my MAC side. I tried setting up a openVPN server on the windows and connecting to that from MAC and connect the CISCO vpn. All a no go.
So any suggestions will be very welcome.
Thanks all.
Well it might sound strange but you're going to have to setup 2 virtual NICs on the virtual machine. The first NIC is going to be bridged with the real physical NIC on the OSX box and that's going to be your outside interface. The next virtual NIC is going to be a host-only and this is going to be your inside interface. This is the one you'll use for OSX to connect through your windows machine. Then you'll need to remove all IP and DHCP configuration from your physical NIC on OSX to let the virtual machine use that NIC.
Every time you want to use the VM and the VPN you're going to have to remove the config on your physical NIC in OSX and then re-add it when you're done.
The windows machine will need to use internet connection sharing to allow OSX to use its VPN connection.
I would like to connect to QNX Neutrino OS (qconn) running on the VirtualBox from the Momentics IDE running on the Windows 7 (the same computer) via IP on 8000 port. I tried to get IP address of this virtual machine, and it seems to be the same as my real machine's and it doesn't work on it. Thank you in advance for your help.
So, just to clarify:
You are using Windows 7 as your host OS
QNX Neutrino RTOS is running in a VM
Using Momentics on the Windows host, you want to connect in the IDE to the QNX target
Let's assume the IP address of your Windows 7 machine is 192.168.1.101 (acquired by going Start ==> Run... ==> cmd ==> ipconfig )
First, have the network type for your QNX OS VM set to NAT (Network Address Translation). Then, you need to setup port forwarding (please see this URL: http://www.rustyrazorblade.com/2010/12/virtualbox-4-nat-port-forwarding-gui/).
Once you've finished, you should be able to connect from the Momentics IDE in Windows 7 to the QNX VM by specifying the following QCONN target in Momentics:
Target: 127.0.0.1:8000
HOSTNAME: QNX_NTO
The forwarding you setup will cause all connections to 127.0.0.1:8000 (the Windows host loopback connection) on port 8000 to be automatically redirected to your QNX VM.
I've done this myself and it worked. Hope this helps for you.
Cheers!
If possible, configure your QNX guest virtual machine to use Host-Only Networking - this will put it on a private network segment with your host Windows 7. You should then be able to access it by the IP address is it assigned. By default your Win7 host will have an address of 192.168.56.1 and your virtual machine will likely be assigned 192.168.56.2.
If your guest requires access to the internet or other networks, you could experiment with other network options like Bridged (the virtual machine would appear as another computer on your same network) or NAT (you would need to add port forwarding options).
I've downloaded and extracted the Hadoop virtual machine from http://developer.yahoo.com/blogs/hadoop/posts/2010/10/yahoo-cloud-virtual-machine-appliance/. I've started this up in VMWare Player on Windows 7, and logged in.
However, I can't then connect to the IP address shown for the VM through SSH, nor can I ping it. What could be wrong?
Solution was to power off the VM, go to the VM settings, and select Network Adapter->Bridged.
what errors are you seeing?
if it is related to 64bit settings (commonly happens when you run it on vmware player), you need to enable it in your BIOS settings and reboot the VM.
I have ubuntu 10.04 and virtual box running win xp now i want to test my page layout in ie so i want to access apache from with in my virtual box how can i set up this with out additional networking on the host (i.e. i want to have some kind'a peer to peer connection between the host and the guest)
You should be able to access your local (host) machine's Apache server from your Virtual Box using the default gateway of the virtual machine. If you type ipconfig at the command prompt, you will find that IP address.
Once you have that, just browse to that IP and folder in IE. (Or any other browser you might have installed, for that matter.)
Shutdown XP and delete all networking options for the VM from VirtualBox. Create a new networking option (by default), this is NAT. Start the XP VM and install VirtualBox Guest Additions. Rrefer the VirtualBox help file for instructions. You need to first mount the Vbox Guest Additions ISO as a CD-ROM drive. Restart the VM. Your XP guest and the Ubuntu host will be given IP on the same subnet. You can access Apache websites running on the host by typing the host IP address in the URL.