+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
How do you do....it? Thread, Ubuntu Server 8.04 in Technical; I have VirtualBox running on my CC3 machine and have had no trouble running through the Ubuntu Server 8.04 install. ...
  1. #1

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241

    Ubuntu Server 8.04

    I have VirtualBox running on my CC3 machine and have had no trouble running through the Ubuntu Server 8.04 install.

    I can't seem to get the internet/network working on it (i want to do a 'apt-get update' which keeps failing) and have no idea where to look.

    Can anyone give any general pointers of what needs configuring and how after first boot to get this working in VirtualBox?

    I'm brand new to Linux so be kind! v

  2. #2
    Jona's Avatar
    Join Date
    May 2007
    Location
    Cranleigh
    Posts
    471
    Thank Post
    14
    Thanked 51 Times in 49 Posts
    Rep Power
    24
    I assume your using a non-transparent proxy which you haven't configured Ubuntu to use.

    See:
    How to use apt-get behind proxy server (Ubuntu/Debian) : mypapit gnu/linux blog
    How to apt-get behind a proxy? - Ubuntu Forums
    apt-get thru proxy - Ubuntu Forums

    Hope that helps.

    Cheers
    Jona

  3. #3

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Hi Jona,

    I don't think that's it - I've just tried it and it didn't work. I can't ping any computers on the network.

    I think it has to be much simpler than that. Maybe I just haven't configured the VirtualBox network adapter as it should be - do you know what this should be set to etc?

    I skipped the network settings on the server install also - how do I configure these and what should it be?

  4. #4

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327
    Normally you would just set the network to 'NAT' configuration in VirtualBox.

    To set the IP address, log in as the user account you created during setup and run:

    Code:
    sudo nano /etc/network/interfaces
    Enter your account's password when prompted.

    Look near the bottom of that file for "iface eth0 inet auto"

    Change it to look something like this, but change IP addresses etc to suit your setup.

    Code:
    iface eth0 inet static
        address     192.168.0.66
        netmask     255.255.255.0
        gateway     192.168.0.254
    To save and exit: Ctrl + O, Enter, Ctrl + X

    To restart networking:

    Code:
    sudo /etc/init.d/networking restart
    Last edited by webman; 17th June 2008 at 12:04 PM.

  5. #5

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    it's saying no device as eth0 - how do i find out what the device is called?

  6. #6

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327
    To list available network intefaces, just run 'ifconfig'. There should be atleast an "ethX" adapter as well as a "lo" (loopback).

  7. Thanks to webman from:

    bossman (17th June 2008)

  8. #7
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    112
    You might prefer to use VMware Server -It seems a lot easier to get bridged networking up and working than Virtualbox IMHO

  9. #8

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    I don't mind using VirtualBox because it means I learn more - I wouldn't have learnt this about networking without using VirtualBox.

    Thanks for your help Craig! I tried eth1 before your post which worked - but thanks for the ifconfig command.

    I'll not doubt post soon asking for more help!

  10. #9

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    So, trying to do a apt-get update and nothing is coming back.

    Tried pinging Google and nothing.

    I thought DNS issues but I've checked the file for it and they are listed as they are for rest of network:

    nameserver address of svr1
    nameserver address of svr2
    nameserver address of svr3

    Should it say nameserver? Or the name of the Server?!

    I can ping the machine from my computer and it responds?

  11. #10

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327
    Few things.. what is the output of these commands?

    ifconfig eth1

    cat /etc/resolv.conf <-- should definitely be "nameserver 1.2.3.4" format

    ping 1.2.3.4 (address of first nameserver entry from above)

    ping 217.23.229.7 <-- Ctrl+C to cancel

    ping google.co.uk

  12. #11

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    ifconfig eth1
    Code:
    inet addr:10.33.225.237 Bcast:10.33.231.255 Mask:255.255.248.0
    There is loads of other stuff. Do you need that?

    cat /etc/resolv.conf
    Code:
    search local
    nameserver 10.33.224.2
    nameserver 10.33.224.19
    nameserver 10.33.224.16
    ping firstnameserver returns an answer

    ping www.google.com returns host unreachable

    Is this of help??
    Last edited by Hightower; 17th June 2008 at 01:53 PM.

  13. #12

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,812
    Thank Post
    110
    Thanked 585 Times in 506 Posts
    Blog Entries
    1
    Rep Power
    225
    not when you obfuscate most of the information.

  14. #13

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327
    Is your default gateway set up properly? On your workstations, can you normally connect to the internet without specifying a proxy?

  15. Thanks to webman from:

    Hightower (17th June 2008)

  16. #14

    Hightower's Avatar
    Join Date
    Jun 2008
    Location
    Cloud 9
    Posts
    4,920
    Thank Post
    494
    Thanked 690 Times in 444 Posts
    Rep Power
    241
    Yes, we can go through 10.33.224.1 for county gateway, or 10.33.224.255 which is SmartCache or nothing at all which works fine.

    Sorry about the 'x' - editing now to show info.

  17. #15

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,413
    Thank Post
    642
    Thanked 964 Times in 664 Posts
    Blog Entries
    2
    Rep Power
    327
    Ok, try and ping the default gateway, as listed next to 'gateway' in /etc/network/interfaces.

    Failing that just reboot and try again...?

  18. Thanks to webman from:

    Hightower (17th June 2008)

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Ubuntu VPN Server
    By Jackd in forum *nix
    Replies: 1
    Last Post: 9th December 2007, 09:48 PM
  2. Ubuntu Server Error
    By Jackd in forum *nix
    Replies: 5
    Last Post: 2nd October 2007, 08:25 PM
  3. Ubuntu Server FQ Domain name not set
    By mark in forum *nix
    Replies: 6
    Last Post: 26th July 2007, 11:35 AM
  4. Replies: 28
    Last Post: 20th November 2006, 03:44 PM
  5. Replies: 18
    Last Post: 8th July 2006, 12:13 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •