6

I am on Windows 7, building an ASP.net web application.

There are a few services that I need to connect to, and don't want to go through the hassle of installing them on Windows.

I also run VirtualBox with Ubuntu.

Can I install memcached (for example) on Ubuntu, and then connect to it from my windows operating system? If so, how?

Update

There seems to be a confusion in what I'm asking. I just want to connect to services running on my Ubuntu virtual machine from my host/parent windows 7 operating system.

Is this possible?

user27449
  • 7,178

3 Answers3

3

Once you have installed Memcached (or in fact any other software) on the guest, you can easily connect to that instance from the host (Windows 7 in your scenario). You have to configure the VirtualBox to let the guest and the host to talk to each other.

There are different networking modes in VirtualBox (Bridged Networking, Internal Networking, Host-Only Networking etc). Based upon your requirement you can configure the appropriate networking mode by following the instructions in the URL.

I have Ubuntu 11.04 as Guest and Host OS using VirtualBox and I have installed Hadoop on them. I configured VirtualBox for Bridged Networking and the applications in the host and the guest were able to talk to each other. The disadvantage of the Bridged Networking is that the Host has to be connected to a physical network (through a router or something, so that the host and the guest can talk to each other). If the host machine is not connected to a physical network then Host-Only Networking should be configured in the VirtualBox.

Gareth
  • 19,080
1

Actually sounds like this might be better asked as multiple questions (1)How can I install memcached on Ubuntu and (2) How can I connect my asp.net app to a memcached instance running on a separate Ubuntu machine.

You may want to check out this article where the author basically tries to do exactly what you're doing: http://www.codeproject.com/KB/web-cache/Memcached.aspx

Pretty sure you can install memcached on ubuntu via apt these days:

sudo apt-get install memcached
/etc/init.d/memcached restart
brendan
  • 446
1

Most of these services already listen for commands over TCP/IP ports. All that is left is to setup the required networking. There are many configuration possible, ranging from the guest being able to only talk to the host, and up to the guest being fully equal to the host as a network computer.

A good place to start is this tutorial : Network & sharing in VirtualBox - Full tutorial, which explains nicely all the concepts and software, and with many screen-captures.

harrymc
  • 498,455