This is an old revision of the document!
Get RPMs and install.
[root@petaltail ~]# wget -O /etc/yum.repos.d/warewulf-rhel6.repo http://warewulf.lbl.gov/downloads/repo/warewulf-rhel6.repo --2015-04-07 08:45:56-- http://warewulf.lbl.gov/downloads/repo/warewulf-rhel6.repo Resolving warewulf.lbl.gov... 128.3.7.27 Connecting to warewulf.lbl.gov|128.3.7.27|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 126 [text/plain] Saving to: â/etc/yum.repos.d/warewulf-rhel6.repoâ 100%[======================================================================================>] 126 --.-K/s in 0s 2015-04-07 08:45:56 (22.9 MB/s) - â/etc/yum.repos.d/warewulf-rhel6.repoâsaved [126/126] [root@petaltail ~]# yum install warewulf-common warewulf-cluster warewulf-provision Installed: warewulf-cluster.x86_64 0:3.6-1.el6 warewulf-common.noarch 0:3.6-1.el6 warewulf-icr.x86_64 0:3.6-1.el6 warewulf-provision.x86_64 0:3.6-1.el6 Dependency Installed: dhcp.x86_64 12:4.1.1-43.P1.el6.centos.1 tftp-server.x86_64 0:0.49-7.el6 warewulf-provision-server.x86_64 0:3.6-1.el6 warewulf-vnfs.noarch 0:3.6-1.el6 Complete!
Get and install MySQL and set mysql user root's password.
[root@petaltail warewulf]# vi /etc/warewulf/database-root.conf [root@petaltail warewulf]# service mysqld status mysql> set password for 'root'@'localhost' = PASSWORD('some_string'); Query OK, 0 rows affected (0.00 sec) [root@petaltail warewulf]# chmod o-r /etc/warewulf/database-root.conf
In the provision config file I turned dynamic_hosts, hostfile and localdomain off (I'll manage those manually) and my private network is run over eth0 (192.168.0.0/255.255.0.0).
[root@petaltail warewulf]# vi /etc/warewulf/provision.conf [root@petaltail warewulf]# vi /etc/warewulf/provision.conf
Next comes a piece of mystery. When executing wwinit ALL
I ran into a lether, no less, error. After much digging found the answer here and surprisingly found little in the documentation on this.
So we start by making the chroot directories, first we'll build a generic centos-6. Then we initialize the warewulf environment.
[root@petaltail ~]# wwmkchroot centos-6 /var/chroots/centos-6 [root@petaltail ~]# CHROOTDIR=/var/chroots/centos-6 wwinit ALL database: Checking /etc/rc.d/init.d/mysqld is installed OK database: Confirming mysqld is configured to start at boot: database: + chkconfig mysqld on OK database: Checking to see if MySQL needs to be started: database: + service mysqld start OK wwsh: Confirming that wwsh accepts some basic commands wwsh: + wwsh quit OK wwsh: + wwsh help OK wwsh: + wwsh node new testnode0000 OK wwsh: + wwsh node list OK wwsh: + wwsh node delete testnode0000 OK domain: Setting default node domain to: "cluster" OK authfiles: Checking to see if /etc/passwd is in the WW Datastore OK authfiles: Checking if /etc/passwd is part of default node configuration authfiles: Checking to see if /etc/group is in the WW Datastore OK authfiles: Checking if /etc/group is part of default node configuration nfsd: Setting domain "cluster" for IDMAPD/NFSv4 OK nfsd: + chkconfig nfs on OK nfsd: + service nfs restart OK nfsd: + exportfs -a OK ntpd: Configured NTP services ntpd: + chkconfig ntpd on OK ntpd: + service ntpd restart OK ssh_keys: Checking ssh keys for root OK ssh_keys: Checking root's ssh config OK ssh_keys: Checking for default RSA1 host key for nodes OK ssh_keys: Checking for default RSA host key for nodes OK ssh_keys: Checking for default DSA host key for nodes OK tftp: + /sbin/chkconfig xinetd on OK tftp: + /sbin/chkconfig tftp on OK tftp: + /sbin/service xinetd restart OK bootstrap: Creating bootstrap for 2.6.32-504.8.1.el6.x86_64: bootstrap: + wwbootstrap 2.6.32-504.8.1.el6.x86_64 OK vnfs: Building the VNFS image and importing into Warewulf: vnfs: + wwvnfs -y --hybridpath=/var/chroots/centos-6 --chroot /var/ OK
Next restart MySQL, httpd and xinetd. Open your firewall on the private network.
# local allow -A INPUT -i eth0 -d 192.168.0.0/16 -p tcp --dport 0:65535 -j ACCEPT -A INPUT -i eth0 -d 192.168.0.0/16 -p udp --dport 0:65535 -j ACCEPT