Skip to content

Commit 4b14e8a

Browse files
committed
core: enable disk resize for VZ driver
Signed-off-by: Abiola Ibrahim <[email protected]>
1 parent 05fd577 commit 4b14e8a

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The VM can be customized either by passing additional flags to `colima start`.
132132
e.g. `--cpu`, `--memory`, `--disk`, `--runtime`.
133133
Or by editing the config file with `colima start --edit`.
134134

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

137137
#### Customization Examples
138138

embedded/defaults/colima.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ cpu: 2
44

55
# Size of the disk in GiB to be allocated to the virtual machine.
66
# NOTE: value can only be increased after virtual machine has been created.
7-
# Increasing the disk size requires `vmType: qemu`
87
#
98
# Default: 60
109
disk: 60

environment/vm/lima/lima.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,6 @@ func (l *limaVM) syncDiskSize(ctx context.Context, conf config.Config) config.Co
310310
return false
311311
}
312312

313-
if conf.VMType == limaconfig.VZ {
314-
log.Warnln("dynamic disk resize not supported for VZ driver, ignoring...")
315-
return false
316-
}
317-
318313
size := conf.Disk - instance.Disk
319314
if size < 0 {
320315
log.Warnln("disk size cannot be reduced, ignoring...")

0 commit comments

Comments
 (0)