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:)
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?
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:
Enter your account's password when prompted.
sudo nano /etc/network/interfaces
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.
To save and exit: Ctrl + O, Enter, Ctrl + X
iface eth0 inet static
To restart networking:
sudo /etc/init.d/networking restart
it's saying no device as eth0 - how do i find out what the device is called?
To list available network intefaces, just run 'ifconfig'. There should be atleast an "ethX" adapter as well as a "lo" (loopback).
You might prefer to use VMware Server -It seems a lot easier to get bridged networking up and working than Virtualbox IMHO
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!
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?
Few things.. what is the output of these commands?
cat /etc/resolv.conf <-- should definitely be "nameserver 220.127.116.11" format
ping 18.104.22.168 (address of first nameserver entry from above)
ping 22.214.171.124 <-- Ctrl+C to cancel
There is loads of other stuff. Do you need that?
inet addr:10.33.225.237 Bcast:10.33.231.255 Mask:255.255.248.0
ping firstnameserver returns an answer
ping www.google.com returns host unreachable
Is this of help??
not when you obfuscate most of the information.
Is your default gateway set up properly? On your workstations, can you normally connect to the internet without specifying a proxy?
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.
Ok, try and ping the default gateway, as listed next to 'gateway' in /etc/network/interfaces.
Failing that just reboot and try again...? :)