# Clone machines with CloneZilla and iVentoy

This guide will describe how to clone &amp; restore disks using [CloneZilla ](https://clonezilla.org)booted over PXE using [iVentoy ](https://www.iventoy.com/en/index.html)on Windows.

Prerequisites:

CloneZilla ISO: https://clonezilla.org/downloads/download.php?branch=stable

iVentoy ZIP: [https://github.com/ventoy/PXE/releases/download/v1.0.19/iventoy-1.0.19-win64-free.zip](https://github.com/ventoy/PXE/releases/download/v1.0.19/iventoy-1.0.19-win64-free.zip)

#### Setup iVentoy:

Unpack the iVentoy ZIP and add the CloneZilla ISO to iVentoy's ISO folder.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/2NybeMo4oO3PjVwF-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/2NybeMo4oO3PjVwF-image.png)

Now start iVentoy by running iVentoy\_64.exe, this should open iVentoy's web interface. Here we can start iVentoy's built-in DHCP server to start serving PXE.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/fLRaOwSmDkGKL5uo-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/fLRaOwSmDkGKL5uo-image.png)

Now you can boot your CloneZilla over PXE on the device you want to clone or restore.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/BueGBivdVMVpYsNm-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/BueGBivdVMVpYsNm-image.png)

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/c0XPKmZ6QxyAXd2F-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/c0XPKmZ6QxyAXd2F-image.png)

#### SMB share

Create a SMB-share on the Windows machine running iVentoy, this share will be used as a target for the disk cloning or source for restoring a disk image.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/qVzzmtBcIJwbNSNP-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/qVzzmtBcIJwbNSNP-image.png)

#### CloneZilla

Start CloneZilla.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/axGwU1OGauSEcFwf-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/axGwU1OGauSEcFwf-image.png)

Select device-image.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/Nvz00j4n9XjqLntZ-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/Nvz00j4n9XjqLntZ-image.png)

Select samba\_server.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/EBN5yX7Mi3urgHjY-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/EBN5yX7Mi3urgHjY-image.png)

Enter the IP of the device that serves the SMB-share.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/CuLml2I9NO6RddY2-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/CuLml2I9NO6RddY2-image.png)

Enter the SMB-share username.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/8Uyte7yQe9YQXJbw-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/8Uyte7yQe9YQXJbw-image.png)

Enter the SMB-share path, after this you will be prompted for your account password.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/HMOPL1LpMwRLFdhk-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/HMOPL1LpMwRLFdhk-image.png)

Select export mode.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/kvzaqHNXjmAMzcoR-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/kvzaqHNXjmAMzcoR-image.png)

Select either savedisk or restoredisk, savedisk will save the disk image to the SMB-share, restoredisk will allow for restoring disk images from the SMB-share.

[![image.png](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/scaled-1680-/4kOBdke6AaW5nMwr-image.png)](https://wiki.leerkotte.net/uploads/images/gallery/2023-11/4kOBdke6AaW5nMwr-image.png)