From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Duffy Subject: Re: KVM bridge Networking and openvpn Date: Mon, 08 Sep 2008 21:32:55 -0500 Message-ID: References: <905750.24870.qm@web35802.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:33978 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbYIICdV (ORCPT ); Mon, 8 Sep 2008 22:33:21 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kct2d-0003vE-AA for kvm@vger.kernel.org; Tue, 09 Sep 2008 02:33:19 +0000 Received: from rrcs-71-41-149-67.sw.biz.rr.com ([71.41.149.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Sep 2008 02:33:19 +0000 Received: from Charles_Duffy by rrcs-71-41-149-67.sw.biz.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Sep 2008 02:33:19 +0000 In-Reply-To: <905750.24870.qm@web35802.mail.mud.yahoo.com> Sender: kvm-owner@vger.kernel.org List-ID: jd wrote: > Now when I create new VM, using the command line... > > qemu-system-x86_64 -net nic,vlan=0,macaddr=00:16:3e:70:8f:33 -net tap,vlan=0 -hda /mnt/vm_data/test_xp.hda.disk.xm -m 256 > > The VM does not seem to get the IP address :( (may be dhcp request is failing) You aren't providing ifname or script arguments to your qemu -net tap; are you quite sure that tap1 is the device the qemu instance is creating? It would probably be safer to use "-net tap,vlan=0,script=/path/to/script", where the script in question looks like the following: #!/bin/sh /sbin/ifconfig "$1" 0.0.0.0 up /usr/sbin/brctl addif br0 "$1" BTW, you *do* have a DHCP server connected to the bridge somewhere that should be answering these requests, right? :) Another thing -- use tcpdump or a similar tool to sniff the bridge on the host and see if you see DHCP requests from the client while it's coming up; if so, you know that you're bridged correctly; if not, you've got a place to start.