I have one Compaq Armada M300 without CDROM/DVD drive and unfortunately the one and only USB port does not work. So, I guess this is the right time to try out openSUSE installation over the network using PXE boot.
Below are the steps for installation of openSUSE 11.1:
PACKAGES INSTALLATION
1. Install all required packages:
- tftp
- yast2-tftp-server
- dhcp-server
- yast2-dhcp-server
- syslinux
CONFIGURE TFTP Server
2. Open YAST, go to Network Services > TFTP Server
- Click on ‘Enable the service’
- Assign ‘Boot Image Directory’ : /srv/tftpboot
CONFIGURE dhcpd
3. Edit /etc/dhcpd.conf (backup the original dhcpd.conf file)
Content of dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none; ddns-updates off;
allow booting; # Enable DHCP server for booting request only
option domain-name "example.com";
option domain-name-servers dns1.dnsserver.com;
option routers router.example.com;
# define rules to identify DHCP Requests from PXE and Etherboot clients.
class "pxe" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
}
class "etherboot" {
match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";
}
subnet 192.168.1.0 netmask 255.255.255.0 {
option broadcast-address 192.168.1.255;
pool {
default-lease-time 180; # no long lease time required for booting
max-lease-time 360; # booted system does its own dhcp request
server-name "192.168.1.50"; # set to ip address of TFTP server
next-server 192.168.1.50;
filename "pxelinux.0";
allow members of "pxe";
allow members of "etherboot"; # allow etherboot, too
range 192.168.1.201 192.168.1.211;
}
}
4. Edit /etc/sysconfig/dchpd
Assign the interface where DHCP server listens to
DHCPD_INTERFACE=”eth1″
It is also possible to put “ANY” to listen to any interface
Start DHCP server:
#> rcdhcpd start
CONFIGURE PXE BOOT
5. Create a directory:
mkdir -p /srv/tftpboot/pxelinux.cfg
6. Copy file /usr/share/syslinux/pxelinux.0 to TFTP server home
cp /usr/share/syslinux/pxelinux.0 /srv/tftpboot
7. Copy following files from [OPENSUSE-DVD]/boot/i386/loader into /srv/tftpboot
8. Copy the following file from [OPENSUSE-DVD]/boot/i386/loader into /srv/tftpboot/pxelinux.cfg
Then, rename “isolinux.cfg” to “default”
All set and ready to go !! Fire up the notebook and enable the PXE boot, it will boot up directly over the network.
Type linux on the prompt to start installation. Adding textmode=1 will run installation in text mode which is better for the Armada laptop because it does not have a lot of memory for GUI installation.
The rest is just to assign the location of openSUSE installation source via HTTP, NFS, or FTP.
Reference:
http://en.opensuse.org/SuSE_install_with_PXE_boot