Xcat Deploy physical machine operating system (new)

Source: Internet
Author: User

First we assume that the two machines, the machine name and the IP address are as follows Xcat master Hostname:xcat ip:192.168.31.102 xcat node HOSTNAME:XCAT1 ip:192.168.31.251

The specific steps are as follows: Configure XCAT basic information

Chtab key=master site.value=192.168.31.102  
chtab key=domain # Depending on the circumstances, this attribute is eventually written to each node's/ The  
chtab key=nameservers site.value=192.168.31.102 # in the etc/resolv.conf file is configured according to the circumstances, and this attribute is eventually written to the/etc/of each node resolv.conf file  
chtab key=forwarders site.value=192.168.31.1  

In addition, use the "tabdump Networks" command to check if the networks table information is consistent with the above site table information, if inconsistent can be modified using the following command

    Chtab netname=192_168_31_0-255_255_255_0 \
        networks.net=192.168.31.0 \
        networks.mask=255.255.255.0 \
        networks.gateway=192.168.31.1 \
        networks.dhcpserver=192.168.31.102 \
        networks.tftpserver=192.168.31.102 \
        networks.nameservers=192.168.31.102 \
        networks.ntpservers=192.168.31.102
Configure password

You can use "Tabdump passwd" to view

Chtab Key=system Passwd.username=root Passwd.password=letmein  
Configure host
Makehosts

The contents of the/etc/hosts file after configuration are roughly as follows

127.0.0.1 localhost  
192.168.31.102 xcat  xcat.xcatdomain
Note that Xcat master must be configured because the MAKEDNS command requires that the admin node be part of domain, so if you do not need to add it manually. Configuring DNS
Makedns-n  
Service named restart  
Configure DHCP
Makedhcp-n
If the DHCP service does not start at this time, editing the/ETC/INIT.D/DHCPD file will
USER=DHCPD  
GROUP=DHCPD  
changed to  
user=root  
group=root  

Then restart the DHCPD service

/ETC/INIT.D/DHCPD restart  
To create a local operating system installation file
Copycds-n centos5.11-a x86_64 centos-5.11-x86_64-bin-dvd-1of2.iso centos-5.11-x86_64-bin-dvd-2of2.iso  
Copycds- n centos6.6-a x86_64 centos-6.6-x86_64-bin-dvd1.iso centos-6.6-x86_64-bin-dvd2.iso  
copycds/appstore/iso/ Rhel-server-6.5-x86_64-dvd.iso

When you are finished adding, you can use the following command to view

Lsdef-t Osdistro
lsdef-t osimage
Configuring Nodes
    Nodeadd xcat1 \  
        groups=compute,all \  
        mac.interface=eth0 \  
        mac.mac=08:00:27:2c:30:8c \  
        hosts.ip= 192.168.31.251 \  
        noderes.netboot=pxe \  
        noderes.xcatmaster=192.168.31.102 \  
        noderes.installnic=eth0 \  
        noderes.primarynic=eth0 \  
        noderes.nfsserver=192.168.31.102 \  
        nodetype.os=centos6.6  
        \ nodetype.arch=x86_64 \  
        nodetype.profile=compute \  
        Nodetype.nodetype=osi  

You can use the following command to view various information when you have finished adding

Tabdump nodelist  
tabdump nodetype tabdump noderes-tabdump  
mac Tabdump  
hosts  

Then run the following command

Makehosts xcat1
makedhcp xcat1
setting up a deployment system
NodeSet XCAT1 Osimage=centos5.11-x86_64-install-compute  

Because the virtual machine is used for testing and there is no IPMI capability, we can only manually start the XCAT1 machine, and then we will find XCAT1 into the automatic installation system.

If you have a physical machine that supports IPMI functionality, you can refer to another blog post I sent earlier
XCAT installs the operating system via IPMI remote deployment

Reprint please indicate this address in the form of link
This article address: http://blog.csdn.net/kongxx/article/details/44572255

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.