Help save net neutrality! Learn more.

unable to connect to internet inside colinux

  • dsharma

    dsharma - 2010-08-26

    Hi , iam new to colinux. I just installed it on my Windows XP machine. I downloaded and extracted Fedora10 file image and a swap file of size 512 Mb. But when i start colinux then iam unable to install anything. The message shown is  "eth0: no IPv6 routers present" . Iam using eth0=slip. Please tell me the steps configure my example.conf  to connect to internet inside colinux.

    My example.conf file contents are:

    # This is an example for a configuration file that can
    # be passed to colinux-daemon in this manner:
    #    colinux-daemon @example.conf
    # Note that you can still prepend or append configuration and
    # boot parameters before and after '@', or you can use more
    # that one '@ to load several settings one after another.
    #    colinux-daemon @example.conf @overrider.conf mem=32
    # Full list of config params is listed in colinux-daemon.txt.

    # The default kernel

    # File contains the root file system.
    # Download and extract preconfigured file from SF "Images for 2.6".
    cobd0="C:\Nagios Core\Fedora-10.img"

    # Swap device, should be an empty file with 128..512MB.
    cobd1="C:\Nagios Core\swap.img"

    # Tell kernel the name of root device (mostly /dev/cobd0,
    # /dev/cobd/0 on Gentoo)
    # This parameter will be forward to Linux kernel.

    # Additional kernel parameters (ro = rootfs mount read only)

    # Initrd installs modules into the root file system.
    # Need only on first boot.

    # Maximal memory for linux guest

    # Select console size, default is 80x25

    # Slirp for internet connection (outgoing)
    # Inside running coLinux configure eth0 with this static settings:
    #ipaddress   broadcast   netmask
    #gateway    nameserver

    # Tuntap as private network between guest and host on second linux device

    # Setup for serial device
    #ttys0=COM1,"BAUD=115200 PARITY=n DATA=8 STOP=1 dtr=on rts=on"

    # Run an application on colinux start (Sample Xming, a Xserver)
    #exec0=C:\Programs\Xming\Xming.exe,":0 -clipboard -multiwindow -ac"

    My ipconfig results:
    Subnet Mask . . . . . . . . . . . :
    Default Gateway . . . . . . . . . :
    Default Gateway . . . . . . . . . :

  • Henry N.

    Henry N. - 2010-08-26

    "udev" is no problem inside Fedora10.

    Have quick checked Fedora-10-20090228.exe. Simple unpacked to my favorite directory, adjusted the paths from "C:/Program Files/coLinux/" to my directory and started the batch start-Fedora-10.bat
    Inside Linux started "yum grouplist", and I see, network runs fine.

  • Henry N.

    Henry N. - 2010-08-27

    2010-08-27 11:59:14 CEST
    Hi, Iam new to colinux. I installed colinux with Fedora 10 as root file system image on my windows machine but iam unable to connect to internet through 'slirp'. When i do ping (which is my gateway ip address) it shows 0% packet loss. Please tell me the detailed steps to enable networking through slirp. What should i write next to eth0 (eth0=slirp,????)in .config file.

    eth0=slirp is enough.
    More options are for VNC, please see in file start-Fedora-10.bat, you have also extracted from arcive.

    If you can ping, then the Linux side seams be ok.

    If you use redirections (the additional tcp and udp options after the eth0=slirp,…), then you must allow colinux-slirp-net-daemon.exe these ports. Generally you must allow outgoing Internet traffic for colinux-slirp-net-daemon.exe, please check this, or disable the firewall temporally.

    Is your Internet settings on Windows OK? Why ipconfig prints two the same gateways and no IP address and no DNS server?

  • dsharma

    dsharma - 2010-08-30

    Fedora10.bat contents are:
    "colinux-daemon.exe kernel=vmlinux initrd=initrd.gz mem=256 cobd0="E:/Nagios Core/Fedora-10.img" cobd1="E:/Nagios Core/swap.img" root=/dev/cobd0 eth0=slirp, ro"
    Are these contents OK? Yes, through ifconfig eth0 i can  see
    ping is working fine. So according to your suggestions the only troubleshooting left is with firewall . I need to allow the exception for colinux-slirp-net-daemon.exe.

  • dsharma

    dsharma - 2010-08-30

    Iam also able to ping my connection-specific DNS suffix and the ip address which windows shows, but not able to connect to internet still.

  • Terry Weiss

    Terry Weiss - 2010-09-01

    I may be able to help here. I have had the same problem on several colinux instances. In each case, I was able to narrow it down to something with the MAC address. It seems that while some MAC addresses are valid, in the sense that they follow the rules, they can't be used. The tip I had was when my router would not allow me to create a static address for one of the ethx definitions I had (it was an ndis-bridge) and it complained about the MAC address, saying it was not valid. This was a hard coded address in my conf file. When I changed it - I used a MAC address generator - the router accepted it and then suddenly the machine could actually download and browse.

    In each case I had the similar symptoms. slirp, ndis-bridge and tuntap could resolve names, ping addresses and gateways, but could not wget or apt-get.


  • Henry N.

    Henry N. - 2010-09-01

    @terry, the MAC can not be a problem for slirp, because slirp is a user land proxy and your router can not see any MAC from Linux side. Slirp uses simple TCP and UDP sockets on the Windows side to send and receives the packets. So, for slirp your router will all times only see your MAC from Windows Ethernet card.

    @dsharma, how do you test the network connection? Remember, that you can not ping outside of the network 10.0.2.x via ping. This is not supported for mostly hosts. You needs to use command line functions like "host" or "wget".

  • Terry Weiss

    Terry Weiss - 2010-09-01

    re: slirp - yep you are right, but the issue is reproducible. I don't want to hijack this thread. I'll start another.

  • kevin hardiek

    kevin hardiek - 2011-02-10

    Was there a final resolution to this thread?  Thanks.

  • Henry N.

    Henry N. - 2011-02-10

    Resolustion was answer No. 5:

    I need to allow the exception for colinux-slirp-net-daemon.exe

    Disable the firewall temporally, and after that works set the specific option for SLiRP. Allow SLiRP for outgoing Internet connections.


Log in to post a comment.