Skip to content

Commit

Permalink
core: enable disk resize for VZ driver
Browse files Browse the repository at this point in the history
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
  • Loading branch information
abiosoft committed Jul 30, 2024
1 parent 05fd577 commit 4b14e8a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ The VM can be customized either by passing additional flags to `colima start`.
e.g. `--cpu`, `--memory`, `--disk`, `--runtime`.
Or by editing the config file with `colima start --edit`.

**NOTE**: ~~disk size cannot be changed after the VM is created.~~ From v0.5.3, disk size can be increased when Qemu is used.
**NOTE**: ~~disk size cannot be changed after the VM is created.~~ From v0.5.3, disk size can be increased.

#### Customization Examples

Expand Down
1 change: 0 additions & 1 deletion embedded/defaults/colima.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ cpu: 2

# Size of the disk in GiB to be allocated to the virtual machine.
# NOTE: value can only be increased after virtual machine has been created.
# Increasing the disk size requires `vmType: qemu`
#
# Default: 60
disk: 60
Expand Down
5 changes: 0 additions & 5 deletions environment/vm/lima/lima.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,6 @@ func (l *limaVM) syncDiskSize(ctx context.Context, conf config.Config) config.Co
return false
}

if conf.VMType == limaconfig.VZ {
log.Warnln("dynamic disk resize not supported for VZ driver, ignoring...")
return false
}

size := conf.Disk - instance.Disk
if size < 0 {
log.Warnln("disk size cannot be reduced, ignoring...")
Expand Down

0 comments on commit 4b14e8a

Please sign in to comment.