Open gssbzn opened 1 year ago
Yes, basically the operating system doesn't automatically detect the new sizing here.
EDIT: Actually, I don't think set --disk-size
ends up doing anything right now. IIRC I had to also do e.g. truncate -s 300G ~/.local/share/containers/podman/machine/applehv/podman-machine-default-arm64.raw
Arguably, the podman-machine code should do this; increase size, but don't allow decreasing as that would corrupt the disk.
And then after you've booted, run these steps inside podman machine ssh
(as root)
/sbin/growpart /dev/vda 4
unshare -m /bin/sh -c 'mount -o remount,rw /sysroot && xfs_growfs /sysroot'
(Arguably of course...we should do this by default in the OS...wouldn't be hard)
I agree, especially when this feature is available via the GUI, it doesn't make much sense from a UE perspective to have this configurable but requires terminal (SSH) access to the Podman VM to have it actually reflect in the GUI. Thanks for the fix above @cgwalters++
Issue Description
I tried to increase the disk size of my containers running
podman machine set --disk-size
but even thopodman machine inspect
shows the new value any new or existing container will still report the old disk sizeSteps to reproduce the issue
Steps to reproduce the issue
podman machine stop
podman machine set --disk-size <new value>
podman machine start
podman exec -it <some new or existing container> df -h
Describe the results you received
The container will still report the old disk size
Describe the results you expected
The container should report the new disk size
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
No
Additional environment details
macOS local
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting