diff --git a/kvm-install-vm b/kvm-install-vm index 592865e..5f20a8e 100755 --- a/kvm-install-vm +++ b/kvm-install-vm @@ -835,6 +835,8 @@ function create() { check_ssh_key if [ ! -z "${IMAGE+x}" ]; then + # Convert relative path to absolute path + IMAGE=$(realpath "${IMAGE}") DISK_FORMAT=$(detect_disk_format "${IMAGE}") output "Using custom image: ${IMAGE} (format: ${DISK_FORMAT})." OS_INFO="linux2024"