Automation / script / loader / Windows server 2012-2024
Technical assignment for the improvement of the assembly for automating the partitioning of hard drives in KVM and OpenVZ virtualizations
1. Project goal
To develop an ISO image that, when booted through a container with a bootloader, will perform automated partitioning of hard drives in KVM and OpenVZ virtualization environments. The process should include searching for virtual drivers, determining disk sizes, creating partitions with specified percentage ratios, assigning file systems, naming partitions, and rebooting the system.
2. Functional requirements
Creating an ISO image:
The ISO image must be compatible with the following bootloaders:
Windows:
NTLDR
Bootmgr
Windows PE
Windows Server 2012-2024
Linux:
GRUB
LILO
Syslinux
Isolinux
Extlinux
rEFInd
Using the bootloader in the container:
Develop a container that includes a bootloader to execute scripts and launch the ISO image.
The bootloader must be configured to run a script that:
Initializes the process of booting the ISO image.
Sets parameters for performing automated disk partitioning.
The boot and disk discovery process:
When launched from the container, the bootloader must:
Launch the ISO image.
Execute a script to search for virtual drivers and available hard drives.
Disk partitioning:
Assess the total size of available hard drives.
Create partitions with the following percentage ratios:
20% of the size of the first partition
20% of the size of the second partition
60% of the size of the third partition
Assign the NTFS file system to each partition.
Name the partitions (for example, "Data1", "Data2", "Data3").
Rebooting the system:
After completing the creation and formatting of partitions, the system must be rebooted.
3. Technical requirements
Support for bootloaders:
The ISO image must support booting through the specified Windows and Linux bootloaders.
The container with the bootloader must be compatible with the ISO image and ensure the correct execution of scripts.
File system:
Use NTFS for all created partitions.
Restrictions:
The operation must be initiated directly from the virtual machine.
Do not use USB or other external virtual disks.
4. Testing and verification
Functionality testing:
Check the operation of the container with the bootloader and the ISO image on different systems.
Verify the correctness of the partitioning and formatting of disks.
Documentation