From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wong Subject: Qemu 0.10.50 CAN NOT get ip from dhcp server Date: Mon, 06 Jul 2009 10:13:12 +0800 Message-ID: <4A515DB8.3020303@wonghome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=Big5 Content-Transfer-Encoding: 7bit To: KVM list Return-path: Received: from maiden102-080.ctimail.com ([61.93.57.80]:47860 "EHLO maiden102.ctimail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752778AbZGFCXH (ORCPT ); Sun, 5 Jul 2009 22:23:07 -0400 Received: from smtp1o.ctimail.com (smtp1o [203.186.94.57]) by maiden102.ctimail.com (8.13.4/8.13.4) with ESMTP id n662DJem023070 for ; Mon, 6 Jul 2009 10:13:25 +0800 Received: from pdc.wonghome.net (124244200136.ctinets.com [124.244.200.136]) by smtp1o.ctimail.com (8.12.11/8.12.11) with ESMTP id n662DJTA015095 for ; Mon, 6 Jul 2009 10:13:19 +0800 (HKT) Received: from pdc.wonghome.net (localhost [127.0.0.1]) by pdc.wonghome.net (Postfix) with ESMTP id D19BA43E0F for ; Mon, 6 Jul 2009 10:13:18 +0800 (HKT) Received: from [192.168.168.3] (redcat.wonghome.net [192.168.168.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pdc.wonghome.net (Postfix) with ESMTPSA id 8F9C143D50 for ; Mon, 6 Jul 2009 10:13:18 +0800 (HKT) Sender: kvm-owner@vger.kernel.org List-ID: I notice that, when i use qemu 0.10.50 (which from kvm-0.87.tar.gz), the guest OS CAN NOT get the ip from dhcp server. When i use qemu 0.10.0 (which from debian's kvm-0.85 package), the guest OS CAN get the ip from the SAME dhcp server. Please help, thank you. My kvm network use bridge mode My kvm launch script: #!/bin/sh NUM="9" IMG="./openbsd-amd64.qcow2" CDROM="/ntfs2/iso-cdrom/clonezilla-live-1.2.1-39.iso" #CDROM="/kdchome/john/software/install46.iso" #KVM="/usr/bin/kvm" # <--------- 0.10.0 which from debian kvm 0.85 package KVM="/opt/kvm/bin/qemu-system-x86_64 -L /opt/kvm/share/qemu/" # <--------- 0.10.50 which from kvm-0.87.tar.gz source code USERID="$(whoami)" PID="./pid.log" iface="$(sudo /usr/sbin/tunctl -t tap${NUM} -b -u ${USERID})" ${KVM} -hda ${IMG} \ -net nic,vlan=${NUM},model=e1000,macaddr=00:AA:BB:CC:DD:0${NUM} \ -net tap,vlan=${NUM},ifname="${iface}",script=/etc/kvm/kvm-ifup,downscript=/etc/kvm/kvm-ifdown \ -localtime \ -usb -usbdevice tablet \ -k en-us -monitor stdio \ -soundhw all \ -cdrom ${CDROM} \ -m 1024 -vga cirrus -boot d $@ sleep 3 sudo /usr/sbin/tunctl -d ${iface} exit $?