help with setting up kvm host on centos 6

8 posts / 0 new
Last post
#1 Sun, 10/09/2011 - 10:13
pixel_paul
pixel_paul's picture

help with setting up kvm host on centos 6

Hi,

I need some help with setting up the networking on a Centos 6 host using kvm - I can't get the networking set up correctly - I ran the installer and it finished successfully, and double checking the settings all appears correct as suggested in the documentation.

However for some reason the bridging is failing to allow access to the LAN.

Thanks,

Paul

Sun, 10/09/2011 - 22:47
JamieCameron

So do you mean that VMs using the bridge cannot be accessed from the LAN?

If so, could you post the output from the following commands :

ifconfig -a
brctl show

''

Mon, 10/10/2011 - 04:40 (Reply to #2)
pixel_paul
pixel_paul's picture

yes and also the host machine has no network access,

Here is the output:

ifconfig -a br0 Link encap:Ethernet HWaddr F2:12:97:F5:30:76
inet addr:192.168.128.98 Bcast:255.255.255.255 Mask:255.255.255.0 inet6 addr: fe80::f012:97ff:fef5:3076/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:512 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:27330 (26.6 KiB)

eth0 Link encap:Ethernet HWaddr 98:4B:E1:10:2B:A6
BROADCAST 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:19

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

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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)

[root@ Desktop]# brctl show bridge name bridge id STP enabled interfaces br0 8000.000000000000 no

Mon, 10/10/2011 - 08:31 (Reply to #3)
pixel_paul
pixel_paul's picture

additionally when i run service network restart the output says:

Bringing up interface eth0: Error: Unknown connection: 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03

Mon, 10/10/2011 - 08:37 (Reply to #4)
pixel_paul
pixel_paul's picture

and thats what it was!

I deleted the line in /etc/sysconfig/network-scripts/ifcfg-eth0 that had the UUID in and all came up and running ok.

Mon, 10/10/2011 - 10:36 (Reply to #5)
JamieCameron

Which line did you delete exactly? This sounds like something maybe cloudmin should do..

''

Mon, 10/10/2011 - 11:07
pixel_paul
pixel_paul's picture

this is what I commented out:

NAME="System eth0"
NM_CONTROLLED=yes
HWADDR=98:4B:E1:10:2B:A6
TYPE=Ethernet
PREFIX=24
DEVICE=eth0
BRIDGE=br0
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
DNS1=192.168.128.1
ONBOOT=yes
#UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03

Although I now have a problem whereby Cloudmin doesnt want to acknowledge connectivity, for example when trying to upgrade webmin:

Falied to lookup IP address for www.webmin.com

Mon, 10/10/2011 - 11:21
pixel_paul
pixel_paul's picture

which I've sorted now by changing my dns server address.

Topic locked