Link to home
Start Free TrialLog in
Avatar of tancat
tancatFlag for United States of America

asked on

Configure network settings for Virtual Box Ubuntu Server 12.04 guest

I am brand new to working with servers and networking and seem to be missing something in my understanding of the network config.  (My background is oracle development.)

I have a windows 7 pc upon which I have installed VirtualBox 4.2.18.  I have installed a guest machine, using Ubuntu Server 12.04 64-bit, and installed OpensshServer.  I did not enter http_proxy information (don't know quite what that is yet).  My intention is to install SVN for the purpose of learning, and eventually to give a demonstration for an evaluation at my company.  I just need to be able to reach the virtual machine from my pc, as though I were checking in/out files.  

I cannot figure out how to configure the network adapter(s) for the virtual machine so that I can reach the guest as though it were an SVN server.  I have tried NAT (with and without port forwarding - not that I really understand port forwarding), Host-only, and Bridged.  It seems that I can only ping the host from the guest, or vice versa, or I cannot get my windows host to find the guest when I use the hostname (svnserver).  I'd like not to have to use a static IP (I did actually get this to work using the hostname).  

I need to increase my understanding of how VirtualBox handles the network configurations, or someone to just tell me how to set it up, with some explanation.

Thanks,
Cali
ASKER CERTIFIED SOLUTION
Avatar of subhashchy
subhashchy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You need to use bridged network and configure ip settings in /etc/network/interfaces
Avatar of tancat

ASKER

Your statements,
     1. you want to setup your Vbox guest as a SVN server,
     2. Further you want to access it from your laptop using hostname NOT IP Address.
are correct - that is exactly what I want to do.

However, I'd like to do it without setting a static IP.  Maybe this isn't possible?  

I was able to get it to work while setting a static IP (in the interfaces file, hosts file, etc), but not while letting the Virtual BOX DHCP "choose" a different IP each time.  

Unfortunately I am in meetings the rest of today, so I'll have to try this tonight.  Let me confirm that I am able to make it work with a static IP and also figure out why I didn't want to do that (I think something down the line gave me a problem, but I can't remember now what it was).  

Thanks!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tancat

ASKER

I'm sorry, I didn't get a chance to get back to this for very long, and the relatives arrive this afternoon for Thanksgiving, so my ability to work on this this week will be somewhat spotty.  I'll try for next weekend.
well, the issue with DHCP will be that there will be no one to tell your client who that names means (In terms of Name to IP translation). Since DHCP does from Virtualbox or any hyper-visor of that sort does not function as DNS , the trouble is bound to happen.


Or you can have a reservation in the Vbox DHCP for the Guest and that will work out..
Avatar of tancat

ASKER

Thanks, guys; sorry for the delay in communication.  Work and family both got busy.  Also, I realized that I actually asked two questions here, so I asked the moderators if I could split this into two questions for 500 each but they said I couldn't do that.  So I split the points between you.  

gheist solved my initial problem that sent me down this path; I didn't realize that I could install SVN on my pc and create a local repository which works fine for a single developer and for demonstration.

subhashchy solved my network issue, which I needed to understand not just for this issue but also for another project that I'm working on.  I did not realize that the VBox DHCP and the ubuntu server each had a different IP, and I had the VBox DHCP IP in the hosts file.  

Thank you!
Even easier - you can do svnadmin create C:\XYZ\ from tortoisesvn and then point SubClipse to file:////c:/XYZ/
Avatar of tancat

ASKER

Just an additional comment on this issue - Bitnami created a Subversion VM that will run on VirtualBox using a linux OS, which would eliminate much of the manual setup I was doing.

http://bitnami.com/stack/subversion/virtual-machine
1) you dont need it
2) you really dont need it
3) you can run apache or svnserve on windows