astro / microvm.nix

NixOS MicroVMs
https://astro.github.io/microvm.nix/
MIT License
1.24k stars 93 forks source link

Gain terminal access to a microvm controlled by systemd #224

Closed RooSoft closed 5 months ago

RooSoft commented 5 months ago

Firstly, THANK YOU for that awesome project... I am considering migrating everything to microVMs once I get a solid grasp of how it all works.

Is there any way to gain terminal access to a running microvm controlled by systemd?

Not a sockets expert, but I have noticed that /var/lib/microvms/myVM/control.socket file that's available once the myVM microVM is in function... can it be used to get into the terminal?

Been searching control.socket in this project and I can't find any info about this...

RooSoft commented 5 months ago

Also, is there a forum or chat room where microVM enthousiasts hang out?

astro commented 5 months ago

Hi! Thank you for your kind words.

Is there any way to gain terminal access to a running microvm controlled by systemd?

Not as is but there are a few possibilities:

Not a sockets expert, but I have noticed that /var/lib/microvms/myVM/control.socket file that's available once the myVM microVM is in function... can it be used to get into the terminal?

No, the socket controls the Hypervisor. We use it for clean shutdown.

Also, is there a forum or chat room where microVM enthousiasts hang out?

There's a Matrix room: https://matrix.to/#/#microvm.nix:envs.net

RooSoft commented 5 months ago

Thank you!

See ya in the matrix room...