snippetbashTip
krunvm — Create MicroVMs from OCI images. More information: <https://github.com/containers/krunvm/blob/main/d
Viewed 0 times
microvmscreatecommandimagesfromclikrunvmoci
Problem
How to use the
krunvm command: Create MicroVMs from OCI images. More information: <https://github.com/containers/krunvm/blob/main/docs/krunvm.1.txt>.Solution
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 listChange 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}}"Code Snippets
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 listChange 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}}"Context
tldr-pages: common/krunvm
Revisions (0)
No revisions yet.