Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check vm status? #40

Open
makorne opened this issue Mar 18, 2023 · 2 comments
Open

How to check vm status? #40

makorne opened this issue Mar 18, 2023 · 2 comments

Comments

@makorne
Copy link

makorne commented Mar 18, 2023

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?

@slp
Copy link
Collaborator

slp commented Mar 20, 2023

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.

@makorne
Copy link
Author

makorne commented Mar 21, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants