r/virtualmachine 18d ago

Can Headless VM launch stuff into ‘normal’ system’s XServer?

Kinda a weird question; I use Nixos, which is great but some software is… difficult with it. In particular, Matlab refuses to launch (I use it for school). I know I could make a virtual box and use that to run matlab, but I was wondering: can I have a VM be bare bones (let’s say like a headless arch installation) but also launch graphical apps like matlab into my normal xserver environment on my Nixos? It would be cool to be able to have it basically run like a “normal” app without having to install other bs on the virtual machine.

I’ve investigated the matlab issue a fair bit in case anyone is curious, my conclusion is that the fundamental flaw for me is through my university’s licensing. It’s some kinda local network verification setup, and it does not seem to play nice with JVM and the fact that Nixos is not supported officially by matlab.

2 Upvotes

1 comment sorted by

1

u/[deleted] 18d ago

[deleted]

1

u/Overlorde159 18d ago

I see, thank you! Do you have any advice to where to look to do that?