From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Step by step instructions for KVM networking Date: Thu, 22 Feb 2007 11:17:29 +0200 Message-ID: <45DD5FA9.2010602@qumranet.com> References: <786483.53715.qm@web36808.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Daniel Qarras Return-path: In-Reply-To: <786483.53715.qm-uAqfo9yIfQuvuULXzWHTWIglqE1Y4D90QQ4Iyu8u01E@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Daniel Qarras wrote: > Hi all, > > I've played with Xen on my Fedora and it's been working fine. Now I'm > testing KVM with 2.6.20 kernel and it's working nicely, too, but I'm > unable to setup a full-blown networking, i.e., a mode where also > icmp/udp work. User-mode networking works well, e.g., yum and firefox > run just fine under KVM. > > Could someone please post a step by step list how to enable > non-usermode networking with KVM/QEMU on Fedora? I've googled > for this and found instructions (mostly for Debian) but I've not been > able to set up this on Fedora. > In general the setup is exactly like qemu, so any howto for qemu is applicable. Here's what I do: - copy scripts/kvm from the kvm tarball to /etc/init.d, chkconfig and start the kvm service. that sets up a bridge - copy scripts/qemu-ifup into a new directory /etc/kvm. make sure it is executable. - run qemu like this: qemu-system-x86_64 -net nic -net tap,script=/etc/kvm/qemu-ifup [other options]... > (My test machine has one NIC with a 10.x.x.x address in an intranet. I > would want that my KVM guests have, e.g., 192.168.x.x static addresses > and they can ping each other, the host machine, and access outside > world with tcp/udp/icmp etc. So something what Xen does now > automatically on Fedora. Connection initiated from outside world are > not essential but would of course be a nice bonus.) > The configuration above would put the guests on the same ethernet segment, so you'd need to assign them addresses in the 10.0.0.0/8 subnet. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV