cluster:139
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cluster:139 [2015/07/08 19:15] – [Warewulf LBL] hmeij | cluster:139 [2018/08/16 12:58] (current) – [3.99] hmeij07 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| **[[cluster: | **[[cluster: | ||
| - | ===== Warewulf | + | ===== Warewulf |
| * [[http:// | * [[http:// | ||
| Line 63: | Line 63: | ||
| * Lethal error thrown by module: / | * Lethal error thrown by module: / | ||
| * answer is here https:// | * answer is here https:// | ||
| + | * quoting | ||
| + | |||
| + | < | ||
| + | What it appears you'll need to do initially is build out a chroot | ||
| + | directory. For example, for a Scientific Linux 6.x install, you'd do: | ||
| + | |||
| + | # wwmkchroot sl-6 / | ||
| + | to store them at -- run wwmkchroot -h for the help) | ||
| + | |||
| + | That will give the base chroot for the VNFS at / | ||
| + | You'll then set the environment variable CHROOTDIR when you execute | ||
| + | wwinit. | ||
| + | |||
| + | # CHROOTDIR=/ | ||
| + | |||
| + | I know when you use the ' | ||
| + | chroot based upon the host OS. But none of the other wwinit scripts, | ||
| + | by default, create one; So you will need to build the chroot and | ||
| + | specify where the directory is. Then when the VNFS part of wwinit is | ||
| + | ran, it will build the VNFS and import it into the datastore at that | ||
| + | time, setting the one specified as the default VNFS in the | ||
| + | configuration. | ||
| + | </ | ||
| So we start by making the chroot directories, | So we start by making the chroot directories, | ||
| Line 259: | Line 282: | ||
| < | < | ||
| - | #--- build file CHROOT/etc/sysconfig/network.ww | + | #--- build file CHROOT/root/wwtemplates/network.ww |
| | | ||
| | | ||
| Line 266: | Line 289: | ||
| # add that file (using wwsh provision) to the nodes. | # add that file (using wwsh provision) to the nodes. | ||
| - | [root@]# wwsh file import / | + | [root@]# wwsh file import / |
| | | ||
| Line 272: | Line 295: | ||
| </ | </ | ||
| + | |||
| + | Second interface: create a template inside of the chroot environment. | ||
| + | |||
| + | < | ||
| + | |||
| + | wwsh node set b49 --netdev=eth1 \ | ||
| + | --hwaddr=00: | ||
| + | --netmask=255.255.0.0 | ||
| + | |||
| + | #--- build file CHROOT/ | ||
| + | DEVICE=eth1 | ||
| + | BOOTPROTO=static | ||
| + | ONBOOT=yes | ||
| + | HWADDR=%{NETDEVS:: | ||
| + | IPADDR=%{NETDEVS:: | ||
| + | NETMASK=%{NETDEVS:: | ||
| + | NETWORK=%{NETDEVS:: | ||
| + | #--- end | ||
| + | |||
| + | # add that file (using wwsh provision) to the nodes. | ||
| + | |||
| + | [root@]# wwsh file import / | ||
| + | | ||
| + | |||
| + | [root@]# wwsh provision set n[00-15] --fileadd=ifcfg-eth1.ww | ||
| + | |||
| + | </ | ||
| + | |||
| + | Now, lets put it all together which can form the basis for a script. | ||
| + | |||
| + | < | ||
| + | |||
| + | # make sure it boots across network, alter BIOS settings | ||
| + | |||
| + | wwsh node new b6 --netdev=eth0 \ | ||
| + | --hwaddr=00: | ||
| + | --netmask=255.255.0.0 | ||
| + | --groups=wwnodes | ||
| + | |||
| + | wwsh node set b6 --netdev=eth1 \ | ||
| + | --hwaddr=00: | ||
| + | --netmask=255.255.0.0 | ||
| + | |||
| + | wwsh provision set b6 --fileadd passwd, | ||
| + | wwsh provision set b6 --fileadd hosts, | ||
| + | wwsh provision set b6 --fileadd network.ww, | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | [[cluster: | ||
| Useful links | Useful links | ||
| Line 279: | Line 354: | ||
| * http:// | * http:// | ||
| + | ==== 3.6.99 ==== | ||
| + | |||
| + | < | ||
| + | |||
| + | 764 cd warewulf/ | ||
| + | 765 wget http:// | ||
| + | 766 wget http:// | ||
| + | 767 wget http:// | ||
| + | 768 wget http:// | ||
| + | 769 wget http:// | ||
| + | | ||
| + | 771 yum groupinstall " | ||
| + | |||
| + | 773 man rpmbuild | ||
| + | 774 rpmbuild --help | ||
| + | 775 rpmbuild -ta warewulf-common-3.6.99.tar.gz | ||
| + | 778 rpmbuild -ta warewulf-cluster-3.6.99.tar.gz | ||
| + | 779 rpmbuild -ta warewulf-vnfs-3.6.99.tar.gz | ||
| + | | ||
| + | 782 yum install libselinux-devel | ||
| + | 784 yum install | ||
| + | 785 rpmbuild -ta warewulf-provision-3.6.99.tar.gz | ||
| + | |||
| + | </ | ||
| + | |||
| + | [[cluster: | ||
| \\ | \\ | ||
| **[[cluster: | **[[cluster: | ||
cluster/139.1436382927.txt.gz · Last modified: by hmeij
