HAOS VM helper script: issue + patch summary #7391
Unanswered
brianseaders
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Many AI Output. What excactly is the issue? Only xz or pv is missing, its just an one liner on your host.... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
haos-vm.sh
Attached patched script i have no idea what I'm doing sorry if I'm in the wrong place.
HAOS VM helper script: issue + patch summary
Symptom
exit code 127: while executing command pv -N "Extracting" > "$FILE_IMG"
.Environment
haos_ova-16.1.qcow2.xz
.Root causes
pv
: Script unconditionally pipesxz -dc
intopv
, failing ifpv
is not installed.pve_check
rejects PVE 9.1+ even though the rest of the flow works on 9.x.FILE_IMG
was derived with a brittle parameter expansion which could misresolve the.qcow2
output path.Patch
haos-vm.sh
Make
pv
optional:xz -dc "$CACHE_FILE" | pv -N Extracting > "$FILE_IMG"
with:xz-utils
is present.Relax PVE version check:
Reliable image path construction:
Preserve advanced options:
,${DISK_CACHE%*,}
.Commands you can run
Minimal manual fix to an existing script file
yourscript.sh
:Verification steps
Re‑run the script. Confirm:
/var/lib/vz/template/tmp/haos_ova-16.1.qcow2
.qm disk import
succeeds and reports an imported disk.Risks / notes
qm disk import
vsqm importdisk
. The patch autodetects and uses either.raw
is fine; adjust if you requireqcow2
on file storage.Beta Was this translation helpful? Give feedback.
All reactions