Hi,All:
Using KVM + libvirt + virt-manager, I meet a strange problem , some cloned vm cannot
get correct ip address via bridge network, but some vm can.
My host ip is 192.168.1.8 , a bridge interface br0 , an ethernet interface eth0
When the vm(win7) started ,I got the information like " ip 169.254.XXX.XXX netmask
255.255.0.0" by ipconfig
Here is the host network settings:
[root@kvm-8 ~]# ifconfig
br0 Link encap:Ethernet HWaddr BC:AE:C5:21:C8:FB
inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::beae:c5ff:fe21:c8fb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59381 errors:0 dropped:0 overruns:0 frame:0
TX packets:52495 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7078092 (6.7 MiB) TX bytes:50729969 (48.3 MiB)
eth0 Link encap:Ethernet HWaddr BC:AE:C5:21:C8:FB
inet6 addr: fe80::beae:c5ff:fe21:c8fb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:60238 errors:0 dropped:0 overruns:0 frame:0
TX packets:76409 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8037333 (7.6 MiB) TX bytes:52546222 (50.1 MiB)
Memory:fbee0000-fbf00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11312 errors:0 dropped:0 overruns:0 frame:0
TX packets:11312 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:36054480 (34.3 MiB) TX bytes:36054480 (34.3 MiB)
virbr0 Link encap:Ethernet HWaddr D2:38:52:7D:0D:5D
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vnet0 Link encap:Ethernet HWaddr FE:54:00:A1:A1:90
inet6 addr: fe80::fc54:ff:fea1:a190/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:134 errors:0 dropped:0 overruns:0 frame:0
TX packets:247 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:24091 (23.5 KiB) TX bytes:15846 (15.4 KiB)
[root@kvm-8 ~]#
brctl shows:
[root@kvm-8 ~]# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.bcaec521c8fb yes eth0
vnet0
virbr0 8000.000000000000 yes
[root@kvm-8 ~]#
Any information would be appreciated
Thank you!
wade
xuteng via foxmail
Show replies by date