VirtualBox - remote connect to SVN Server

Discussion in 'Site & Server Administration' started by l3l00, Jul 28, 2013.

  1. #1
    I set up an SVN server with Centos 6 inside virtualbox, what I want to do is connect to this virtual OS (when it is running of course) for my computers connected to my network. I tried entering the ip address with /svn/repo_name just it does not want to connect.

    What do I need to do?
     
    l3l00, Jul 28, 2013 IP
  2. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #2
    you have to be more specific about your issue and your set-up. for example, what kind of network is your VBox machine using? Is it NAT'ed, bridged etc?

    are you able to ping the VBox machine by IP address? Is your SVN server up and listening on some port? Do you have any firewall blocking your traffic? Are you able to telnet to your SVN server port?

    saying just 'it does not want to connect' is not helpful for anybody at all
     
    RoseHosting, Jul 28, 2013 IP
  3. l3l00

    l3l00 Greenhorn

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    I am using NAT
    I pinged it and nothing. I am new to SVN and not sure how I can get it to listen to certain ports
    have it as /var/www/svn


    eth0
     
    l3l00, Jul 28, 2013 IP
  4. RoseHosting

    RoseHosting Well-Known Member

    Messages:
    230
    Likes Received:
    11
    Best Answers:
    11
    Trophy Points:
    138
    #4
    I encourage you to check the networking modes part from the VBox manual. Your VM is NAT'ed and you can't access it from your physical network

    tl;dr

    NAT gives the ability to the VM to access the Internet via a private IP which is unroutable from the host or your LAN etc.

    what you want to use is Bridget mode so that your VM will act as any other machine on the LAN and can be accessible via IP etc.

    as for the SVN server, have you actually started it up? you basically have to do something like:

    mkdir /path/to/repos
    svnadmin create /path/to/repos/test_repo
    Code (markup):
    and then adjust your repository ACLs in the svnserve.conf and start the server via:

    svnserve -d -r /path/to/repos
    Code (markup):
    note that it is strongly recommended to run the server using some non-privileged user

    or you're using SVN with WebDAV?
     
    RoseHosting, Jul 28, 2013 IP
  5. l3l00

    l3l00 Greenhorn

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #5
    I have been reading: http://www.if-not-true-then-false.com/2010/install-svn-subversion-server-on-fedora-centos-red-hat-rhel/

    attempting again with bridge
     
    l3l00, Jul 28, 2013 IP
  6. l3l00

    l3l00 Greenhorn

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    okay I did a bridge connection, VBox IP is 192.168.1.109
    svn/harrow_world (test repo I made)
    so I went to my normal desktops browser and typed in: 192.168.1.109/svn/harrow_world
     
    l3l00, Jul 28, 2013 IP
  7. l3l00

    l3l00 Greenhorn

    Messages:
    58
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #7
    did a ping and got a response, so that is a good start.
     
    l3l00, Jul 28, 2013 IP