troubleshooting Question

Virtual Mechine is not getting dhcp Ip or unable to go internet..

Avatar of fosiul01
fosiul01Flag for United Kingdom of Great Britain and Northern Ireland asked on
LinuxVMwareMicrosoft Virtual Server
6 Comments1 Solution345 ViewsLast Modified:
Hi
i am using this bellow article to setup virtual clients

http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-5.2-server

i have followed everything... Looks Ok.
2 vm machine is running on this host.

but there are 2 problem :

1. vm machine is unable to go to internet . it can ping gateway.. i can connect from another server to this vm . but when i am trying to go to internet, its failed...

I thought i need to enable ip_forward which i did.. but still i cant go to internet from this vm

2. vm is not getting IP via dhcp server. if i set IP by hand, then it working but it does not get Ip from dhcp server...


so i must of missing something with bridge ..
can any one please help me ..



bellow is few output :
[root@vmserver1 ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.b8ac6f816f10       no              vnet1
                                                        vnet0
                                                        eth1
virbr0          8000.000000000000       yes
[root@vmserver1 ~]# cat /proc/sys/net/ipv4/ip_forward
1
[root@vmserver1 ~]#
[root@vmserver1 ~]# clear
[root@vmserver1 ~]# ls
anaconda-ks.cfg              Desktop      install.log.syslog
CentOS-5.5-i386-bin-DVD.iso  install.log
[root@vmserver1 ~]# clear
[root@vmserver1 ~]# brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.b8ac6f816f10       no              vnet1
                                                        vnet0
                                                        eth1
virbr0          8000.000000000000       yes
[root@vmserver1 ~]# ifconfig
br0       Link encap:Ethernet  HWaddr B8:AC:6F:81:6F:10
          inet addr:10.0.0.52  Bcast:10.0.0.63  Mask:255.255.255.192
          inet6 addr: fe80::baac:6fff:fe81:6f10/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3084326 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1562398 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4347318418 (4.0 GiB)  TX bytes:103433878 (98.6 MiB)

eth0      Link encap:Ethernet  HWaddr B8:AC:6F:81:6F:0F
          inet addr:10.0.0.31  Bcast:10.0.0.63  Mask:255.255.255.192
          inet6 addr: fe80::baac:6fff:fe81:6f0f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2459 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1749 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:214076 (209.0 KiB)  TX bytes:1428730 (1.3 MiB)
          Interrupt:209 Memory:da000000-da012800

eth1      Link encap:Ethernet  HWaddr B8:AC:6F:81:6F:10
          inet6 addr: fe80::baac:6fff:fe81:6f10/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1790 errors:0 dropped:0 overruns:0 frame:0
          TX packets:339 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:143271 (139.9 KiB)  TX bytes:48685 (47.5 KiB)
          Interrupt:217 Memory:dc000000-dc012800

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:26998 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26998 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:52466237 (50.0 MiB)  TX bytes:52466237 (50.0 MiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:6684 (6.5 KiB)

vnet0     Link encap:Ethernet  HWaddr FE:52:00:77:9E:0A
          inet6 addr: fe80::fc52:ff:fe77:9e0a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:52 errors:0 dropped:0 overruns:0 frame:0
          TX packets:166 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:11826 (11.5 KiB)  TX bytes:21465 (20.9 KiB)

vnet1     Link encap:Ethernet  HWaddr FE:52:00:2F:72:74
          inet6 addr: fe80::fc52:ff:fe2f:7274/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:42 errors:0 dropped:0 overruns:0 frame:0
          TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:6074 (5.9 KiB)  TX bytes:14749 (14.4 KiB)



Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros