Hightower Posted June 17, 2008 Posted June 17, 2008 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:)
Jona Posted June 17, 2008 Posted June 17, 2008 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
Hightower Posted June 17, 2008 Author Posted June 17, 2008 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?
webman Posted June 17, 2008 Posted June 17, 2008 (edited) 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: 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. 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: sudo /etc/init.d/networking restart Edited June 17, 2008 by webman
Hightower Posted June 17, 2008 Author Posted June 17, 2008 it's saying no device as eth0 - how do i find out what the device is called?
webman Posted June 17, 2008 Posted June 17, 2008 To list available network intefaces, just run 'ifconfig'. There should be atleast an "ethX" adapter as well as a "lo" (loopback). 1
somabc Posted June 17, 2008 Posted June 17, 2008 You might prefer to use VMware Server -It seems a lot easier to get bridged networking up and working than Virtualbox IMHO
Hightower Posted June 17, 2008 Author Posted June 17, 2008 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!
Hightower Posted June 17, 2008 Author Posted June 17, 2008 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?
webman Posted June 17, 2008 Posted June 17, 2008 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
Hightower Posted June 17, 2008 Author Posted June 17, 2008 (edited) ifconfig eth1 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 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?? Edited June 17, 2008 by Hightower
webman Posted June 17, 2008 Posted June 17, 2008 Is your default gateway set up properly? On your workstations, can you normally connect to the internet without specifying a proxy? 1
Hightower Posted June 17, 2008 Author Posted June 17, 2008 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.
webman Posted June 17, 2008 Posted June 17, 2008 Ok, try and ping the default gateway, as listed next to 'gateway' in /etc/network/interfaces. Failing that just reboot and try again...? 1
Hightower Posted June 17, 2008 Author Posted June 17, 2008 I restarted before - nothing. Haven't changed anything (that I know of) and a restart = sussed :S Oh well, it's working - cheers Craig
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now