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 $?
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" <[email protected]>
To: "KVM list" <[email protected]>
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 $?
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · John Wong
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.
This was fixed in kvm-88.
Amit
Yes, kvm-88 fixed this problem.
I also notice another problem, when i use kvm-88(qemu-system-x86_64 with kvm-kmod-2.6.30.1-rc2.tar.gz) installing 64bit OS (window7 & debian & netbsd), the install CD show the error message, say this system is 32bit not 64bit and can not continue to install.
I did try use -cpu qemu64 or -cpu core2duo, but no help.
When i use kvm-85 (which from debian's package) with kvm-kmod-2.6.30.1-rc2.tar.gz, i can install 64bit OS.
My host system is(uname -a): Linux Debian 2.6.30-1-amd64 #1 SMP Wed Jul 8 12:20:34 UTC 2009 x86_64 GNU/Linux My cpu is Intel core2duo E8400.
Please help, thank you.
Amit Shah 提到:
Quoted 12 lines · John Wong
Quoted 6 lines
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.This was fixed in kvm-88.
Amit
Quoted 8 lines · John Wong
Yes, kvm-88 fixed this problem.
I also notice another problem, when i use kvm-88(qemu-system-x86_64 with kvm-kmod-2.6.30.1-rc2.tar.gz) installing 64bit OS (window7 & debian & netbsd),
the install CD show the error message, say this system is 32bit not 64bit and can not continue to install.
I did try use -cpu qemu64 or -cpu core2duo, but no help.
Did you run 'make install' after compiling kvm-88?
Amit
Amit Shah 提到:
Quoted 13 lines · John Wong
Quoted 7 lines
Yes, kvm-88 fixed this problem.
I also notice another problem, when i use kvm-88(qemu-system-x86_64 with kvm-kmod-2.6.30.1-rc2.tar.gz) installing 64bit OS (window7 & debian & netbsd), the install CD show the error message, say this system is 32bit not 64bit and can not continue to install.
I did try use -cpu qemu64 or -cpu core2duo, but no help.Did you run 'make install' after compiling kvm-88?
Amit
Yes, i did it.
./configure --prefix=/opt/kvm-88/ --audio-drv-list="alsa oss" make clean
make
sudo make install
Please help, thank you.
Quoted 17 lines · John Wong
Amit Shah 提到:
Quoted 12 lines · John Wong
Quoted 10 lines
Yes, kvm-88 fixed this problem.
I also notice another problem, when i use kvm-88(qemu-system-x86_64 with kvm-kmod-2.6.30.1-rc2.tar.gz) installing 64bit OS (window7 & debian & netbsd),
the install CD show the error message, say this system is 32bit not 64bit and can not continue to install.
I did try use -cpu qemu64 or -cpu core2duo, but no help.Quoted 4 lines
Did you run 'make install' after compiling kvm-88?
Amit
Quoted 7 lines
Yes, i did it.
./configure --prefix=/opt/kvm-88/ --audio-drv-list="alsa oss" make clean
make
sudo make installPlease help, thank you.
Any messages in the host kernel's logs? Also can you try running a 32-bit VM and report what /proc/cpuinfo shows? I'm assuming you're running on a 64 bit host. Can you confirm that?
Amit
Amit Shah 提到:
Quoted 28 lines · John Wong
Quoted 18 lines
Amit Shah 提到:
Quoted 5 lines · John Wong
Quoted 4 lines
Yes, kvm-88 fixed this problem.
Quoted 10 lines
Quoted 5 lines
I also notice another problem, when i use kvm-88(qemu-system-x86_64 with kvm-kmod-2.6.30.1-rc2.tar.gz) installing 64bit OS (window7 & debian & netbsd),
the install CD show the error message, say this system is 32bit not 64bit and can not continue to install.
I did try use -cpu qemu64 or -cpu core2duo, but no help.Did you run 'make install' after compiling kvm-88?
Amit
Quoted 8 lines
Yes, i did it.
./configure --prefix=/opt/kvm-88/ --audio-drv-list="alsa oss" make clean
make
sudo make installPlease help, thank you.
Quoted 7 lines
Any messages in the host kernel's logs? Also can you try running a 32-bit VM and report what
/proc/cpuinfoshows? I'm assuming you're running on a 64 bit host. Can you confirm that?Amit
No, i can not found any message is relate kvm.
Yes, i installed Debian/32-bit VM, below is "cat /proc/cpuinfo".
Thank your help.
--------------------------------------------------------------------
processor : 0vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.10.50
stepping : 3
cpu MHz : 2999.638
cache size : 2048 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 pni hypervisor
bogomips : 5999.27
clflush size : 64
power management:
processor : 1vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.10.50
stepping : 3
cpu MHz : 2999.638
cache size : 2048 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 pni hypervisor
bogomips : 5999.27
clflush size : 64
power management:
--------------------------------------------------------------------------------------------
Quoted 6 lines · John Wong
Quoted 5 lines
Any messages in the host kernel's logs? Also can you try running a 32-bit VM and report what
/proc/cpuinfoshows? I'm assuming you're running on a 64 bit host. Can you confirm that?Yes, i installed Debian/32-bit VM, below is "cat
/proc/cpuinfo".
Is the host a 64-bit host and are you running a 64 bit kernel on the host?
Amit
Amit Shah 提到:
Quoted 5 lines
Is the host a 64-bit host and are you running a 64 bit kernel on the host?
Yes, the host is Debian/64-bit/kernel-2.6.30.
John Wong 提到:
Quoted 4 lines
My host system is(uname -a): Linux Debian 2.6.30-1-amd64 #1 SMP Wed Jul 8 12:20:34 UTC 2009
x86_64GNU/Linux My cpu is Intel core2duo E8400.Please help, thank you.