From b8119579a246727805a03c5a8e60fb44109410f6 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 13 Mar 2021 14:51:19 +0200 Subject: fix: VMs can be restarted Previously, the temporary file for the cloud-init configuration ISO was left attached to the VM. This meant the VM couldn't be turned off and back on again: the temporary no longer existed. Now we detach the ISO file after the VM has booted. As a side effect, vmadm has gained start and shutdown subcommands, so that the fix can be tested. --- vmadm.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vmadm.md') diff --git a/vmadm.md b/vmadm.md index 0ba4f12..a3e62d7 100644 --- a/vmadm.md +++ b/vmadm.md @@ -158,6 +158,9 @@ when I invoke ssh -F .ssh/config debian@smoke df -h / then stdout contains "4.9G" when I invoke ssh -F .ssh/config debian@smoke free -m then stdout contains "1997" +when I invoke vmadm shutdown --config config.yaml smoke.yaml +when I invoke vmadm start --config config.yaml smoke.yaml +when I invoke ssh -F .ssh/config debian@smoke hostname ~~~ -- cgit v1.2.1