четверг, 3 сентября 2009 г.

Установка фри 7.0 по сети

После долги мучений :) мне это удалось !!!!

Итак на сервере :

была сделана папочка /usr/tftpboot в которую сброшено все содержимое 3-х дисков ( сначала была попытка сделать линк на корень типа /tftpboot , но нфс не дружит с линками :) )

итак правим
/etc/exports :

/usr/tftpboot -alldirs -maproot=0 -network 0.0.0.0 -mask 0.0.0.0

потом правим /etc/inetd.conf

tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /usr/tftpboot

далее в /usr/local/dhcp.conf добавляем хост , которому будем выдавать ИП

host freetest {

hardware ethernet 00:0c:29:f5:dd:70; # MAC - адрес тачки которой мы дадим :)
fixed-address 10.18.201.84; #Этот адрес мы выдаем
next-server 10.18.201.80; # Сервер
filename "boot/pxeboot";
option root-path "10.18.201.80:/usr/tftpboot"

}


в /usr/tftpboot/boot/loader.conf должно быть :

mfsroot_load="YES"
mfsroot_type="mfs_root"
mfsroot_name="/boot/mfsroot"
vfs.root.mountfrom="ufs:/dev/md0c"


далее пускаем rpcbind, nfsd, mountd -r , dhcpd и наслаждаемся ))))

поправочка :

Workaround for a bug in mfs_root

I've confirmed that there is in fact a bug in the mfs_root loading mechanism. It's likely been there for a very long time, since a couple other guides state that after rebuilding their mfsroot, if they re-gzip'd the mfsroot image, their machines would reboot.

On our servers, something bizarre happens: the kernel appears to get reloaded, all of the environment variables are lost (which means serial console is lost), and then there's some nastiness on the console about how it can't find "kernel", and some weird Device ID 0xffffffff error. I'd have to take a photo of the monitor to provide additional details, but regardless, this problem is easily reproducible. I filed a PR for this problem, kern/120127, but as of this writing not a single developer has bothered to look into it. I'm willing to bet this bug has bitten the EtherBoot folks as well.

The workaround is simple: remove the gzip compression on the mfsroot.gz image, and everything should work:

# gzip -d /path_to_distr/boot/mfsroot


http://jdc.parodius.com/freebsd/pxeboot_serial_install.html

Комментариев нет:

Отправить комментарий