8000 Is disk resize supported for vz driver? · Issue #1310 · abiosoft/colima · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Is disk resize supported for vz driver? #1310

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

Closed
1 of 5 tasks
caidingyu opened this issue May 2, 2025 · 3 comments
Closed
1 of 5 tasks

Is disk resize supported for vz driver? #1310

caidingyu opened this issue May 2, 2025 · 3 comments

Comments

@caidingyu
Copy link

Description

Is disk resize supported for vz driver?

I can't find a clear statement in README or FAQ documents, which seems imply it's supported? I tried below steps but the volume is not increased, although the disk allocation of the VM is changed. Is there any additional steps required to resize volume? (And can those steps be documented?)

Or is it true according to #817 that disk resize is not supported for vz driver? If so can it also be documented in README or FAQ?

Thanks!

Version

colima version 0.8.1
git commit: 96598cc5b64e5e9e1e64891642b91edc8ac49d16

runtime: docker
arch: aarch64
client: v28.1.1
server: v24.0.7
limactl version 1.0.7
zsh: command not found: qemu-img

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

colima status
INFO[0000] colima is running using macOS Virtualization.Framework 
INFO[0000] arch: aarch64                                
INFO[0000] runtime: docker                              
INFO[0000] mountType: virtiofs                          
INFO[0000] socket: unix:///Users/ericca/.colima/default/docker.sock 

Reproduction Steps

  1. colima stop
  2. colima start --edit - Followed https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#how-can-disk-size-be-increased to increase the disk size from 60GB to 100GB.
  3. run colima list to check vm status, which shows 100GB:
colima list
PROFILE    STATUS     ARCH       CPUS    MEMORY    DISK      RUNTIME    ADDRESS
default    Running    aarch64    2       4GiB      100GiB    docker     
  1. run colima ssh -- df -h /usr/local to check volume size, which still shows 60GB:
colima ssh -- df -h /usr/local
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        58G   53G  4.4G  93% /

Expected behaviour

The volume size of the VM is increased to 100GB.

Additional context

No response

@matthiasdg
Copy link

Seems to work here if qemu is installed. Upon resize it says: unable to resize disk: qemu-img not found, run 'brew install qemu' to install context=vm. Also using vz driver and looks ok now at first sight

@abiosoft
Copy link
Owner
abiosoft commented May 5, 2025

Yeah, supported only if qemu-img exists i.e. qemu is installed.

@caidingyu
Copy link
Author

Installed qemu and tested it again. It works as expected now.
Thanks!

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

No branches or pull requests

3 participants
0