From: Thanasis Subject: network between host and guest Date: Mon, 10 May 2010 13:46:20 +0300 Message-ID: <4BE7E3FC.6090904@asyr.hopto.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit To: "kvm@vger.kernel.org" Return-path: Received: from cust-218-222.on4.ontelecoms.gr ([92.118.218.222]:16368 "EHLO poseidon.vergina.dyndns.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756774Ab0EJK6W (ORCPT ); Mon, 10 May 2010 06:58:22 -0400 Received: from [192.168.0.13] (dwarfy.vergina.dyndns.org [192.168.0.13]) by poseidon.vergina.dyndns.org (Postfix) with ESMTP id 77032FBCD for ; Mon, 10 May 2010 13:46:20 +0300 (EEST) Sender: kvm-owner@vger.kernel.org List-ID: I have installed kvm (app-emulation/qemu-kvm-0.12.3-r1) on linux (a laptop with gentoo linux) and MS Windows 7 as guest. Here is what info I get about the network on each one: 1) on linux (host): eth0 Link encap:Ethernet HWaddr 00:03:25:43:7f:93 inet addr:192.168.0.13 Bcast:255.255.255.255 Mask:255.255.255.0 inet6 addr: fe80::203:25ff:fe43:7f93/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1 RX packets:406972 errors:0 dropped:0 overruns:0 frame:0 TX packets:5268868 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:132098724 (125.9 MiB) TX bytes:7683259267 (7.1 GiB) Interrupt:26 Base address:0x2000 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:505 errors:0 dropped:0 overruns:0 frame:0 TX packets:505 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:65800 (64.2 KiB) TX bytes:65800 (64.2 KiB) wlan0 Link encap:Ethernet HWaddr 00:16:44:8e:5a:0b BROADCAST MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) 2) on the guest (sorry I could't find a way copy, so I took a screenshot): http://i999.photobucket.com/albums/af112/aggman/Screenshot-QEMU.jpg Question: Where is my interface on linux with IP address of 10.0.2.2 ? The guest can actually access the internet (via the host), but where can I see that hidden routing that linux provides to it? PS: forgive my ignorance, I am new to kvm.