Skip to content

How to check vm status? #40

Open
Open

Description

@makorne

Hi!
Thank you for awesome project!

krunvm create docker.io/library/alpine:latest --name alpine_16 --mem 16
microVM created with name: alpine_16

krunvm start alpine_16 /bin/ls -- -l /bin/

thread '<unnamed>' panicked at 'Kernel doesn't fit in RAM', src/arch/src/x86_64/mod.rs:77:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Segmentation fault (core dumped)

krunvm list

alpine_16
 CPUs: 1
 RAM (MiB): 16
 DNS server: 1.1.1.1
 Buildah container: alpine-working-container-3
 Workdir: /root
 Mapped volumes: {}
 Mapped ports: {}

But vm is dead.

How to check if vm crashed?

Activity

  1. slp commented on Mar 20, 2023

    @slp
    Collaborator

    Hi! By design, in krunvm the VM's lifetime is tied to the command executed on it, which is usually a shell and, in your example, /bin/ls. Once the command finishes the VM shuts down too. If you execute a second command, a new VM is instantiated (VM start up usually takes less than 100ms).

    If your example, the VMM is crashing early on because the amount of RAM configured (16 MiB) is so small that the kernel doesn't fit in.

  2. makorne commented on Mar 21, 2023

    @makorne
    Author

    I know. That just easy crash example.
    My real containers start program and works endless.
    While they not crash by some reason. :(
    So I need check this all times and sometimes restart .

    I try to find more stable and less huge by memory variant than standart podman.
    That important because I need thousants of vms.
    But looks like for my case microVM has no advantages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions