[wiki]网络安装Ubuntu
发表于 : 2005-03-31 22:13
Installing Ubuntu on a laptop (IBM X31) without drives through netboot install.
The basic steps are explained in the Netboot Install Howto
Assumption: You're firewalled and will not expose services used for this exercise to the world. You have a reasonable (cable) network connection.
The slightly different scenario caused some adjustments, which I'd like to share here.
Scenario:
* Cablerouter acting as dhcp server and gateway to the internet (ip: 192.168.0.1)
* Linux box running debian to serve the bootimage through tftp and act as dhcp-boot server (ip: 192.168.0.2, hostname: debian)
* Laptop without drives, but with network boot option in the BIOS.
The proceeding is:
* Get aftpd: apt-get install atftpd. (The tftpd isn't able to serve the files.)
* Download the Ubuntu netboot tar file from the Ubuntu netboot archive
* Unpack into /tftpboot, which is the default for aftpd tar -xzf pxeboot.tar.gz -C /tftpboot
* a) dnsmasq: The following entry in /etc/dnsmasq.conf lets the dhcp server on linux indicate the cablerouter as default route for packets to the internet:dhcp-boot=pxelinux.0,debian,192.168.0.2 dhcp-option=3,192.168.0.1 Run dnsmasq.
* b) dhcpd: The debian machine runs its own dns server (dhcpd) with the follow configuration (/etc/dhcpd.conf):
host x31 { hardware ethernet <MAC address of laptop>; fixed-address <some unused IP for laptop>; filename "/tftpboot/pxelinux.0"; option routers 192.168.0.1; } Run dhcpd.
* Pressing the Access IBM button at boot time lets one enter the BIOS to do a netboot without floppies.
* Check the log files to see what's happening, since netboot is not very verbose: tail -f /var/log/daemon.log
... marvel as Ubuntu is installed over the net.
http://www.ubuntulinux.org/support/docu ... 2137127791
The basic steps are explained in the Netboot Install Howto
Assumption: You're firewalled and will not expose services used for this exercise to the world. You have a reasonable (cable) network connection.
The slightly different scenario caused some adjustments, which I'd like to share here.
Scenario:
* Cablerouter acting as dhcp server and gateway to the internet (ip: 192.168.0.1)
* Linux box running debian to serve the bootimage through tftp and act as dhcp-boot server (ip: 192.168.0.2, hostname: debian)
* Laptop without drives, but with network boot option in the BIOS.
The proceeding is:
* Get aftpd: apt-get install atftpd. (The tftpd isn't able to serve the files.)
* Download the Ubuntu netboot tar file from the Ubuntu netboot archive
* Unpack into /tftpboot, which is the default for aftpd tar -xzf pxeboot.tar.gz -C /tftpboot
* a) dnsmasq: The following entry in /etc/dnsmasq.conf lets the dhcp server on linux indicate the cablerouter as default route for packets to the internet:dhcp-boot=pxelinux.0,debian,192.168.0.2 dhcp-option=3,192.168.0.1 Run dnsmasq.
* b) dhcpd: The debian machine runs its own dns server (dhcpd) with the follow configuration (/etc/dhcpd.conf):
host x31 { hardware ethernet <MAC address of laptop>; fixed-address <some unused IP for laptop>; filename "/tftpboot/pxelinux.0"; option routers 192.168.0.1; } Run dhcpd.
* Pressing the Access IBM button at boot time lets one enter the BIOS to do a netboot without floppies.
* Check the log files to see what's happening, since netboot is not very verbose: tail -f /var/log/daemon.log
... marvel as Ubuntu is installed over the net.
http://www.ubuntulinux.org/support/docu ... 2137127791