|
1 | 1 | % podman-bootc-run 1 |
2 | 2 |
|
3 | 3 | ## NAME |
| 4 | +podman-bootc-run - Run a bootc container as a VM |
4 | 5 |
|
5 | 6 | ## SYNOPSIS |
| 7 | +**podman-bootc run** [*options*] *image* | *id* |
6 | 8 |
|
7 | 9 | ## DESCRIPTION |
| 10 | +**podman-bootc run** creates a new virtual machine from a bootc container image or starts an existing one. |
| 11 | +It then creates an SSH connection to the VM using injected credentials (see *--background* to run in the background). |
| 12 | + |
| 13 | +The podman machine must be running to use this command. |
| 14 | + |
| 15 | +## OPTIONS |
| 16 | + |
| 17 | +#### **--background**, **-B** |
| 18 | +Do not spawn SSH, run in background. |
| 19 | + |
| 20 | +#### **--cloudinit**=**string** |
| 21 | +--cloud-init <cloud-init data directory> |
| 22 | + |
| 23 | +#### **--disk-size**=**string** |
| 24 | +Allocate a disk image of this size in bytes; optionally accepts M, G, T suffixes |
| 25 | + |
| 26 | +#### **--filesystem**=**string** |
| 27 | +Override the root filesystem, e.g. xfs, btrfs, ext4. |
| 28 | + |
| 29 | +#### **--quiet** |
| 30 | +Suppress output from bootc disk creation and VM boot console |
| 31 | + |
| 32 | +#### **--rm** |
| 33 | +Remove the VM and it's disk image when the SSH connection exits. Cannot be used with *--background* |
| 34 | + |
| 35 | +#### **--root-size-max**=**string** |
| 36 | +Maximum size of root filesystem in bytes; optionally accepts M, G, T suffixes |
| 37 | + |
| 38 | +#### **--user**, **-u**=**root** | *user name* |
| 39 | +User name of injected user, default: root |
| 40 | + |
| 41 | +## EXAMPLES |
| 42 | +Create a virtual machine based on the latest bootable image from Fedora using XFS as the root filesystem. |
| 43 | +``` |
| 44 | +$ podman-bootc run --filesystem=xfs quay.io/fedora/fedora-bootc:latest |
| 45 | +``` |
| 46 | + |
| 47 | +Start a previously created VM, using *podman-bootc list* to find its ID. |
| 48 | +``` |
| 49 | +$ podman-bootc list |
| 50 | +ID REPO SIZE CREATED RUNNING SSH PORT |
| 51 | +d0300f628e13 quay.io/fedora/fedora-bootc:latest 10.7GB 4 minutes ago false 34173 |
| 52 | +$ podman-bootc run d0300f628e13 |
| 53 | +``` |
8 | 54 |
|
9 | 55 | ## SEE ALSO |
10 | 56 |
|
|
0 commit comments