# Chapter 6: Imaging I

# Imaging

**![image.png](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/eFfimage-png.png)**  
This section is dedicated to**verifying the status of the imaging server**, an essential step before deploying a system or creating a reference image.

The **imaging server** is a central component of Medulla: it allows a system image (a sort of complete "copy" of a computer) to be sent to one or more workstations. **If this server is unavailable or malfunctioning, no imaging-related operation can be completed**.

This is why it is recommended to **systematically check its status before performing any such action.**

### Accessing the Imaging Server Status

When you click on **the Imaging Server Status** tab, you are immediately taken to the page where the pre-selected entity is neither private nor public; we will therefore refer to it as "General."

#### "General" Entity with Server Offline

This means that the imaging server linked to the "General" entity is inactive. You will not be able to deploy images to the machines in this entity

#### Understanding the Displayed Information

##### Selected Entity

At the top of the page, you must select**the** relevant**entity**.  
Entities correspond to logical groupings, often used to separate environments (e.g., services, departments, locations).

**[![entityselection.png](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/entityselection-png.png)](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/entityselection-png.png)**

Examples of entities:

- **Public**
- **Private**
- **General**

##### Why it matters:

   
Each entity can be linked to a separate imaging server. It is therefore crucial to **verify the status of the server for the entity you wish to use.**

#### Server Status

For the selected entity, a visual indicator shows the current status of the server.

Three statuses may appear:

- **Available**  
    The server is operational. You can proceed with image creation or deployment.
- **Offline**  
    The server is not responding.  
    **No imaging operations can be performed.**  
    **Recommended action:** contact the administrator or technical support.
- **Connection error**  
    The server is reachable, but the connection fails (often due to a configuration or network communication issue).  
    **Operations are blocked.**  
    **Recommended action:** report the issue to the technical team.

#### "Private" entity with connection error

Even if the server appears to be accessible, **communication is not working**.  
**The deployment will fail upon launch** because the connection between Medulla and the server is broken.

[![image.png](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/TJfimage-png.png)](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/TJfimage-png.png)

#### "Public" entity with successful connection 

##### **[![publicentittstat.png](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/publicentittstat-png.png)](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/publicentittstat-png.png)**

If there are no errors and the server is online, this means the server is active and ready for use; it will therefore display various statistics as shown with the "Public" entity above.

In this case, it will display various information:

- **Available disk space on the server: This** section shows the server’s storage capacity, i.e., the space available to host system images. This space is divided into two parts called “partitions”; the first (dev/vda3) is the main partition, and the remaining free space indicates that there is room left to store images. The second is a small partition used for server boot but has no impact on deployments.
- **Server load: This** data provides a general overview of the server’s status, such as the duration of operation without a reboot and RAM usage
- **Public entity statistics: This** is information about imaging usage within the entity. Clients correspond to the machines associated with the entity; the "client has x backup images" field indicates which machines required a restore, and the number of available masters tells us how many system images are ready for deployment.

<p class="callout info">Before performing any imaging operation, verify that you are on the correct entity and that the server status is listed as **“Available.”**  
If the status is **"Offline"** or **"Connection Error**, **"** do not proceed and notify the administrator or support.</p>

# Manage masters

[![mastergestionpublic.png](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/mastergestionpublic-png.png)](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/mastergestionpublic-png.png)  
A **master** is a complete system image created from a configured workstation. It serves as a template for quickly and consistently deploying an environment to other machines.

Before any deployment, it is essential to know which masters are available and how to use them.

#### Reading the displayed information

Each master is presented as a line containing several elements:

- **Label**: automatic identifier for the image.
- **Description**: optional text describing the image’s content or purpose.
- **Creation date**: indicates when the image was generated.
- **Compressed size**: size of the image file (expressed in GB).
- **Default startup menu**: specifies whether the image is used automatically during network startup.
- **Actions**: set of options available for the image.

#### Use a master for deployment

- **Select a master** from the list.
- **Check its date,** description, and size to ensure it matches what you want to deploy.
- **Select the image** as the basis for deploying one or more workstations via the dedicated interface.

The master system will be automatically installed on the target workstations, without requiring manual intervention on each machine.

#### Actions available for each image

For each master, you can perform several operations:

- **Add to the default boot menu**
    
    Allows you to set the image as the one automatically used during a workstation’s network boot (useful if you perform frequent deployments).
- **Create a bootable ISO**  
    Generates an ISO file from the image, which you can then copy to a USB drive or CD to boot a computer offline.
