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

Minimal image / configuration? #120

Closed
MrFoxPro opened this issue Jul 31, 2023 · 6 comments
Closed

Minimal image / configuration? #120

MrFoxPro opened this issue Jul 31, 2023 · 6 comments

Comments

@MrFoxPro
Copy link
Contributor

I noticed that by default there are some dependencies like Xlibs, pulseaudio that are improted in VM. Is it possible to avoid it? Is there any recommended minimal configuration/preset?

@astro
Copy link
Owner

astro commented Aug 1, 2023

I am constantly wondering how much lib.mkDefault we should put into our module. While most people use microvm.nix for server usage, there had been a request for the cloud-hypervisor graphics feature before (#83).

@phaer
Copy link
Contributor

phaer commented Aug 26, 2023

Same question works for the host side; It's currently pulling in things like gstreamer, with all its dependencies, bluez, ffmpeg, sox, etc into my hosts closure even though that one exclusively runs non-graphical hosts.

Ideally we could have a "headless" variant toggled via config option or so? No big deal if not, it justs worsens eval-time as well as transfer times of my system closure

@astro
Copy link
Owner

astro commented Aug 28, 2023

@phaer Which hypervisor has these dependencies? Probably qemu?

We could override qemu with gtkSupport = false but that would mean you can't download it from cache.nixos.org.

@astro
Copy link
Owner

astro commented Sep 25, 2023

@MrFoxPro Did you know NixOS option environment.noXlibs?

@phaer Either use a hypervisor without a graphical frontend, or override qemu with pkgs.qemu_test which seems to work but doesn't look like it's absolutely 100% future-proof.

@astro
Copy link
Owner

astro commented Sep 25, 2023

I have retained these suggestion in the faq. 2f15c1a

@astro astro closed this as completed Sep 25, 2023
@astro
Copy link
Owner

astro commented Oct 2, 2023

Please take note of the new microvm.optimize.enable setting that is enabled by default: #146

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

3 participants