[SOLVED] Kickstart network configuration on CentOS 6
Posted: 2011/07/19 10:41:30
I've been using PXE boot and kickstart to build CentOS 5 servers for some time. At my organisation, servers have to be assigned static IP addresses manually, so in my kickstart file I had a line like this:
[code]network --bootproto=query[/code]
This caused it to PXE boot from DHCP with a temporary IP, and then immediately ask me to define a static IP. It then uses the properly defined static IP throughout the installation, and then retains it when it reboots and becomes a real server.
On CentOS 6, the "query" parameter superficially appears to work, and I get asked to set the static IP. Installation goes fine, but when the system reboots for production, it forgets the static IP I set, and picks up one of the DHCP PXE IPs.
I read [url=http://www.linuxtopia.org/online_books/rhel6/rhel_6_migration_guide/rhel_6_migration_ch02s02s02.html]here[/url] that the "query" parameter is deprecated in CentOS 6, and simply omitting the "network" command will cause the installer to prompt. I tried this, but instead it automatically uses DHCP for everything.
Am I doing something wrong, and is there a way of getting the installer to ask me for a static IP to use for evermore?
Cheers,
Jonathan
[code]network --bootproto=query[/code]
This caused it to PXE boot from DHCP with a temporary IP, and then immediately ask me to define a static IP. It then uses the properly defined static IP throughout the installation, and then retains it when it reboots and becomes a real server.
On CentOS 6, the "query" parameter superficially appears to work, and I get asked to set the static IP. Installation goes fine, but when the system reboots for production, it forgets the static IP I set, and picks up one of the DHCP PXE IPs.
I read [url=http://www.linuxtopia.org/online_books/rhel6/rhel_6_migration_guide/rhel_6_migration_ch02s02s02.html]here[/url] that the "query" parameter is deprecated in CentOS 6, and simply omitting the "network" command will cause the installer to prompt. I tried this, but instead it automatically uses DHCP for everything.
Am I doing something wrong, and is there a way of getting the installer to ask me for a static IP to use for evermore?
Cheers,
Jonathan