[Tizen Application-dev] Networking problems with the Emulator

Iovene, Salvatore salvatore.iovene at intel.com
Wed Jan 30 07:32:22 GMT 2013


Hi,
I'm running the latest Tizen SDK on Ubuntu 12.10 64bit, and I'm having
connectivity problems with the Emulator.

I can't seem to be able to go in or out. Here's some output that will
hopefully help you help me:

HOST:~$ ps aux | grep qemu
siovene  28662  8.2  8.2 3487588 649508 ?      Sl   09:12   0:46
/home/siovene/tizen-sdk/tools/emulator/bin/emulator-x86 --skin-args
width=480 height=800
skin.path=/home/siovene/tizen-sdk/tools/emulator/skins/emul-general
--qemu-args -drive
file=/home/siovene/tizen-sdk-data/emulator-vms/vms/Default/emulimg-Default.x86,if=virtio,index=1
-boot c -append console=ttyS0 video=uvesafb:ywrap,480x800-32 at 60
dpi=2070 ip=10.0.2.16::10.0.2.2:255.255.255.0::eth0:none 5 virtio-9p
-virtfs local,path=/home/siovene,security_model=none,mount_tag=fileshare
-serial file:/home/siovene/tizen-sdk-data/emulator-vms/vms/Default/logs/emulator.klog
-m 1024 -M maru-x86-machine -net
nic,model=virtio,macaddr=60:67:20:B5:5C:C0 -soundhw all -usb -device
virtio-touchscreen-pci -vga maru -bios bios.bin -L
/home/siovene/tizen-sdk/tools/emulator/data/bios -kernel
/home/siovene/tizen-sdk/tools/emulator/data/kernel/bzImage.x86 -net
user -rtc base=utc -drive
file=/home/siovene/tizen-sdk-data/emulator-vms/vms/Default/swap-Default.img,if=virtio,index=2
-enable-kvm -enable-gl -device virtio-esm-pci -max-touch-point 6
-redir tcp:8888:10.0.2.16:80


GUEST# ifconfig
eth0      Link encap:Ethernet  HWaddr 60:67:20:B5:5C:C0
          inet addr:10.0.2.16  Bcast:10.0.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:285 errors:0 dropped:0 overruns:0 frame:0
          TX packets:281 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:20309 (19.8 KiB)  TX bytes:19758 (19.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:108 errors:0 dropped:0 overruns:0 frame:0
          TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:128390 (125.3 KiB)  TX bytes:128390 (125.3 KiB)


GUEST# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.0.2.2        0.0.0.0         UG        0 0          0 eth0
10.0.2.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0
10.0.2.2        0.0.0.0         255.255.255.255 UH        0 0          0 eth0


GUEST# ping 10.0.2.2
PING 10.0.2.2 (10.0.2.2): 56 data bytes
64 bytes from 10.0.2.2: seq=0 ttl=255 time=0.611 ms

HOST:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 3c:97:0e:40:0b:04
          inet6 addr: fe80::3e97:eff:fe40:b04/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10017 errors:0 dropped:0 overruns:0 frame:0
          TX packets:254 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:974661 (974.6 KB)  TX bytes:40028 (40.0 KB)
          Interrupt:20 Memory:f2500000-f2520000

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:36040 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36040 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3797983 (3.7 MB)  TX bytes:3797983 (3.7 MB)

wlan0     Link encap:Ethernet  HWaddr 60:67:20:b5:5c:c0
          inet addr:10.10.15.95  Bcast:10.10.15.255  Mask:255.255.255.0
          inet6 addr: 2001:998:22:0:6267:20ff:feb5:5cc0/64 Scope:Global
          inet6 addr: fe80::6267:20ff:feb5:5cc0/64 Scope:Link
          inet6 addr: 2001:998:22:0:3006:1f2b:eadb:fa8c/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:832399 errors:0 dropped:0 overruns:0 frame:0
          TX packets:505398 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1062567303 (1.0 GB)  TX bytes:104009722 (104.0 MB)


HOST:~$ cat /proc/sys/net/ipv4/conf/wlan0/forwarding
1


Can anybody help me figure out what's missing?

TIA,
Salvatore.


--
Salvatore Iovene <salvatore.iovene at intel.com>
Linux Software Engineer
Intel Open Source Technology Center, Finland
Tel.: +358504804026


More information about the Application-dev mailing list