Skip to content

Commit 06d46f8

Browse files
authored
Merge pull request #1471 from stgraber/main
Clarify device override syntax
2 parents 2769a24 + e616345 commit 06d46f8

File tree

15 files changed

+1454
-1346
lines changed

15 files changed

+1454
-1346
lines changed

cmd/incus/create.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ func (c *cmdCreate) Command() *cobra.Command {
4444
cmd.Example = cli.FormatSection("", i18n.G(`incus create images:ubuntu/22.04 u1
4545
4646
incus create images:ubuntu/22.04 u1 < config.yaml
47-
Create the instance with configuration from config.yaml`))
47+
Create the instance with configuration from config.yaml
48+
49+
incus launch images:debian/12 v2 --vm -d root,size=50GiB -d root,io.bus=nvme
50+
Create and start a virtual machine, overriding the disk size and bus`))
4851

4952
cmd.Aliases = []string{"init"}
5053
cmd.RunE = c.Run

cmd/incus/launch.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ incus launch images:ubuntu/22.04 u2 -t aws:t2.micro
3333
Create and start a container using the same size as an AWS t2.micro (1 vCPU, 1GiB of RAM)
3434
3535
incus launch images:ubuntu/22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB
36-
Create and start a virtual machine with 4 vCPUs and 4GiB of RAM`))
36+
Create and start a virtual machine with 4 vCPUs and 4GiB of RAM
37+
38+
incus launch images:debian/12 v2 --vm -d root,size=50GiB -d root,io.bus=nvme
39+
Create and start a virtual machine, overriding the disk size and bus`))
3740
cmd.Hidden = false
3841

3942
cmd.RunE = c.Run

0 commit comments

Comments
 (0)