From 1151cc86a19343cb8d4ff7810a10afb28dc56100 Mon Sep 17 00:00:00 2001 From: rickwu4444 Date: Tue, 7 Oct 2025 13:32:49 +0800 Subject: [PATCH] Add virtualization-kvm as part of requires of job virtualization/verify_lxd_vm This can prevent the job execute on the system that not support KVM instead of execute the job and get fail in later stage --- providers/base/units/virtualization/jobs.pxu | 1 + 1 file changed, 1 insertion(+) diff --git a/providers/base/units/virtualization/jobs.pxu b/providers/base/units/virtualization/jobs.pxu index 4566fb31f6..1a75957067 100644 --- a/providers/base/units/virtualization/jobs.pxu +++ b/providers/base/units/virtualization/jobs.pxu @@ -6,6 +6,7 @@ estimated_duration: 60.0 requires: executable.name == 'lxc' package.name == 'lxd-installer' or snap.name == 'lxd' + virtualization.kvm == 'supported' command: virtualization.py --debug lxdvm _purpose: Verifies that an LXD Virtual Machine can be created and launched