Cobbler remotely installs CentOS and cobbler installs centos
This article explains how to remotely install CentOS through IPMI and PXE.
1. First, use Cobbler to add a system
# Specify the system name and profilesudo cobbler system add -- name = test -- profile = CentOS-6.6-x86_64 # add a NIC and specify the IP address sudo cobbler system edit -- name = test -- interface = eth0 -- mac = 08: 00: 27: 2C: 30: 8C -- ip-address = 192.168.145.155 -- netmask = 255.255.255.0 -- static = 1 # Set the gateway and machine name sudo cobbler system edit -- name = test -- gateway = 192.168.145.1 -- hostname = test # Set IPMI information, here, the ipmi address can be the same or different from the machine IP address sudo cobbler system edit -- name = test -- power-type = ipmilan -- power-user = <ipmi user> -- power-pass = <ipmi pass> -- power-address = <ipmi address>
2. After adding the system, use "sudo cobbler sync" to synchronize the configuration.
3. After setting the machine system information, you can use IPMI and PXE to install the system.
# First set the physical machine to start ipmitool-I lan-U <ipmi user>-P <ipmi pass>-H <ipmi ip> chassis bootdev PXE # restart the server ipmitool-I lan -U <ipmi user>-P <ipmi pass>-H <ipmi ip> power reset
Note:
* Even if pxe is not selected for the bios boot sequence, this command allows the device to start from pxe.
* This pxe boot function takes effect only once. After the device is restarted, It is started in the default boot sequence.
* Do not use linux reboot, but use ipmitoo's power reset. Otherwise, the previously configured pxe boot will not take effect.
* It seems that there is a problem when using the Cobbler Web interface, but there is no problem with the command line. I don't know if there is a problem with the Cobbler Web interface.
4. Wait for the installation, and then you can access the new system using the user name/password specified in the previous article.