Skip to content

Commit 79a00b3

Browse files
committed
feat: add disk guide
Signed-off-by: Animesh Pathak <kurosakiichigo.songoku@gmail.com> Co-authored-by: Akihiro Suda <suda.kyoto@gmail.com> Signed-off-by: Animesh Pathak <53110238+Sonichigo@users.noreply.github.com>
1 parent 353be89 commit 79a00b3

File tree

1 file changed

+29
-0
lines changed
  • website/content/en/docs/config

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: Disks
3+
---
4+
5+
This guide explains how to increase the disk size of a Lima VM running on macOS when you've run out of space, as well as how to edit the disk size using the `limactl` CLI.
6+
7+
## Prerequisites
8+
1. Sufficient free disk space on your host.
9+
2. VM type considerations:
10+
- For `qemu` VM type: All methods below are supported
11+
- For `vz` VM type: Option 1 is supported
12+
13+
## Resize Disk Using limactl
14+
15+
Starting with v1.1, Lima supports editing the disk size of an existing instance using the `--disk` flag with the `limactl edit` command.
16+
This is the recommended and simplest way to resize your VM disk.
17+
18+
```sh
19+
limactl edit <vm-name> --disk <new-size>
20+
```
21+
Example for 20GB:
22+
23+
```sh
24+
limactl edit default --disk 20
25+
```
26+
27+
> **Note:**
28+
> - Increasing disk size is supported, but shrinking disks is not recommended.
29+
> - The instance may need to be stopped before editing disk size.

0 commit comments

Comments
 (0)