From: Thanasis Subject: Re: network between host and guest Date: Thu, 13 May 2010 23:12:13 +0300 Message-ID: <4BEC5D1D.7030908@asyr.hopto.org> References: <4BE7E3FC.6090904@asyr.hopto.org> <4BEC578C.2070008@sky-haven.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "kvm@vger.kernel.org" To: "dryden@sky-haven.net" Return-path: Received: from cust-218-222.on4.ontelecoms.gr ([92.118.218.222]:45305 "EHLO poseidon.vergina.dyndns.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755907Ab0EMUMS (ORCPT ); Thu, 13 May 2010 16:12:18 -0400 In-Reply-To: <4BEC578C.2070008@sky-haven.net> Sender: kvm-owner@vger.kernel.org List-ID: on 05/13/2010 10:48 PM dryden@sky-haven.net wrote the following: > Ar 10.05.10 10:46, scr=C3=ADobh Thanasis: >> 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): > > [snip] > > Hi there: > > The precise KVM command would be useful in determining what's going o= n. > > Since I'm guessing, I may as well presume you used "-net > nic,(options...) -net user". If you did, the magick is in the qemu > binary which is both providing a DHCP service to the guest and > performing the necessary outbound source NAT. > > But as others have mentioned, more information on how you started KVM > might be useful to determine what's going on. The reason is that the= re > are several ways to set up networking in KVM. > The command is (and running as a user, not root): $ kvm win7kvm.img -m 1024 -boot c -usb -usbdevice tablet $ which kvm /usr/bin/kvm $ ls -l /usr/bin/kvm lrwxrwxrwx 1 root root 17 Apr 21 15:10 /usr/bin/kvm -> /usr/bin/qemu-kv= m $ file /usr/bin/qemu-kvm /usr/bin/qemu-kvm: POSIX shell script text executable $ cat /usr/bin/qemu-kvm #!/bin/sh exec /usr/bin/qemu-system-x86_64 --enable-kvm "$@" $ file /usr/bin/qemu-system-x86_64 /usr/bin/qemu-system-x86_64: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped $