From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Pedaletti Subject: Re: networking setup problem Date: Mon, 21 Jul 2008 01:52:50 +0200 Message-ID: <4883CFD2.2030203@gmail.com> References: <487DBAD8.4000909@gmail.com> <487E8C16.4070900@mair-family.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: David Mair Return-path: Received: from fg-out-1718.google.com ([72.14.220.158]:58427 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753624AbYGTXw4 (ORCPT ); Sun, 20 Jul 2008 19:52:56 -0400 Received: by fg-out-1718.google.com with SMTP id 19so529350fgg.17 for ; Sun, 20 Jul 2008 16:52:52 -0700 (PDT) In-Reply-To: <487E8C16.4070900@mair-family.org> Sender: kvm-owner@vger.kernel.org List-ID: Ciao David, thank you for the answer, but... > AFAIK, -net user does not need an ifname or script argument - > there's no host interface for the user mode stack. Try these: > > kvm -name PROXY > -net nic,vlan=0,macaddr=00:18:BE:EF:17:2A,model=rtl8139 > -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh > -net nic,vlan=1,macaddr=00:18:BE:EF:17:2B,model=rtl8139 > -net user,vlan=1 > -drive > index=0,media=disk,if=scsi,file=./ubuntu-server.PROXY.root,boot=on > -drive index=1,media=disk,if=scsi,file=./ubuntu-server.PROXY.home > -drive index=2,media=disk,if=scsi,file=./ubuntu-server.PROXY.swap > > kvm -name WEBAPP > -net nic,vlan=0,macaddr=00:18:BE:EF:17:1A,model=rtl8139 > -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh > -net nic,vlan=1,macaddr=00:18:BE:EF:17:1B,model=rtl8139 > -net user,vlan=1 > -drive > index=0,media=disk,if=scsi,file=./ubuntu-server.WEB.root,boot=on > -drive index=1,media=disk,if=scsi,file=./ubuntu-server.WEB.home > -drive index=2,media=disk,if=scsi,file=./ubuntu-server.WEB.swap > > kvm -name DB > -net nic,vlan=0,macaddr=00:18:BE:EF:17:0A,model=rtl8139 > -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh > -net nic,vlan=1,macaddr=00:18:BE:EF:17:0B,model=rtl8139 > -net user,vlan=1 > -drive index=0,media=disk,if=scsi,file=./ubuntu-server.DB.root,boot=on > -drive index=1,media=disk,if=scsi,file=./ubuntu-server.DB.home > -drive index=2,media=disk,if=scsi,file=./ubuntu-server.DB.swap nothing. if I ping one ip from the other, I get: Destination host unreachable and tcpdump show nothing (I can ping each other via "external" ip, the "public" ip on eth0) by the way... if I get the IP via dhcp from eth1 interface (of the 2 VM) I obtain always the same IP even if the macaddress are different (always 10.0.2.15) Other ideas? thank you. -- /* Paolo Pedaletti, * paolo@pedaletti.it www.pedaletti.it */