Files
cheatsheet-tldr/tldr/krunvm
2025-12-02 00:21:15 +00:00

30 lines
678 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# krunvm
> Create MicroVMs from OCI images.
> More information: <https://github.com/containers/krunvm/blob/main/docs/krunvm.1.txt>.
- Create MicroVM based on Fedora:
`krunvm create {{docker.io/fedora}} --cpus {{number_of_vcpus}} --mem {{memory_in_megabytes}} --name "{{name}}"`
- Start a specific image:
`krunvm start "{{image_name}}"`
- List images:
`krunvm list`
- Change a specific image:
`krunvm changevm --cpus {{number_of_vcpus}} --mem {{memory_in_megabytes}} --name "{{new_vm_name}}" "{{current_vm_name}}"`
- Delete a specific image:
`krunvm delete "{{image_name}}"`