[CentOS-virt] kickstart + domU for static IP
Ed at Heron-ent.com
Wed Apr 7 16:51:08 UTC 2010
From: "Ed Heron", Wednesday, April 07, 2010 9:11 AM
> ... and also set the IP address in the kickstart file (if it
> is a server). ...
I should add that I set the static IP address from %post using:
# Configure eth0
sed --in-place "s/^\(BOOTPROTO=.*\)$/#\1/" $file
sed --in-place "s/^\(DHCPCLASS=.*\)$/#\1/" $file
cat <<EOF >>$file
I do it this way, because I really don't care what the IP address is during
install. I want the IP address to be set during the next boot.
More information about the CentOS-virt