Archive | November, 2011

“Device eth0 does not seem to be present” – cloned VM’s

24 Nov

This is because when RHEL clones a VM it gives it a new MAC address.

You can see that instead of just eth0 there is eth1 now too by:

cat /etc/udev/rules.d/70-persistent-net.rules

Two options to fix it:
1. Edit the above file and re-jig the MAC address.
2. Go to /etc/sysconfig/network-scripts and rename the file ifcfg-eth0 to ifcfg-eth1, then edit the file to change reference of eth0 to eth1


Android ListViews not clickable

20 Nov

Apparently ListViews lose their clickability if they contain focusable child elements in their layout.

I initially set all the child elements to not be focusable.

But now do this in the getView() method instead:

((ViewGroup) convertedView).setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);

RTNETLINK answers: Invalid argument – Static Routes

15 Nov

In Red Hat (RHEL6) you create static routes in /etc/sysconfig/network-scripts/route-eth0 or similar.

I had something like this:

But it was showing the “RTNETLINK answers: Invalid argument”.

This was because the netmask was /24 but the address had the final octet in it, changing the address to fixed it (or changing the netmask to