- Diskless remote boot in linux
- About DRBL
- Peacefully coexists with other OS
- Simply install DRBL on a single server and all your clients are taken care of
- Save on hardware, budget, and maintenance fees
- Бездисковая удаленная загрузка в Linux — Diskless Remote Boot in Linux
- СОДЕРЖАНИЕ
- Функции
- Как это работает
- Ключи к успешной гибридной клиентской среде с DRBL
- Boot Ubuntu via http/ftp server with pxe(diskless boot)
- Intro
- Pxe short info
- How i do it
- Customize initramfs
- Creating squashfs
- Setup bootloader, squashfs, and pxe server
- Conclusion
- Diskless Remote Boot in Linux
- From Wikipedia, the free encyclopedia
- Diskless remote boot in linux
- About DRBL
- Peacefully coexists with other OS
- Simply install DRBL on a single server and all your clients are taken care of
- Save on hardware, budget, and maintenance fees
Diskless remote boot in linux
About DRBL
DRBL (Diskless Remote Boot in Linux) is free software, open source solution to managing the deployment of the GNU/Linux operating system across many clients. Imagine the time required to install GNU/Linux on 40, 30, or even 10 client machines individually! DRBL allows for the configuration all of your client computers by installing just one server (remember, not just any virtual private server) machine.
DRBL provides a diskless or systemless environment for client machines. It works on Debian, Ubuntu, Red Hat, Fedora, CentOS and SuSE. DRBL uses distributed hardware resources and makes it possible for clients to fully access local hardware. It also includes Clonezilla, a partitioning and disk cloning utility similar to True Image® or Norton Ghost®.
The features of DRBL:
- Peacefully coexists with other OS
- Simply install DRBL on a single server and all your clients are taken care of
- Save on hardware, budget, and maintenance fees
Разработчики) | Лаборатория бесплатного программного обеспечения NCHC |
---|---|
Начальная версия | 1 апреля 2004 г. ( 2004-04-01 ) |
Стабильный выпуск | |
Операционная система | Linux |
Тип | Клонирование диска, аварийное восстановление, загрузка по сети, загрузка PXE |
Лицензия | Стандартная общественная лицензия GNU |
Веб-сайт | drbl.sourceforge.net |
DRBL ( D iskless R Эмоция В OOT в L inux) является NFS — / NIS сервер обеспечивает бездисковую или бессистемный среду для клиентских машин.
Его можно использовать для
- клонирующие машины со встроенным ПО Clonezilla ,
- обеспечение сетевой установки дистрибутивов Linux, таких как Fedora, Debian и т. д.,
- обеспечение машин через загрузку PXE (или аналогичными средствами) с небольшой операционной системой (например, DSL, Puppy Linux, FreeDOS).
- Установка на машину с поддерживаемым дистрибутивом Linux с помощью сценария установки,
- Live CD .
Установка возможна на машине с уже установленными Debian , Ubuntu , Mandriva , Red Hat Linux , Fedora , CentOS или SuSE . В отличие от LTSP , он использует распределенные аппаратные ресурсы и позволяет клиентам получить полный доступ к локальному оборудованию, что позволяет использовать серверные машины с меньшим энергопотреблением. Он также включает Clonezilla , утилиту для создания разделов и клонирования дисков, аналогичную Symantec Ghost.
DRBL подпадает под условия лицензии GNU GPL, что дает пользователю возможность настраивать его.
СОДЕРЖАНИЕ
Функции
DRBL выделяется в двух основных категориях.
Clonezilla (в комплекте с DRBL) использует Partimage, чтобы избежать копирования свободного места, и gzip для сжатия образов жестких дисков. Сохраненный образ может быть затем восстановлен на нескольких машинах одновременно с использованием многоадресных пакетов, что значительно сокращает время, необходимое для создания образа большого количества компьютеров. DRBL Live CD позволяет вам делать все это без фактической установки чего-либо на какую-либо из машин, просто загружая одну машину (сервер) с компакт-диска и загружая остальные машины по протоколу PXE .
Гибридный клиент — отличный способ использовать старое оборудование. Использование старого оборудования в качестве тонких клиентов — хорошее решение, но у него есть некоторые недостатки, которые может компенсировать гибридный клиент .
- Потоковое аудио / видео. Терминальный сервер должен распаковывать, повторно сжимать и отправлять видео по сети клиенту. Гибрид выполняет всю декомпрессию локально и может использовать любые возможности графического оборудования на локальном компьютере.
- Программное обеспечение, требующее ввода в реальном времени. Поскольку все вводимые данные на тонком клиенте отправляются по сети до того, как они будут зарегистрированы операционной системой, может возникнуть значительная задержка. Это основная проблема программного обеспечения, требующего ввода в реальном времени (например, видеоигр ). Гибридные клиенты запускают программное обеспечение локально и поэтому не имеют этой проблемы.
DRBL позволяет относительно легко настроить несколько гибридных клиентов .
Как это работает
Клиентский компьютер настроен на загрузку с сетевой карты с использованием PXE или Etherboot. Клиент запрашивает IP-адрес и образ tftp для загрузки, оба предоставляются сервером DRBL. Клиент загружает начальный RAM-диск, предоставленный сервером DRBL через tftp, и приступает к монтированию общего ресурса nfs (также предоставляемого сервером DRBL) в качестве корневого раздела (/). Оттуда клиент загружает либо дистрибутив Linux, на котором установлен сервер DRBL, Clonezilla, либо установщик для различных дистрибутивов Linux, в зависимости от того, как этот конкретный клиент был настроен на сервере DRBL.
Все системные ресурсы находятся на локальном компьютере, кроме хранилища, которое находится на сервере DRBL.
Ключи к успешной гибридной клиентской среде с DRBL
Основное узкое место в установке DRBL находится между хранилищем на сервере DRBL и клиентской рабочей станцией. Быстрое хранилище на сервере (RAID) и быстрая сеть (Gigabit Ethernet) идеально подходят для этого типа среды.
Источник
Boot Ubuntu via http/ftp server with pxe(diskless boot)
Intro
PXE is a great solution for booting a diskless computer (or a computer without an OS installed). This method is often used for terminal stations and OS mass installation.
Stock ubuntu (16.04) in pxe-mode can mount rootfs only from NFS. But this is not a great idea: any difficulties with the network/NFS server and the user gets problems.
In my opinion, it’s best to use other protocols, such as http/ftp. Once booting, you will have an independent system
You should add information about the limits of applicability of the proposed solution and what are the dependencies and restrictions.
Pxe short info
PXE (Preboot Execution Environment) is a special method for booting a computer from the bios / EFI.
How it works (simplified scheme):
- The computer bios/uefi sends ordinary dhcp request (DHCPDISCOVER)
- The dhcp server sends a response with the next-server option
- The computer sends DHCPREQUEST/DHCPINFORM request
- The dhcp server sends TFTP server address and the filename to upload
- The computer downloads this file from the tftp server. Its size is limited so, often, it’s a bootloader like pxeinux
- pxelinux reads its own config and downloads Linux kernel using initramfs
- Linux kernel downloads squashfs with main rootfs
- switch_root to its squashfs
Keep in mind that TFTP is a slow protocol. It works around UDP with a small block size (512K). Of course, you can increase this value, but this is a way of unstable operation.
A better solution:
- get bootloader via tftp
- get kernel (+ initramfs) via tftp
- get main rootfs squash via http/tftp
How i do it
Steps to solve the task:
- Add modules to initramfs
- Write my own boot script and add it to initramfs
- Make new initramfs
- Create squashfs with future rootfs
- Setup pxe server
- Run it
I used squashfs for rootfs (the simplest way is to create squashfs from installed ubuntu). Overlayfs is necessary to make rootfs writable.
Supported protocols are http/ftp, but you can try to add others via curl/other software.
Customize initramfs
There are 2 places where you can customize initramfs in ubuntu:
I’ll use /usr/share/initramfs-tools. First, I added needed support modules in initramfs:
Next, I wrote a boot script that does all the work:
The script has a lot of messages for understanding how it works.
After the modules and script, add your need to generate new initramfs:
Creating squashfs
The simplest method:
- install ubuntu on drive
- boot from LiveCD
- create squashfs from the installed system
I don’t recommend this way for production since you’ll have a very large squashfs (not the best idea for pxe)!
Setup bootloader, squashfs, and pxe server
I use pxelinux as a pxe bootloader. It’s an easy way. My pxe servers are Debian 10, tftp-hpa,dhcpd, and lighttpd.
I’ll omit the installation details, but I’ll show the important info.
TFRP server file struct (/srv/tftp is root dir fot tftp-hpa):
- firmware.sq is squashfs with rootfs
- *c32 are files for pxelinux
- vmlinuz is kernel
- initrd is initramfs(which i rebuild earler)
- pxelinux.bin — main pxelinux file
- default is config for pxelinux
It’s impotant to set the correct kernel parameters:
- rooturl=http://192.168.56.2/ubuntu/firmware.sq, url for rootfs
- boot=pxe, use my script for boot
- maxTryCount=10, number of tries for rootfs download (optional, default value 5)
And the last one is the dhcp config:
The extended variant (if the dhcp and tftp servers placed on different machines) requires the next-server option for dhcp.
Conclusion
This article shows you how to change the boot mode of ubuntu without any difficulties. Use it as information and write your solutions. This can be a system in the form of firmware (with squashfs), pxe, or another solution.
Источник
Diskless Remote Boot in Linux
From Wikipedia, the free encyclopedia
DRBL (Diskless Remote Boot in Linux) is a NFS-/NIS server providing a diskless or systemless environment for client machines.
It could be used for
- cloning machines with Clonezilla software inbuilt,
- providing for a network installation of Linux distributions like Fedora, Debian, etc.,
- providing machines via PXE boot (or similar means) with a small size operation system (e.g., DSL, Puppy Linux, FreeDOS).
Providing a DRBL-Server
- Installation on a machine running a supported Linux distribution via installation script,
- Live CD.
Installation is possible on a machine with Debian, Ubuntu, Mandriva, Red Hat Linux, Fedora, CentOS or SuSE already installed. Unlike LTSP, it uses distributed hardware resources and makes it possible for clients to fully access local hardware, thus making it feasible to use server machines with less power. It also includes Clonezilla, a partitioning and disk cloning utility similar to Symantec Ghost.
DRBL comes under the terms of the GNU GPL license so providing the user with the ability to customize it.
Источник
Diskless remote boot in linux
About DRBL
DRBL (Diskless Remote Boot in Linux) is free software, open source solution to managing the deployment of the GNU/Linux operating system across many clients. Imagine the time required to install GNU/Linux on 40, 30, or even 10 client machines individually! DRBL allows for the configuration all of your client computers by installing just one server (remember, not just any virtual private server) machine.
DRBL provides a diskless or systemless environment for client machines. It works on Debian, Ubuntu, Red Hat, Fedora, CentOS and SuSE. DRBL uses distributed hardware resources and makes it possible for clients to fully access local hardware. It also includes Clonezilla, a partitioning and disk cloning utility similar to True Image® or Norton Ghost®.
The features of DRBL:
- Peacefully coexists with other OS
- Simply install DRBL on a single server and all your clients are taken care of
- Save on hardware, budget, and maintenance fees