All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sterling Windmill <sterling@ampx.net>
To: John Wong <johnw@wonghome.net>
Cc: KVM list <kvm@vger.kernel.org>
Subject: Re: Qemu 0.10.50 CAN NOT get ip from dhcp server
Date: Mon, 6 Jul 2009 00:23:42 -0400 (EDT)	[thread overview]
Message-ID: <10643000.51246854222446.JavaMail.root@mail.ampx.net> (raw)
In-Reply-To: <4A515DB8.3020303@wonghome.net>

I have noticed the same thing with KVM-87 and either the e1000 or the rtl8139 network models. I am on a 64-bit 2.6.18 RHEL 5.3 kernel with an Intel Q9300 processor.

Even statically assigning an IP to my bridged guest doesn't allow it to communicate with my network.

Specifying virtio as the NIC model allows a Fedora 11 live CD to network properly. KVM-86 allows the same Fedora 11 live CD to network properly regardless of which NIC model I choose.

----- Original Message ----- 
From: "John Wong" <johnw@wonghome.net> 
To: "KVM list" <kvm@vger.kernel.org> 
Sent: Sunday, July 5, 2009 10:13:12 PM GMT -05:00 US/Canada Eastern 
Subject: Qemu 0.10.50 CAN NOT get ip from dhcp server 

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 $? 


-- 
To unsubscribe from this list: send the line "unsubscribe kvm" in 
the body of a message to majordomo@vger.kernel.org 
More majordomo info at http://vger.kernel.org/majordomo-info.html 

  reply	other threads:[~2009-07-06  4:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06  2:13 Qemu 0.10.50 CAN NOT get ip from dhcp server John Wong
2009-07-06  4:23 ` Sterling Windmill [this message]
2009-07-15  8:00 ` Amit Shah
2009-07-15  8:54   ` John Wong
2009-07-16 11:36     ` Amit Shah
2009-07-16 11:44       ` John Wong
2009-07-16 12:02         ` Amit Shah
2009-07-16 12:52           ` John Wong
2009-07-16 13:24             ` Amit Shah
2009-07-16 21:18               ` John Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=10643000.51246854222446.JavaMail.root@mail.ampx.net \
    --to=sterling@ampx.net \
    --cc=johnw@wonghome.net \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.