From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmKGW-0003YY-Ab for qemu-devel@nongnu.org; Mon, 20 Nov 2006 20:17:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmKGT-0003YM-Hy for qemu-devel@nongnu.org; Mon, 20 Nov 2006 20:17:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmKGT-0003YJ-Ff for qemu-devel@nongnu.org; Mon, 20 Nov 2006 20:17:33 -0500 Received: from [64.233.182.190] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GmKGT-00046r-Bp for qemu-devel@nongnu.org; Mon, 20 Nov 2006 20:17:33 -0500 Received: by nf-out-0910.google.com with SMTP id c31so4403486nfb for ; Mon, 20 Nov 2006 17:17:32 -0800 (PST) Message-ID: <456253AA.5000109@gmail.com> Date: Tue, 21 Nov 2006 02:17:30 +0100 From: The Moon Seeker MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] loadvm and tap problem (perhaps a bug?!) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I've two server running on qemu, there are connecte via tun/tap. I try to save the vm state and then restart the servers from vm state. The vm start correctly but the the networkin doesn't work. I don't know, perhaps my scripts are wrong?! phase 1 (first boot) brctl addbr link1 qemu -hda PC1.cow -hdb fat:qemuconfigs/pc1 -net nic,macaddr=00:ab:cd:7a:91:8c -net tap,script=pc1.eth1.sh,ifname=pc1.eth1 -net nic,macaddr=00:ab:cd:28:14:c1 -net tap,script=pc1.eth0.sh,ifname=pc1.eth0 -m 128 -serial tcp::3001,server,nowait -monitor tcp::4001,server,nowait qemu -hda PC2.cow -hdb fat:qemuconfigs/pc2 -net nic,macaddr=00:ab:cd:51:66:69 -net tap,script=pc2.eth0.sh,ifname=pc2.eth0 -net nic,macaddr=00:ab:cd:2b:97:d7 -net tap,script=pc2.eth1.sh,ifname=pc2.eth1 -m 128 -serial tcp::3000,server,nowait -monitor tcp::4000,server,nowait the tap scripts : pc1.eth0 #!/bin/sh ifconfig $1 0 sudo brctl addif link1 $1 pc1.eth1 #!/bin/sh ifconfig $1 0 pc2.eth0 #!/bin/sh ifconfig $1 0 sudo brctl addif link1 $1 pc2.eth0 #!/bin/sh ifconfig $1 0 # at this point I can ping each vm phase 2 (save vm state): from each vm : ctrl+alt+2, then savevm pc1.stm savevm pc2.stm phase 3 (stop vm and delete the bridge) : brctl delbr link1 phase 3 (reboot the vm and the network from state machine): brctl addbr link1 qemu -hda PC1.cow -hdb fat:qemuconfigs/pc1 -net nic,macaddr=00:ab:cd:7a:91:8c -net tap,script=pc1.eth1.sh,ifname=pc1.eth1 -net nic,macaddr=00:ab:cd:28:14:c1 -net tap,script=pc1.eth0.sh,ifname=pc1.eth0 -m 128 -serial tcp::3000,server,nowait -monitor tcp::4000,server,nowait -loadvm pc1.stm qemu -hda PC2.cow -hdb fat:qemuconfigs/pc2 -net nic,macaddr=00:ab:cd:51:66:69 -net tap,script=pc2.eth0.sh,ifname=pc2.eth0 -net nic,macaddr=00:ab:cd:2b:97:d7 -net tap,script=pc2.eth1.sh,ifname=pc2.eth1 -m 128 -serial tcp::3001,server,nowait -monitor tcp::4001,server,nowait -loadvm pc2.stm # the vm starts buts it's impossible to ping vm ... what's happend?? what's wrongg????!! Thank you -Francis