Skip to content

Commit ca17b25

Browse files
authored
Merge pull request #3539 from Sonichigo/patch-1
feat: add resize disk guide
2 parents 37e7e59 + 140d6a7 commit ca17b25

File tree

1 file changed

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

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
## Resize Disk Using limactl
8+
9+
Starting with v1.1, Lima supports editing the disk size of an existing instance using the `--disk` flag with the `limactl edit` command.
10+
This is the recommended and simplest way to resize your VM disk.
11+
12+
```sh
13+
limactl edit <vm-name> --disk <new-size>
14+
```
15+
16+
Example for 20GB:
17+
18+
```sh
19+
limactl edit default --disk 20
20+
```
21+
22+
> **Note:**
23+
> - Increasing disk size is supported, but shrinking disks is not recommended.
24+
> - The instance may need to be stopped before editing disk size.

0 commit comments

Comments
 (0)