Re: PXE Kickstart works (almost)...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok.  I've taken a bit different approach.

No pxe stuff installed, but syslinux is

[root@install_host rhas2.1]# ls -lR /tftpboot/
/tftpboot/:
total 12
drwxr-xr-x    3 root     root         4096 Jan 15 14:32 rhas2.1
drwxr-xr-x    3 root     root         4096 Jan 14 11:05 X86PC

/tftpboot/rhas2.1:
total 4
drwxr-xr-x    3 root     root         4096 Jan 15 14:33 pxe

/tftpboot/rhas2.1/pxe:
total 1428
-rw-r--r--    1 root     root       735282 Jan 15 14:33 initrd.img
-rw-r--r--    1 root     root        10820 Jan 15 14:59 pxelinux.0
drwxr-xr-x    2 root     root         4096 Jan 22 15:18 pxelinux.cfg
-rw-r--r--    1 root     root       697289 Jan 15 14:33 vmlinuz

/tftpboot/rhas2.1/pxe/pxelinux.cfg:
total 12
lrwxrwxrwx    1 root     root           11 Jan 16 10:41 0A0A0A04 -> 5500.ks.cfg
-rw-r--r--    1 root     root          178 Jan 16 14:26 5500.ks.cfg
-rw-r--r--    1 root     root           39 Jan 15 14:34 default

/tftpboot/X86PC:
total 4
drwxr-xr-x    2 root     root         4096 Jan 14 11:13 UNDI

/tftpboot/X86PC/UNDI:
total 0

This is the pxelinux.cfg file which gets executed for installations.  IF I 
want to install a box,  I create a link using 'gethostip <ip of box>' to
this file.  Notice the 0A0A0A04 link above.

root@install_host rhas2.1]# cat /tftpboot/rhas2.1/pxe/pxelinux.cfg/5500.ks.cfg 
# for pxeboot based installs.  See the README
default linux
label linux
kernel vmlinuz
append ksdevice=eth0 load_ramdisk=1 initrd=initrd.img ks=http://ip_of_install_host/iso/rhas2.1/

If there is no link, then the 'default' file gets executed which forces a local
boot.
[root@install_host rhas2.1]# cat /tftpboot/rhas2.1/pxe/pxelinux.cfg/default 
default linux
label linux
	localboot 0


Here is a dhcpd file.  

[root@install_host rhas2.1]# cat /etc/dhcpd.conf 
subnet subnet_of_install netmask 255.255.255.0 {
# --- default gateway
	option routers			ip_of_gateway;
	option subnet-mask		255.255.255.0;

	option domain-name		"some_domain";
	option domain-name-servers	nameserver_ip;

	option time-offset		-18000;	# Eastern Standard Time

	range ip_range_start ip_range_stop;
	default-lease-time 21600;
	max-lease-time 43200;

	# we want the nameserver to appear at a fixed address
	# host ns {
		# next-server marvin.redhat.com;
		# hardware ethernet 12:34:56:78:AB:CD;
		# fixed-address 207.175.42.254;
	# }
	host mrdevjw1 {
		hardware ethernet 00:08:02:8A:58:10;
		fixed-address fixed_ip_1;
		# for bootnet floppy based ks installs
		# filename "/home/www/iso/rhas2.1/";
		filename "rhas2.1/pxe/pxelinux.0";
		next-server install_host_ip;
	}
	host ibmx360 {
		hardware ethernet 00:02:55:AC:4B:72;
		fixed-address fixed_ip_2;
		filename "/home/www/iso/rhas2.1/";
		next-server instal_host_ip;
	}
}

There is a similar write up at
http://www.owlriver.com/tips/pxe-install

------------------------------------------------------------------------
Jim Wildman, CISSP, RHCE                                jim@xxxxxxxxxxxxx
http://www.rossberry.com






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux