Skip to content

Commit 24d60c7

Browse files
committed
README.md: Update libvirt examples
The first one didn't work because the default Fedora image requires specifying a filesystem. See https://gitlab.com/fedora/bootc/docs/-/merge_requests/141 for improved docs on that. Signed-off-by: Colin Walters <walters@verbum.org>
1 parent 46deadc commit 24d60c7

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,19 @@ The libvirt commands provide comprehensive integration with libvirt infrastructu
5050

5151
```bash
5252
# Basic libvirt VM creation with default settings (2GB RAM, 2 CPUs, 20GB disk)
53-
bcvk libvirt run quay.io/fedora/fedora-bootc:42
53+
bcvk libvirt run quay.io/centos-bootc/centos-bootc:stream10
54+
55+
# Note requirement for --filesystem with the generic Fedora bootc base images
56+
bcvk libvirt run --filesystem btrfs quay.io/fedora/fedora-bootc:43
5457

5558
# Custom VM with specific resources and name
56-
bcvk libvirt run --name my-fedora-vm --memory 4096 --cpus 4 --disk-size 50G quay.io/fedora/fedora-bootc:42
59+
bcvk libvirt run --name example-vm --memory 4096 --cpus 4 --disk-size 50G quay.io/centos-bootc/centos-bootc:stream10
5760

58-
# Run VM with port forwarding and volume mounts
59-
bcvk libvirt run --name web-server --port 8080:80 --volume /host/data:/mnt/data quay.io/centos-bootc/centos-bootc:stream10
61+
# This example forwards a port and bind mounts content from the host
62+
bcvk libvirt run --name web-server --port 8080:80 --volume /host/data:/mnt/data localhost/myimage
6063

61-
# Run VM in background and automatically SSH into it
62-
bcvk libvirt run --detach --ssh --name test-vm quay.io/fedora/fedora-bootc:42
64+
# Bind mount the host container storage for faster updates
65+
bcvk libvirt run --update-from-host --name devvm localhost/myimage
6366
```
6467

6568
#### Managing libvirt VMs

0 commit comments

Comments
 (0)