- **Edit the image**  
    Modify the information associated with the image, such as the description or name.
- **Clone the master**  
    Creates a copy of the current image. This allows you to create a new version without modifying the original.
- **Delete**  
    Permanently deletes the image from the server. This action is irreversible.

<article class="text-token-text-primary w-full" dir="auto" id="bkmrk-avant-d%E2%80%99utiliser-un-"><p class="callout info">Before using a master, verify that it matches the desired configuration, including the operating system, version, and installed software. Only delete a master if you are certain it is no longer in use, as this action is irreversible. If you are unsure which image to choose or what action to take, it is recommended that you contact your technical support representative for guidance.</p>

</article>

# Manage startup services

##### [![servicegestion.png](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/servicegestion-png.png)](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/servicegestion-png.png)

Boot services allow machines to boot an image from the network (via PXE, for example).

#### To configure 

- Side menu  **Manage boot services**

#### You can 

- Enable or disable certain services
- Customize the boot process to suit your environment

# Default startup menu

[![image.png](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/voYimage.png)](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/voYimage.png)

This section allows you to choose between **automatic or manual** behavior when machines start up.

#### Access 

- Side menu**Default startup menu**

#### Available options 

You can edit each option to adjust:

- Default selection
- Classic startup display or WOL (Wake On LAN)

# Post-imaging scripts

##### [![postimagingscript.png](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/postimagingscript-png.png)](https://docs.medulla-tech.io/uploads/images/gallery/2025-05/scaled-1680-/postimagingscript-png.png)

Allows you to automate actions **after** an image is deployed (such as installing software or configuring the network).

#### To create/edit a script 

- Side menu:**Post-Imaging Script**
- Click **Duplicate** on the latest postinstall
- Click Edit on the postinstall script you just created.
- Type:

MountSystem  
CopySysprep (the name of your sysprep without parentheses)  
CopyRunAtOnce  
CopyAgent  
CopyDrivers  
UseOEMBiosLicence (if you are using Windows OEM licenses)

- Associate it with a deployment process

<span style="text-decoration:underline;"><span style="color:rgb(0,0,0);text-decoration:underline;">Here is what the post-install script options do:</span></span>

**MountSystem:**  copies the master image to the machine, mounts the partition(s), and detects the mount points for the various operations.  
**CopySysprep**: retrieves the registered hostname from the PXE (the MAC/hostname association), adapts it in the answer file, and copies it to the Windows image under a generic name, unatended.xml.  
**CopyRunAtOnce:**  copies the setupcomplete.cmd file, which will be executed on the final Windows reboot. This file primarily serves to delete the unatended.xml file, which likely contains a user with domain join permissions.  
**CopyAgent:**  copies the Medulla-Agent-windows-FULL-latest.exe agent; it is also possible to pass a parameter to select the agent to deploy.  
**CopyDrivers:**  Copies the default drivers required by Windows 10.  
**UseOEMBiosLicence:**  Copies the license present in the BIOS and enters it into the post-installation sysprep file.

# How Imaging Works

