On 11/06/2014 03:38 PM, Steven Edwards wrote:
I have two live, old CentOS 5.10 servers that I want to replace with
CentOS 7 via SSH while minimizing downtime.  (They are on the same
network and I have no physical access to them.)

Would the best bet, aside from getting a third server, be to install
Cobblerd on one server and use it to install CentOS 7 on the other,
then repeat the process using the new CentOS 7 server as the main
Cobbler server?

Makes sense to me.

If so, are there any sample Cobbler files (e.g., distribution,
profiles, and systems) available that I could use as a starting point?
An admittedly cursory search at Github didn't return anything.

To install Cobbler: http://www.cobblerd.org/manuals/2.6.0/2_-_Installing_Cobbler.html In /etc/cobbler/settings, set pxe_just_once to 1. Set server and next_server to Cobbler server IP. Set SECRET_KEY in /usr/lib/python<python_version>/site-packages/cobbler/web/settings.py
to any value.

I recommend you let Cobbler manager DHCP server conf file for you. If you do this,
 - install DHCP server package
 - set manage_dhcp in /etc/cobbler/settings to 1
- add "subnet <subnet> netmask <subnet_mask> {}" to /etc/cobbler/dhcp.template
   using your subnet data
 - start DHCP server

There are no Cobbler distros/profiles/system samples, but they are easy to create.

cobbler CLI import command may automatically create distribution and profile for you. Just download the ISO, mount it in the Cobbler server and use cobbler import. If you decide to create the distro/profile manually for some reason, required distro fields are installation kernel and initrd local paths in Cobbler server, required profile field is only distro. You'd need to set a kickstart and add some ks metavariables if you want to automate Linux installation. You will have to do this if you do not have access to system console.

System required fields depends on your network configuration. If you use static
network allocation, required fields are:

 * General tab: name, profile
 * Networking (global) tab: hostname, gateway
 * Networking tab: one network interface with MAC address, IP address,
   static checkbox enabled, subnet mask


Set network as first device in boot order in system firmware (BIOS in x86) if it has not been done already. Run cobbler sync, Restart system. Linux installation will
automatically start.


Regards,
Alan Evangelista

_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to