quarta-feira, 24 de novembro de 2010

Virtuozzo venet0 Failed to start

In the release of CentOS after installed virtuozzo 4.0 I decided to change the gateway for the machine, it worked for the machine but the containers didn't access the network anymore.
After another reboot I notice an error on the startup:
starting venet0 failed to start
It was trying to get DHCP information, but no IP was given to the machine, it's suppose to be like this.
So I googled and googled but no answer.
I decided to take a look at the /etc/sysconfig/network-scripts/ifcfg-venet0 and the setup command line of CentOS messed it up..
so here is how the file should look for venet0:

DEVICE=venet0
ONBOOT=yes
STARTMODE='onboot'

A reboot and all was working again...

terça-feira, 23 de novembro de 2010

Bind9 with chroot simple version

Having my first steps in Linux, I will just posting the easiest ways to do things with this system.
So I wanted to install a DNS(nameserver) into a CentOS 5.5 machine, the easiest way is:
using Bind9 with chroot as installed by default in the CentOS server.

# cd /var/named/chroot/etc/
edit/create the file
# nano named.conf
put this in the file
options {
directory "/var/named";
forwarders { 8.8.8.8; };
};
# service named start
# dig google.com

the service should be all ok and responding, don't forget to change the /etc/resolv.conf to point to the new nameserver