Install Debian 7 (Wheezy) over the network)

Source: Internet
Author: User
Tags gz file debian server

Install Debian 7 (Wheezy) over the network)

This tutorial guides you to directly use DNSMASQ as the PXE Server (pre-start execution environment) and install Debian 7 (Wheezy) on the network ), in this case, assume that your server does not provide any CD/DVD/USB media drive, or that it can only be operated through the connected monitor, keyboard, and mouse.

Debian 7 network installation on the client

DNSMASQ is a lightweight network infrastructure server that provides key services such as DNS, DHCP, and network startup through built-in DNS, DHCP, and TFTP servers.

Once the PXE Server starts and runs, you can instruct all your clients to start directly from the network, provided that your client must have a network card that supports Network startup, network startup can be enabled from the BIOS network startup or startup service options.

Use the systemd Management System On Debian

Install Mate 1.8 In CentOS 7/Debian Jessie/Debian Wheezy

Upgrade glibc to 7.6 In Debian 2.15

How do users of Debian 7 and Debian 8 install Oracle Java 8?

Use CentOS 6.5 to create a Docker image for Debian 7 Wheezy

Debian 7.0 Wheezy test experience

Install Debian 7.0 Wheezy on a USB flash drive

  • Debian 7 (Wheezy) Installation Guide
Step 1: install and configure the DNSMASQ Server

1. First, after installing the Debian server, make sure that your system uses a static IP address. In addition to starting the network, you must also provide the DHCP service for your entire network segment. After the static IP address is set, run the following command with the root account or user with the root power to install the DNSMASQ server.

  1. # Apt-get install dnsmasq

Install the Dnsmasq package

2. After the DNSMASQ package is installed, You can edit the configuration file. First, create a backup of the master configuration file, and then use the following command to edit the dnsmasq. conf file.

  1. # Mv/etc/dnsmasq. conf/etc/dnsmasq. conf. backup
  2. # Nano/etc/dnsmasq. conf

Back up Dnsmasq Configuration

3. The above backup process is suitable for renaming the configuration file, so the new file should be empty. You can use the DNSMASQ configuration file section described below.

  1. Interface = eth0
  2. Domain = debian. lan
  3. Dhcp-range =,,, 1 h
  4. Dhcp-boot = pxelinux.0, pxeserver,
  5. Pxe-prompt = "Press F8 for menu.", 60
  6. # Pxe-service types: x86PC, PC98, IA64_EFI, Alpha, Arc_x86, Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI
  7. Pxe-service = x86PC, "Install Debian 7 Linux from network server", pxelinux
  8. Enable-tftp
  9. Tftp-root =/srv/tftp

Dnsmasq Configuration

  • Interface-the network interface that the server listens.
  • Domain-replace it with your own domain name.
  • Dhcp-range-Use your own network mask to define the network IP address range.
  • Dhcp-boot-retain the default value, but replace the IP address statement with your own server IP address.
  • Pxe-prompt-keep default-Wait 60 seconds when you press F8 to enter the menu.
  • Pxe = service-use x86PC as the 32-bit/64-bit architecture, and enter the menu description prompt of the quotation mark string. Other values may be PC98 or IA64.EFI, Alpha, ArcX86, IntelLeanClient, IA32EFI, BCEFI, XscaleEFI and X86-64EFI.
  • Enable-tftp-enable the built-in TFTP server.
  • Tftp-root-use/srv/tftp as the storage location of the Debian network Startup File.
Step 2: Download the Debian network Startup File and open the Firewall Connection

4. Now, download the Debian network Startup File. First, modify the path of your current working directory to the location of the TFTP root directory, which is defined by the final configuration Statement (/srv/tftp system path ).

Go to the official page image of the network startup section of Debian network installation and capture the following files. The files to be crawled depend on the system architecture you want to install on the client.

Download the netboot.tar.gz file and extract the file for archiving (the process description is only applicable to 64-bit files, but also for other system architectures ).

  1. # Cd/srv/tftp/
  2. # Wget
  3. # Tar xfz netboot.tar.gz
  4. # Wget
  5. # Wget
  6. # Wget

At the same time, make sure that all files in the TFTP directory can be read by the TFTP server.

  1. # Chmod-R 755/srv/tftp/

Download the Debian network Startup File

Use the following variables to install the image and architecture on the Debian network.

  1. # Wget http: // "$ YOURMIRROR"/debian/dists/wheezy/main/installer-"$ ARCH"/current/images/netboot/netboot.tar.gz
  2. # Wget http: // "$ YOURMIRROR"/debian/dists/wheezy/main/installer-"$ ARCH"/current/images/SHA256SUMS
  3. # Wget http: // "$ YOURMIRROR"/debian/dists/wheezy/Release
  4. # Wget http: // "$ YOURMIRROR"/debian/dists/wheezy/Release. gpg

5. Next, start or restart the DNSMASQ daemon and run the netstat command to obtain the list of ports listened to by the server.

  1. # Service dnsmasq restart
  2. # Netstat-tulpn | grep dnsmasq

Start the Dnsmasq Service

6. Debian-based releases usually come with UFW firewall packages. Run the following command to open the desired DNSMASQ port: 67 (Bootps), 69 (TFTP), 53 (DNS) 4011 (proxy DHCP) udp and 53 tcp (DNS ).

  1. # Ufw allow 69/udp
  2. # Ufw allow 4011/udp # Only if you have a ProxyDHCP on the network
  3. # Ufw allow 67/udp
  4. # Ufw allow 53/tcp
  5. # Ufw allow 53/udp

Enable Dnsmasq Port

Now, the PXE loader on your client network interface will load the pxelinux configuration file from the/srv/tftp/pxelinux. cfg directory in the following order.

  • GUID File
  • MAC files
  • Default file


For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.