Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the size of the persistent disk configurable #275

Open
davidhsingyuchen opened this issue Mar 8, 2023 · 1 comment
Open

Make the size of the persistent disk configurable #275

davidhsingyuchen opened this issue Mar 8, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@davidhsingyuchen
Copy link
Contributor

What is the problem you're trying to solve?.

I have an container image that is larger than the size of the persistent disk, which is currently hardcoded to 50G:

diskSize = "50G"

More info: #231

Describe the feature you'd like

A field in finch.yaml that lets me specify the size of the persistent disk. After I update the value, stop the VM, and then start the VM, the value should take effect.

@davidhsingyuchen davidhsingyuchen added the enhancement New feature or request label Mar 8, 2023
@ollypom
Copy link
Contributor

ollypom commented Jun 5, 2023

Until this gets implemented, a workaround to increase the size of the VM Disk (replace +50G with an appropriate value):

# stop VM
finch vm stop

# Resize the disk image
/Applications/Finch/lima/bin/qemu-img resize /Applications/Finch/lima/data/_disks/finch/datadisk +50G

# Start the VM
finch vm start

# Grow the partition
LIMA_HOME=/Applications/Finch/lima/data /Applications/Finch/lima/bin/limactl shell finch sudo bash -c "growpart /dev/vdb 1"

# Resize the fs
LIMA_HOME=/Applications/Finch/lima/data /Applications/Finch/lima/bin/limactl shell finch sudo bash -c "resize2fs /dev/vdb1"

To check this has been implemented:

LIMA_HOME=/Applications/Finch/lima/data /Applications/Finch/lima/bin/limactl shell finch df -H

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants