You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On macOS, some of the VMs that are recorded in my configuration won't delete:
% krunvm start debian-microVM
Error: error unmounting container debian-working-container: container not known
buildah returned an error:
% krunvm delete debian-microVM
Error: error unmounting container debian-working-container: container not known
buildah returned an error:
Notice the empty buildah output.
buildah only shows a restricted list of containers:
% buildah --root /Volumes/krunvm/root --runroot /Volumes/krunvm/root list -a
CONTAINER ID BUILDER IMAGE ID IMAGE NAME CONTAINER NAME
89619ec2a430 * a6be1f66f70f ubuntu-working-container
38114032134f * a6be1f66f70f ubuntu-working-container-1
None of these VMs can be deleted using krunvm today, because the error causes the configuration to not be updated. It might be useful to add a -f option to ignore buildah errors and delete entries in the krunvm config anyway.
The text was updated successfully, but these errors were encountered:
c3d
added a commit
to c3d/krunvm
that referenced
this issue
Jul 6, 2023
There are cases where krunvm fails to delete a VM, e.g. because the
corresponding container no longer exists. Add a `--force` (or `-f`)
option to the `delete` subcommand that forces deletion of the VM
configuration in that case.
Fixes: containers#42
Signed-off-by: Christophe de Dinechin <[email protected]>
c3d
linked a pull request
Jul 6, 2023
that will
close
this issue
On
macOS
, some of the VMs that are recorded in my configuration won't delete:Notice the empty
buildah
output.buildah
only shows a restricted list of containers:The container for
debian-microVM
is not there:In my VM list, many of my VMs have non-existent containers and fail the same way, e.g.:
What I find more concerning is that several VMs apparently share the same container. Is that normal?
None of these VMs can be deleted using
krunvm
today, because the error causes the configuration to not be updated. It might be useful to add a-f
option to ignorebuildah
errors and delete entries in thekrunvm
config anyway.The text was updated successfully, but these errors were encountered: