You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Alex Hartner <ah...@Thunderhead.com> on 2014/03/22 19:34:40 UTC
Simple network configuration
I just completed a fresh installation of 4.2.1 on CentOS 6.5 with both the management and the agent running on a single host. The plan is to keep things simple as this setup will be used for development rather than hosting production level services. After the initial setup everything looked great until I rebooted the system.
From here on I am no longer able to access the network from the physical server. It doesn’t happen all the time, but often enough. Maybe 1 out of 5 times does the network stack initially properly.
Here is my network configuration
Physical server:
Device: eth0
Assigned via DHCP. Fixed on the DHCP server to the MAC address of the server to 192.168.0.6
DNS name / mapping configured for both name and IP (both directions) to allow for the system to find the hostname
ifcfg-eth0
======
DEVICE=eth0
TYPE=Ethernet
UUID= XXXXXXXXXXXXXXXXXXXXXX
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
HWADDR=XXXXXXXXXXXXXXXXXXXXXX
DEFROUTE=yes
PEERDNS=NO
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
BRIDGE=cloudbr0
ifcfg-cloudbr0
=========
DEVICE=cloudbr0
TYPE=Bridge
UUID= XXXXXXXXXXXXXXXXXXXXXX
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=dhcp
HWADDR=XXXXXXXXXXXXXXXXXXXXXX
DEFROUTE=yes
PEERDNS=no
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
One of the issues is that when the problem occurs the system it not able to access any other system on the local network and hence not able to resolve its own hostname, causing the cloudstack-agent/management server also to fail.
Here is the resolve.conf file
==================
# Generated by NetworkManager
search mydomain.com
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
Here is the routing table
===============
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 cloud0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
And the output from ifconfig
==================
cloudbr0 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXXXXX
inet6 addr: fe80::e44c:e4ff:fe1e:dde7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:3852 (3.7 KiB)
eth0 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXXXXX
inet addr:192.168.0.6 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::52e5:49ff:fee1:7d12/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:306 errors:0 dropped:0 overruns:0 frame:0
TX packets:212 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37028 (36.1 KiB) TX bytes:32638 (31.8 KiB)
Interrupt:20 Memory:fbf00000-fbf20000
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:119 errors:0 dropped:0 overruns:0 frame:0
TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10712 (10.4 KiB) TX bytes:10712 (10.4 KiB)
virbr0 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXXXXX
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)
Any pointers what I can do to get my network configuration working correctly.
Alex Hartner
Enterprise Architect
T +44 20 8238 7423
F
M
ahartner@Thunderhead.com<ma...@Thunderhead.com>
[http://thunderhead.com/email_signature/images/thf2.gif] Thunderhead Limited
www.thunderhead.com<http://www.thunderhead.com> WE'RE HIRING[http://thunderhead.com/email_signature/images/ar.gif]<http://www.thunderhead.com/company/careers/available-roles/> THE BLOG[http://thunderhead.com/email_signature/images/ar.gif]<http://www.thunderhead.com/blog>
[http://thunderhead.com/email_signature/images/lki.jpg]<http://www.linkedin.com/company/25033> [http://thunderhead.com/email_signature/images/tw.jpg] <http://twitter.com/Thunderheadon> [http://thunderhead.com/email_signature/images/rss.jpg] <http://www.thunderhead.com/rss-feeds> [http://thunderhead.com/email_signature/images/yt.jpg] <http://www.youtube.com/ThunderheadOn>
Thunderhead.com is the trading name of Thunderhead Limited which is registered in England under No. 4303041 whose registered office is at Ingeni Building, 17 Broadwick Street, Soho, London. W1F 0DJ.
The contents of this e-mail are intended for the named addressee only. It contains confidential information. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
ONE Correspond for Salesforce is available for a free 30 day trial. Get it now here<http://www.thunderhead.com/customerengagement/test-drive-the-fastest-way-to-generate-documents-in-saleforce/?utm_source=utm_source%3Dsignature&utm_medium=utm_medium%3Demail&utm_campaign=utm_campaign%3DOCfSF&utm_term=utm_term%3DOCfSFfreetrial&utm_content=utm_content%3Dvideo>