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
[wiki]网络安装Ubuntu
- oneleaf
- 论坛管理员
- 帖子: 10454
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
[wiki]网络安装Ubuntu
上次由 oneleaf 在 2005-04-12 8:54,总共编辑 1 次。
- ct
- 帖子: 2201
- 注册时间: 2005-04-06 21:15
- 来自: 安徽黄山
- 联系:
在没有驱动的情况下通过网络安装Ubuntu到笔记本电脑(IBM X31)
在没有驱动的情况下通过网络安装Ubuntu到笔记本电脑(IBM X31)
这是一篇关于通过网络安装Ubuntu的HOWTO
假设:你的防火墙没有什么问题而且你有合适的网络链接(废话就简单说了)
这里是我的操作环境,可能和你的会有一些细节上的差异:
1、Cable路由器激活了DHCP服务器(自动分配IP地址)而且是通过网关连接到internet(IP地址:192.168.0.1)
2、一台安装有debian的linux机器,通过tftp提供启动镜像(bootimage)的DHCP-BOOT服务器。(IP:192,168.0.2,主机名:debian)
3、笔记本电脑没有驱动,但是在BIOS里开启了网络启动(netboot)选项。
步骤:
1、获取aftpd:apt-get install atftpd。
2、从Ubuntu的网络启动存档处下载Ubuntu网络启动的tar文件。
3、运行tar -xzf pxeboot.tar.gz -C/tftpboot把aftpd的tar文件释放到 /tftpboot目录。
a)dnsmasq: 设置 /etc/dnsmasq.conf文件使运行dhcp服务的debian linux把那台cable路由器设为默认访问internet的路由器:dhcp-boot=pxelinux.0,debian,192.168.0.2 dhcp-option=3,192.168.0.1 运行dnsmasq使设置生效。
b)dhcpd:debian机器按照上面的设置(/etc/dhcpd.conf)运行自己的dns服务器(dhcpd)
host x31 { hardware ethernet <X31的MAC地址>; fixed-address <分一个未用的私有IP给X31>; filename "/tftpboot/pxelinux.0"; option routers 192.168.0.1; } Run dhcpd.运行dhcpd。
4、开机进入IBM X31的BIOS设置把启动选项设成netboot。
5、如果网络启动有问题请检查log日志文件监视安装情况:tail -f/var/log/daemon.log
...于是乎Ubuntu奇迹般的通过网络安装起来了。
(我随便翻翻,用的到的就凑合看看吧,^@^ -----by ctqucl)

这是一篇关于通过网络安装Ubuntu的HOWTO
假设:你的防火墙没有什么问题而且你有合适的网络链接(废话就简单说了)
这里是我的操作环境,可能和你的会有一些细节上的差异:
1、Cable路由器激活了DHCP服务器(自动分配IP地址)而且是通过网关连接到internet(IP地址:192.168.0.1)
2、一台安装有debian的linux机器,通过tftp提供启动镜像(bootimage)的DHCP-BOOT服务器。(IP:192,168.0.2,主机名:debian)
3、笔记本电脑没有驱动,但是在BIOS里开启了网络启动(netboot)选项。
步骤:
1、获取aftpd:apt-get install atftpd。
2、从Ubuntu的网络启动存档处下载Ubuntu网络启动的tar文件。
3、运行tar -xzf pxeboot.tar.gz -C/tftpboot把aftpd的tar文件释放到 /tftpboot目录。
a)dnsmasq: 设置 /etc/dnsmasq.conf文件使运行dhcp服务的debian linux把那台cable路由器设为默认访问internet的路由器:dhcp-boot=pxelinux.0,debian,192.168.0.2 dhcp-option=3,192.168.0.1 运行dnsmasq使设置生效。
b)dhcpd:debian机器按照上面的设置(/etc/dhcpd.conf)运行自己的dns服务器(dhcpd)
host x31 { hardware ethernet <X31的MAC地址>; fixed-address <分一个未用的私有IP给X31>; filename "/tftpboot/pxelinux.0"; option routers 192.168.0.1; } Run dhcpd.运行dhcpd。
4、开机进入IBM X31的BIOS设置把启动选项设成netboot。
5、如果网络启动有问题请检查log日志文件监视安装情况:tail -f/var/log/daemon.log
...于是乎Ubuntu奇迹般的通过网络安装起来了。
(我随便翻翻,用的到的就凑合看看吧,^@^ -----by ctqucl)





-
- 帖子: 2
- 注册时间: 2006-07-25 9:44
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系: