This pull request includes several changes to improve the script's functionality by adding support for KVM acceleration and refining JSON field extraction. The most important changes include adding the --use-kvm option to the scripts, updating the JSON extraction method, and ensuring the KVM device is checked before use.
KVM Support Enhancements:
scripts/run-local.sh: Added use_kvm variable and command-line option --use-kvm to enable KVM for VM acceleration. Updated the script to pass this option to run.sh.
scripts/run.sh: Added use_kvm variable and command-line option --use-kvm. Included a check for /dev/kvm and updated Docker commands to use the KVM device if available.
JSON Field Extraction Improvement:
scripts/shared.sh: Refined the extract_json_field function to use sed instead of regex for extracting JSON field values, improving reliability and readability.
This pull request includes several changes to improve the script's functionality by adding support for KVM acceleration and refining JSON field extraction. The most important changes include adding the
--use-kvm
option to the scripts, updating the JSON extraction method, and ensuring the KVM device is checked before use.KVM Support Enhancements:
scripts/run-local.sh
: Addeduse_kvm
variable and command-line option--use-kvm
to enable KVM for VM acceleration. Updated the script to pass this option torun.sh
.scripts/run.sh
: Addeduse_kvm
variable and command-line option--use-kvm
. Included a check for/dev/kvm
and updated Docker commands to use the KVM device if available.JSON Field Extraction Improvement:
scripts/shared.sh
: Refined theextract_json_field
function to usesed
instead of regex for extracting JSON field values, improving reliability and readability.