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
The --disk option does not work with a size below the virtual size of the relevant image. This makes sense (to avoid data loss). However, it is currently only enforced by the underlying qemu-img command.
multipassd itself does not perform this check and leaves files behind when qemu-img fails. The most significant of which is the copy of the image file.
This means that a few hundreds of MB of disk are leaked on such occasions. The regular user does not realize this and leaves the files behind.
$ multipass launch --disk 1G
launch failed: Cannot resize instance image
$ multipass list
No instances found.
$ du -sh ~/.local/share/multipassd/vault/instances/deep-midge/*
20K /home/ricab/.local/share/multipassd/vault/instances/deep-midge/cloud-init-config.iso
328M /home/ricab/.local/share/multipassd/vault/instances/deep-midge/ubuntu-18.04-server-cloudimg-amd64.img
$ qemu-img info /home/ricab/.local/share/multipassd/vault/instances/deep-midge/ubuntu-18.04-server-cloudimg-amd64.img | grep size
virtual size: 2.2G (2361393152 bytes)
disk size: 328M
cluster_size: 65536
The daemon logs
[warning] [qemu-img] qemu-img: warning: Shrinking an image will delete all data beyond the shrunken image's end. Before performing such an operation, make sure there is no important data there.
qemu-img: Use the --shrink option to perform a shrink operation.
The text was updated successfully, but these errors were encountered:
812: launch: Clean up instance data if an error occurs during image prep r=townsend2010,ricab a=townsend2010
Fixes#680
814: Teach fmtlib to deal with QString, can remove lots of toStdString() calls r=ricab,townsend2010 a=gerboland
RFC. Do we want?
Co-authored-by: Chris Townsend <[email protected]>
Co-authored-by: Ricardo Abreu <[email protected]>
Co-authored-by: Gerry Boland <[email protected]>
812: launch: Clean up instance data if an error occurs during image prep r=townsend2010,ricab a=townsend2010
Fixes#680
Co-authored-by: Chris Townsend <[email protected]>
Co-authored-by: Ricardo Abreu <[email protected]>
The
--disk
option does not work with a size below the virtual size of the relevant image. This makes sense (to avoid data loss). However, it is currently only enforced by the underlyingqemu-img
command.multipassd
itself does not perform this check and leaves files behind whenqemu-img
fails. The most significant of which is the copy of the image file.This means that a few hundreds of MB of disk are leaked on such occasions. The regular user does not realize this and leaves the files behind.
The daemon logs
The text was updated successfully, but these errors were encountered: