Add create-ova script for esxi image creation

This commit is contained in:
2026-10-01 18:21:19 +03:00
parent 597016abdb
commit 315311d160
2 changed files with 166 additions and 1 deletions
+11 -1
View File
@@ -30,7 +30,7 @@ docker build -t ep-eraser-builder .
docker run --rm -v "$PWD:/work" ep-eraser-builder
```
## VMware/VirtualBox disk
## VMware/VirtualBox images
Create a writable monolithic-sparse VMDK from the root ISO with `qemu-img` (`qemu-utils` on Debian):
@@ -42,6 +42,16 @@ The script defaults to `ep-eraser-amd64.hybrid.iso` and writes `ep-eraser-amd64.
The Docker builder includes `qemu-img` too. After building that image, run the converter with `docker run --rm -v "$PWD:/work" --entrypoint /work/create-vmdk.sh ep-eraser-builder`.
Create an ESXi-importable OVA with its own OVF descriptor and stream-optimized disk:
```sh
./create-ova.sh
```
The default output is `ep-eraser-amd64.ova` plus a SHA-256 sidecar. Import it in ESXi with **Deploy OVF Template**; VirtualBox can import the same OVA. The appliance defaults to BIOS boot and 2 CPUs/2 GiB RAM. It runs the same temporary live environment, not an installed persistent OS. Wiping host disks from a VM requires separately attaching the target disk through supported passthrough/RDM; the OVA disk itself is the protected boot medium. Use physical boot media for direct hardware wiping.
To build the OVA in Docker, use `docker run --rm -v "$PWD:/work" --entrypoint /work/create-ova.sh ep-eraser-builder`.
## Use
Boot the target machine from the image, inspect the disk list, and choose the exact device path. The program detects rotational media and presents the appropriate operation. Reboot after completion; do not remove the USB device until the result is shown.