internet in virtual machine not running

Tapas Mishra mightydreams at gmail.com
Fri Oct 22 16:17:52 UTC 2010


On Fri, Oct 22, 2010 at 9:30 PM, Alan Pope <alan at popey.com> wrote:
> On 22 October 2010 16:58, Tapas Mishra <mightydreams at gmail.com> wrote:
>> On Fri, Oct 22, 2010 at 8:15 PM, Alan Pope <alan at popey.com> wrote:
>>> On 22 October 2010 15:40, Tapas Mishra <mightydreams at gmail.com> wrote:
>>>> I have removed Network Manager Gnome from my Ubuntu which is a virtual
>>>> machine(Guest OS),I see the internet is no more running inside this
>>>> Virtual Machine.
>>>> While in other Virtual Machines (Other Linux) I had not removed
>>>> Network Manager Gnome and I see internet is running fine in them.
>>>>
>>>
>>> This mail contains lots of statements but no questions.
>> Ohh Sorry I forgot to type that.
>> The question is there is no internet currently in my Virtual Machine
>> and no ssh access.
>
> Am I reading this right? You removed network-manager (the package that
> sets up network connections)
Yes

> and wonder why the network connection is
> not there?
No :)

> have you configured the network manually now you have removed network manager?
Yes currently the network is manually configured but here is a catch
Network Manager Gnome is not present on the said virtual machine.

Now if my /etc/network/interfaces file has following content

auto lo
iface lo inet loopback
pre-up iptables-restore < /etc/iptables.rules

(remember network manager is uninstalled)
in the virtual machine when I do an ifconfig I see

eth0      Link encap:Ethernet  HWaddr 00:0c:29:47:2a:2d
          inet addr:192.168.43.129  Bcast:192.168.43.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe47:2a2d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1784 (1.7 KB)  TX bytes:4403 (4.4 KB)
          Interrupt:19 Base address:0x2024

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


I am able to do an ssh from an outside machine to the above virtual
machine (network manager is still not present)

Now if I change the file /etc/network/interfaces to

auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
pre-up iptables-restore < /etc/iptables.rules


then ifconfig on virtual machine gives following

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

now even the IP has gone and in both cases internet was not available
to VM and in this case even an ssh is not happening.

Also I observe
/etc/init.d/networking restart does not have any effect on the said
machine I have to reboot it each time I change the
/etc/network/interfaces

But the machine is not able to communicate to outside world.
The VM is Jaunty 32 bit and host is lucid 64 bit.
> Perhaps editing /etc/network/interfaces ?
>
> What was the rationale behind removing network manager?
I am learning  network programming.My programs on VM will also
communicate to the internet.

I do not want the Network Manager Gnome to over write any sort of
entries or configuration which I am going to do.




More information about the ubuntu-users mailing list