Xcat deploying the physical machine operating system

Source: Internet
Author: User


First we assume that two machines, machine name and IP address are as follows
Xcat Master    hostname:xcat    ip:192.168.31.102xcat node    hostname:xcat1    ip:192.168.31.251

The following are the steps:

1. 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.isocopycds-n Centos6.6-a x86_64 Centos-6.6-x86_64-bin-dvd1.iso Centos-6.6-x86_64-bin-dvd2.iso

2. Configure password, you can use "Tabdump passwd" to view
Chtab Key=system Passwd.username=root Passwd.password=letmein

3. Configure the Node
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_     Nodetype.profile=compute     Nodetype.nodetype=osi

You can use the following command to view a variety of information when you are finished adding
Tabdump nodelisttabdump nodetypetabdump noderestabdump mactabdump hosts

4. Configure the Host
Makehosts

After configuration, the contents of/etc/hosts file are as follows

5. Configure DHCP
Makedhcp-n

After configuration in my environment DHCPD boot will be problematic, so I made the following modifications
* Delete the following lines of zone in the/etc/dhcp/dhcpd.conf file    . {   primary noresolution; key xcat_key;} Zone 31.168.192.in-addr. Arpa. {   primary noresolution; key xcat_key;}

* Edit the/ETC/INIT.D/DHCPD file to
USER=DHCPDGROUP=DHCPD Change to User=rootgroup=root

Then restart the DHCPD service
/ETC/INIT.D/DHCPD restart

6. Setting up the deployment system
NodeSet XCAT1 Install

You can see output similar to the following, indicating that the XCAT1 machine will be installed Centos6.6-x86_64-compute
Xcat1:install Centos6.6-x86_64-compute

If we need to modify the installation of the system can use the following command to modify
Chtab node=xcat1     nodetype.os=centos5.11     nodetype.arch=x86_64     nodetype.profile=compute     Nodetype.nodetype=osinodeset XCAT1 Install

At this point you can see that the XCAT1 machine will be installed Centos5.11-x86_64-compute
Xcat1:install Centos5.11-x86_64-compute

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

Xcat deploying the physical machine operating system

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.