NetInstall
Версия от 17:34, 23 сентября 2008; 87.254.148.76 (обсуждение)
Сетевая инсталляция ALT Linux [Server|Desktop] 4.0 или запуск ALT Linux Rescue
Требуется: сетевая карта с поддержкой PXE
# apt-get install dhcp-server syslinux tftp-server vsftpd anonftp
/etc/dhcp/dhcp.conf:
# See dhcpd.conf(5) for further configuration ddns-update-style none; allow booting; allow bootp; option subnet-mask 255.255.255.0; option domain-name "mydomain.ru"; option domain-name-servers 192.168.0.1; option routers 192.168.0.1; option space pxelinux; option pxelinux.magic code 208 = string; option pxelinux.configfile code 209 = text; option pxelinux.pathprefix code 210 = text; option pxelinux.reboottime code 211 = unsigned integer 32; site-option-space "pxelinux"; option pxelinux.magic f1:00:74:7e; if exists dhcp-parameter-request-list { # Always send the PXELINUX options (specified in hexadecimal) option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,d0,d1,d2,d3); } if substring (option vendor-class-identifier, 0, 9) = "PXEClient" { filename "pxelinux.0"; } else if substring (option vendor-class-identifier, 0, 9) = "Etherboot" { filename "vmlinuz"; # option vendor-encapsulated-options } ################ subnet ################################################## subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.32 192.168.0.63; } group { next-server 192.168.0.1; option pxelinux.configfile "default"; option pxelinux.pathprefix "/pxelinux.cfg/"; #option pxelinux.reboottime 30; host work { hardware ethernet 00:19:00:00:00:00; #filename "pxelinux.0"; } host vmware { hardware ethernet 00:0c:29:00:00:00; #filename "pxelinux.0"; } }
# cd /var/lib/tftpboot # cp /usr/lib/syslinux/pxelinux.0 . # cp -a /media/cdrom/syslinux . # mv syslinux altlinux # mv altlinux/alt0/full.cz altlinux/alt0/desktop.cz
Содержимое /var/lib/tftpboot
/var/lib/tftpboot/pxelinux.cfg /var/lib/tftpboot/pxelinux.cfg/default -> altlinux.cfg /var/lib/tftpboot/pxelinux.cfg/altlinux.msg /var/lib/tftpboot/pxelinux.cfg/altlinux.cfg /var/lib/tftpboot/pxelinux.cfg/suse.cfg /var/lib/tftpboot/pxelinux.cfg/suse.msg /var/lib/tftpboot/altlinux /var/lib/tftpboot/altlinux/en.hlp /var/lib/tftpboot/altlinux/back.jpg /var/lib/tftpboot/altlinux/panim_a.jpg /var/lib/tftpboot/altlinux/lang /var/lib/tftpboot/altlinux/memtest /var/lib/tftpboot/altlinux/bootlogo /var/lib/tftpboot/altlinux/text4c.pcx /var/lib/tftpboot/altlinux/text3.pcx /var/lib/tftpboot/altlinux/text1.pcx /var/lib/tftpboot/altlinux/init /var/lib/tftpboot/altlinux/pback.jpg /var/lib/tftpboot/altlinux/ru.tr /var/lib/tftpboot/altlinux/welcome.jpg /var/lib/tftpboot/altlinux/text4b.pcx /var/lib/tftpboot/altlinux/uk.hlp /var/lib/tftpboot/altlinux/boot.cat /var/lib/tftpboot/altlinux/languages /var/lib/tftpboot/altlinux/timer_a.jpg /var/lib/tftpboot/altlinux/panim.jpg /var/lib/tftpboot/altlinux/uk.tr /var/lib/tftpboot/altlinux/ru.hlp /var/lib/tftpboot/altlinux/isolinux.cfg /var/lib/tftpboot/altlinux/isolinux.bin /var/lib/tftpboot/altlinux/en.tr /var/lib/tftpboot/altlinux/text4a.pcx /var/lib/tftpboot/altlinux/16x16.fnt /var/lib/tftpboot/altlinux/text2b.pcx /var/lib/tftpboot/altlinux/phead.jpg /var/lib/tftpboot/altlinux/pabout.txt /var/lib/tftpboot/altlinux/gfxboot.cfg /var/lib/tftpboot/altlinux/text2a.pcx /var/lib/tftpboot/altlinux/text2c.pcx /var/lib/tftpboot/altlinux/kroete.dat /var/lib/tftpboot/altlinux/alt0 /var/lib/tftpboot/altlinux/alt0/initrd-4.0.2-rescue /var/lib/tftpboot/altlinux/alt0/vmlinuz-4.0.2-rescue /var/lib/tftpboot/altlinux/alt0/desktop.cz /var/lib/tftpboot/altlinux/alt0/altlinux /var/lib/tftpboot/altlinux/alt0/server.cz /var/lib/tftpboot/altlinux/alt0/vmlinuz /var/lib/tftpboot/altlinux/alt0/altlinux.img /var/lib/tftpboot/pxelinux.0
/var/lib/tftpboot/pxelinux.cfg/altlinux.cfg
default harddisk implicit 0 display altlinux.msg prompt 1 #timeout 100 label desktop kernel ../altlinux/alt0/vmlinuz append initrd=../altlinux/alt0/desktop.cz lang=ru_RU stagename=altinst showopts ramdisk_size=65536 automatic=method:ftp,network:dhcp,server:192.168.0.1,directory:/pub/ALTLinux/Desktop/4.0b # xdriver=amd # net=8139too label server kernel ../altlinux/alt0/vmlinuz append initrd=../altlinux/alt0/server.cz lang=ru_RU stagename=altinst showopts ramdisk_size=65536 automatic=method:ftp,network:dhcp,server:192.168.0.1,directory:/pub/ALTLinux/Server/4.0.1/install label server-noapic kernel ../altlinux/alt0/vmlinuz append initrd=../altlinux/alt0/server.cz nolapic noapic acpi=off stagename=altinst ramdisk_size=65536 automatic=method:ftp,network:dhcp,server:192.168.0.1,directory:/pub/ALTLinux/Server/4.0.1/install # xdriver=amd label rescue kernel ../altlinux/alt0/vmlinuz-4.0.2-rescue append initrd=../altlinux/alt0/initrd-4.0.2-rescue net=8139too ramdisk_size=65536 live fastboot stagename=rescue showopts automatic=method:ftp,network:dhcp,server:192.168.0.1,directory:/pub/ALTLinux/Desktop/4.0.2 label memtest kernel ../altlinux/memtest label harddisk localboot 0x80
automatic=… можно убрать и ввести все данные в процессе инсталляции. method=ftp можно заменить на http, nfs directory:/pub/ALTLinux/Server/4.0.1/install надо подмонтировть на серваке (наприм: mount -o loop altlinux-server.iso /var/ftp/pub/ALTLinux/Server/4.0.1/install) Можно добавить к append initrd опции с необходимыми параметрами. # xdriver=amd # net=8139too
/var/lib/tftpboot/pxelinux.cfg/altlinux.msg
Welcome to ALTLinux 4.0 network installation To start the installation enter 'server' and press <return>. Available boot options: desktop - Installation Desktop server - Installation Server noacpi - Installation Server - ACPI Disabled # failsafe - Installation - Safe Settings live - Run Live System rescue - Rescue System memtest - Memory Test harddisk - Boot from Harddisk work - Boot test image
На сетевухе включаем загрузку по PXE и правим mac address в dhcp.conf
# service dhcpd reload # mkdir /var/ftp/cd-desktop # mount --bind /media/cdrom /var/ftp/cd-desktop
Так же можно запускать бездисковые станции, но надо подготовить образ операционки.