<div id="bkmrk-l%27imaging-s%27articule">Imaging consists of several parts:</div><div id="bkmrk-cliquez-sur-l%27image-">  
</div><div id="bkmrk-cr%C3%A9ation-de-master">**Master Creation**</div><div id="bkmrk-nous-proposons-un-ma">We provide a pre-built and prepared master image, Windows 11 25H2.</div><div id="bkmrk-pour-cr%C3%A9er-le-master">To download and create the master, you can run the following command:</div><div id="bkmrk-.%2Fimport_master.sh">`import_master.sh`</div><div id="bkmrk--1">  
</div><div id="bkmrk-cr%C3%A9ation-de-sysprep">**Creating a sysprep**</div><div id="bkmrk-pour-cr%C3%A9er-un-syspre">To create a sysprep, go to Medulla and "Sysprep Answer File Manager," then follow the steps to create the sysprep file you want.</div><div id="bkmrk--2">  
</div><div id="bkmrk-cr%C3%A9ation-de-post-ins">**Creating a post-install script**</div><div id="bkmrk-le-master-r%C3%A9alis%C3%A9-%C3%A0-">The master created in the previous step requires a post-install script.</div><div id="bkmrk-les-scripts-de-post-">Post-install scripts enable various actions that accompany the master deployment; by default, we ask you to create a post-install script with the necessary options. Please refer to the documentation to create and fill it out, and to understand the different options.</div><div id="bkmrk--3">  
</div><div id="bkmrk-profil">**Profile**</div><div id="bkmrk-cr%C3%A9er-un-nouveau-pro">Create a new profile, associate it with the previously created post-install script, select 0 in the script field, and click Validate.</div><div id="bkmrk-ensuite-associer-le-">Then associate the profile with a master.</div><div id="bkmrk--4">  
</div><div id="bkmrk-d%C3%A9ploiement-d%27un-mas">**Deploying a master**</div><div id="bkmrk-d%C3%A9marrez-un-ordinate">Boot the computer you want to deploy via PXE (it must already be registered), then select the master with its associated profile and let the master deployment proceed.</div><div id="bkmrk--5">  
</div><div id="bkmrk--6">  
</div><div id="bkmrk-pour-chaque-%C3%A9tape-vo"><div>For each step, you can refer to the relevant sections on the other pages of this documentation.</div></div><div id="bkmrk-"></div><div id="bkmrk--7"></div><div id="bkmrk--8"></div><div id="bkmrk--9"></div><div id="bkmrk--10"></div><div id="bkmrk--11"></div><div id="bkmrk-%C2%A0"> </div><div id="bkmrk-%C2%A0-1"> </div><div id="bkmrk-%C2%A0-2"> </div><div id="bkmrk-%C2%A0-3"> </div><div id="bkmrk-%C2%A0-4"> </div><div id="bkmrk-%C2%A0-5"> </div><div id="bkmrk----">---</div><div id="bkmrk--12"></div>> <div id="bkmrk-optionnel-1">OPTIONAL</div>

<div id="bkmrk--13"></div><div id="bkmrk-pour-aller-plus-loin">For further information, if you really want to create a highly customized master:</div><div id="bkmrk-%C2%A0-6"> </div><div id="bkmrk--14"></div><div id="bkmrk--15"></div><div id="bkmrk--16"></div><div id="bkmrk-enregistrement-%28regi"><div id="bkmrk-enregistrement-%28regi-1">**Registration**</div><div id="bkmrk-pour-que-la-machine-">For the machine to be recognized by Medulla, it must be registered.</div><div id="bkmrk-lors-du-d%C3%A9marrage-de">When booting the machine via PXE on the network, the "register" option appears; you must select it to register the machine.</div><div id="bkmrk-ici%2C-soit-la-machine">Here, either the machine is already present in GLPI and the menu displays its name directly, or you can enter the machine’s name during registration.</div><div id="bkmrk--17">  
</div><div id="bkmrk-capture-d%27imagelorsq">**Image capture**  
Once the machine is properly registered, you will see the "backup" option in the menu to save the computer's image in order to create a master.</div><div id="bkmrk-quelques-pr%C3%A9-requis-">Some prerequisites for capturing an image correctly:</div><div id="bkmrk-vous-devez-tout-d%27ab">- First, you must back up a computer running a fresh copy of Windows straight out of the box. Then, when you boot it up, you must skip the OOBE (Out of Box Experience, the questions during Windows installation)
- Make sure there is no "pending reboot"; here is the command to check for one:

<div>Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" -ErrorAction SilentlyContinue</div><div>  
</div></div><div id="bkmrk-pour-pourrez-donc-r%C3%A9">- You can then perform some basic Windows configurations if needed, such as creating a user account, etc.
- Run the prepare-master.ps1 script found here:

<div>/var/lib/pulse2/imaging/postinst/winutils/prepare-master.ps1</div><div>  
</div><div>This script checks for Windows updates, removes non-essential applications, and disables BitLocker if the C: drive is encrypted; it also optimizes the image size by deleting temporary files and cleans up the Windows component store.</div><div>  
</div>- Reboot the machine.

</div><div id="bkmrk-pour-ne-pas-avoir-%C3%A0-">  
**Creating a master**</div><div id="bkmrk-lorsque-vous-avez-ca">Once you have captured your image in the previous step, you can find it in the Imaging menu of the machine on which you just performed the capture.</div><div id="bkmrk-rendez-vous-dans-%22to">Go to "All GLPI Machines," click the "Imaging Menu" action for the relevant machine, then "Images and Masters," where you will find the captured image.</div><div id="bkmrk-cliquez-sur-l%27image--1">Click on the captured image to convert it into a master, give it a name (label), then click "Validate and Convert to Master".</div></div>