aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-06-03 12:55:41 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-06-03 13:18:22 -0700
commitaf4eb343fab258bee3993b031889e26eb221f203 (patch)
tree4f5be32734cb00441b8173a36aee94c87fd40ad1
parent413c43607b48db350d11458da8018d7ae2c5a452 (diff)
downloadconsfigurator-af4eb343fab258bee3993b031889e26eb221f203.tar.gz
LIBVIRT:KVM-BOOTS-CHROOT-FOR: warning->error if same hostname
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r--src/property/libvirt.lisp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/property/libvirt.lisp b/src/property/libvirt.lisp
index 534a875..7ba102b 100644
--- a/src/property/libvirt.lisp
+++ b/src/property/libvirt.lisp
@@ -233,8 +233,10 @@ Sample usage:
There's repetition here, and you might like to use DEFPROPSPEC to establish
your preferred VM networking setup and corresponding DEPLOYS propapp."
(:desc #?"libvirt KVM VM for ${(get-hostname host*)} defined")
+ ;; Same hostname probably means that the VM HOST inherited the hypervisor
+ ;; HOST's hostname as one was not explicitly set; probably a mistake.
(when (string= (get-hostname host*) (get-hostname))
- (warn "KVM VM has same hostname as hypervisor host; may cause issues."))
+ (failed-change "KVM VM has same hostname as hypervisor host."))
(destructuring-bind
(&key (vcpus 1) (memory 1024) autostart
virt-options chroot-options always-deploys