ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Grigory Milev <week@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Удалённая загрузка
Date: Wed, 27 Aug 2003 15:09:20 +0300
Message-ID: <87n0dv715b.fsf@pc349.belcaf.minsk.by> (raw)
In-Reply-To: <3F4C84D4.000004.00311@tide.yandex.ru> (Wiener's message of "Wed, 27 Aug 2003 14:15:48 +0400 (MSD)")

[-- Attachment #1: Type: text/plain, Size: 2224 bytes --]

>>>>> "Wiener" == Wiener  <uhgnet@yandex.ru> writes:

    Wiener> Не получается организовать удалённую загрузку по сети...из xinitd
    Wiener> не запускается tftpd...при загрузки xinitd говорит что нет
    Wiener> процессов для запуска...при старте tftpd и bootpd из консоли
    Wiener> удалённая машина говорит - got fragmented packege. reconfigure
    Wiener> server...  В чём проблемы с xinitd и что надо перенастраивать на
    Wiener> сервере...?!  Как вместо bootpd использовать dhcpd (как указать
    Wiener> какой файл надо передавать) ?!  Заранее благодарен...



Все, что необходимо для работы удаленной загрузки + ядро, собранное с KERNEL
IP autoconfig+DHCP, NFS вкомпилированный в ядро + nfsroot.


cp /boot/vmlinuz /var/lib/tftpboot/linux
cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/

mkdir -p /var/lib/tftpboot/pxelinux.cfg
cat >/var/lib/tftpboot/pxelinux.cfg/default <<EOF
KERNEL linux
DEFAULT linux
APPEND nfsroot=$SERVER_IP:/<nfs_root_dir>
IPAPPEND 1
EOF

cat >/etc/dhcpd.conf <<EOF
not authoritative;
ddns-update-style none;
default-lease-time         21600;
max-lease-time             21600;
use-host-decl-names        on;
option domain-name         "mydomain";
option domain-name-servers $SERVER_IP;
option routers             $ROUTER_IP;
option subnet-mask         $SUBNET_MASK;
option broadcast-address   $BCAST;

allow booting;
allow bootp;
subnet <$subnet ex: 192.168.0.0> netmask 255.255.255.0 {
    range <$ip_from ex: 192.168.0.100> <$ip_to ex:192.168.0.200>;
    filename "pxelinux.0";
}
EOF

cat >/etc/exports <<EOF
/<nfs_root_dir> *(ro,no_root_squash,sync,insecure)
EOF

subst "s|\(.*server_args.*=\).*|\1 -u tftp -s $TFTPDIR -r blksize|" /etc/xinetd.d/tftp
subst "s|\(.*only_from.*=\).*|\1 127.0.0.1 <$subnet ex: 192.168.0.0>|" /etc/xinetd.conf


chkconfig tftp on
service xinetd restart
service dhcpd start
service portmap start
service nfs start
exportfs -a




+--------------------------------------------------------+
Grigory Milev	mailto:week@altlinux.ru
ALT Linux Team	http://www.altlinux.ru
+--------------------------------------------------------+
Life too beautiful and interesting. Don't worry, be happy.

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

      reply	other threads:[~2003-08-27 12:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-27 10:15 Wiener
2003-08-27 12:09 ` Grigory Milev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87n0dv715b.fsf@pc349.belcaf.minsk.by \
    --to=week@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git