Skip to content

Commit

Permalink
incus: Clarify device override syntax
Browse files Browse the repository at this point in the history
Closes #1470

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
  • Loading branch information
stgraber committed Dec 13, 2024
1 parent 3e0f7ed commit 16c3755
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmd/incus/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ func (c *cmdCreate) Command() *cobra.Command {
cmd.Example = cli.FormatSection("", i18n.G(`incus create images:ubuntu/22.04 u1
incus create images:ubuntu/22.04 u1 < config.yaml
Create the instance with configuration from config.yaml`))
Create the instance with configuration from config.yaml
incus launch images:debian/12 v2 --vm -d root,size=50GiB -d root,io.bus=nvme
Create and start a virtual machine, overriding the disk size and bus`))

cmd.Aliases = []string{"init"}
cmd.RunE = c.Run
Expand Down
5 changes: 4 additions & 1 deletion cmd/incus/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ incus launch images:ubuntu/22.04 u2 -t aws:t2.micro
Create and start a container using the same size as an AWS t2.micro (1 vCPU, 1GiB of RAM)
incus launch images:ubuntu/22.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB
Create and start a virtual machine with 4 vCPUs and 4GiB of RAM`))
Create and start a virtual machine with 4 vCPUs and 4GiB of RAM
incus launch images:debian/12 v2 --vm -d root,size=50GiB -d root,io.bus=nvme
Create and start a virtual machine, overriding the disk size and bus`))
cmd.Hidden = false

cmd.RunE = c.Run
Expand Down

0 comments on commit 16c3755

Please sign in to comment.