EnsureOpnsenseImage
Ensures /var/lib/vz/template/iso/opnsense.img is present on the Proxmox host. Mirrors EnsureNixosIso shape: file-level Dropbox sync of the 7z archive, then SevenZip extract. Source archive contains the raw OPNSense disk image (img file derived from the official OPNsense-X.Y-vga-amd64 download — ungzipped). The .img is fed into qm importdisk by ProvisionOpnsenseVm.
public static class EnsureOpnsenseImage
1. Fields
1.1. DropboxArchiveSubPath
Dropbox sub-path for the 7z archive — relative to DropboxOptions.Root. Matches the same pattern used by DropboxArchiveSubPath.
public const string DropboxArchiveSubPath
1.2. ProxmoxOpnsenseImagePath
Absolute target path on Proxmox hosts.
public static readonly AbsolutePath ProxmoxOpnsenseImagePath
2. Methods
2.1. EnsureOpnsenseImageOnProxmoxHost(ISystemHost, IFileProvider)
Syncs opnsense.img on host from dropbox. If already present, skips. Otherwise downloads the 7z, extracts, removes archive.
public static EnsureIsoResult EnsureOpnsenseImageOnProxmoxHost(ISystemHost host, IFileProvider dropbox)
| Name | Type | Description |
|---|---|---|
host |
ISystemHost |
|
dropbox |
IFileProvider |
Returns: EnsureIsoResult