|
| 1 | +% podman-bootc-run 1 |
| 2 | + |
| 3 | +## NAME |
| 4 | +podman-bootc-run - Run a bootc container as a VM |
| 5 | + |
| 6 | +## SYNOPSIS |
| 7 | +**podman-bootc run** [*options*] *image* | *id* |
| 8 | + |
| 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 | +#### **--help**, **-h** |
| 30 | +Help for run |
| 31 | + |
| 32 | +#### **--log-level**=*level* |
| 33 | +Log messages at and above specified level: __debug__, __info__, __warn__, __error__, __fatal__ or __panic__ (default: _warn_) |
| 34 | + |
| 35 | +#### **--quiet** |
| 36 | +Suppress output from bootc disk creation and VM boot console |
| 37 | + |
| 38 | +#### **--rm** |
| 39 | +Remove the VM and it's disk image when the SSH connection exits. Cannot be used with *--background* |
| 40 | + |
| 41 | +#### **--root-size-max**=**string** |
| 42 | +Maximum size of root filesystem in bytes; optionally accepts M, G, T suffixes |
| 43 | + |
| 44 | +#### **--user**, **-u**=**root** | *user name* |
| 45 | +User name of injected user, default: root |
| 46 | + |
| 47 | +## EXAMPLES |
| 48 | +Create a virtual machine based on the latest bootable image from Fedora using XFS as the root filesystem. |
| 49 | +``` |
| 50 | +$ podman-bootc run --filesystem=xfs quay.io/fedora/fedora-bootc:latest |
| 51 | +``` |
| 52 | + |
| 53 | +Start a previously created VM, using *podman-bootc list* to find its ID. |
| 54 | +``` |
| 55 | +$ podman-bootc list |
| 56 | +ID REPO SIZE CREATED RUNNING SSH PORT |
| 57 | +d0300f628e13 quay.io/fedora/fedora-bootc:latest 10.7GB 4 minutes ago false 34173 |
| 58 | +$ podman-bootc run d0300f628e13 |
| 59 | +``` |
| 60 | + |
| 61 | +## SEE ALSO |
| 62 | + |
| 63 | +**[podman-bootc(1)](podman-bootc.1.md)** |
| 64 | + |
| 65 | +## HISTORY |
| 66 | +Dec, 2024, Originally compiled by Martin Skøtt <[email protected]> |
0 commit comments