ERROR: Storage error: cp failed: cp: cannot stat '/root/.chvm/vms/a2f897b3f599/rootfs.img/.': Not a directory #30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
When a VM is stopped and then started again,
chvm start-vmfails with:Steps to reproduce
chvm create-vm --id test --image ubuntu:latest --cpu 1 --mem 4096MBchvm start-vm --id test— workschvm stop-vm --id test— workschvm start-vm --id test— failsExpected behavior
start-vmshould start the existing VM without re-copying the rootfs image.Actual behavior
The
start-vmcode path runs acpcommand that appends/.to therootfs.imgfile path, treating it as a directory:Environment
chvm create-vm/chvm start-vmdeploy_vm(slice_count=1), started, stopped, then start fails on retryWorkaround
Delete and redeploy the VM instead of stop+start cycling.
Changes made:
1- skip re-creating the block image if it already exists
2- Remove stale API socket so a subsequent start doesn't get EADDRINUSE
3- added integration test to cover this part