!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

333 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
16 Oct 2024
@shafael170:matrix.org@shafael170:matrix.org joined the room.05:37:30
17 Oct 2024
@ajhalili2006:envs.net~ajhalili2006 [tildeverse / backup of @ajhalili2006:andreijiroh.dev] changed their display name from ~ajhalili2006 [ recaptime.dev / sr.ht / tildeverse ] to ~ajhalili2006 [tildeverse / backup of @ajhalili2006:andreijiroh.dev].03:36:22
19 Oct 2024
@mwoodpatrickmx:matrix.orgmwoodpatrickmxI'm running NixOS on WSL and experimenting running VM's under my NixOS. I have virt-manager installed and am able to create some basic VM's running. I would appreciate any pointers to docs or info on best practices when running virt-manager & libvirtd on NixOS under WSL-2. Especially any issues related to doing this under WSL-2.13:14:28
@k900:0upti.meK900Don't, generally13:17:56
@k900:0upti.meK900Nested virt is pretty slow even on a good day13:18:03
@k900:0upti.meK900And you have Hyper-V right there13:18:07
@mwoodpatrickmx:matrix.orgmwoodpatrickmx

And you have Hyper-V right there

Can you elaborate

13:21:51
@nzbr:nzbr.denzbr (they/it) From my experience: It does work (used it to run https://github.com/foxlet/macOS-Simple-KVM) but it frequently crashed Hyper-V for me. At least that's what I assume happened - The screen just went black and it rebooted, not even a BSOD
That was on an insider build through, so it might be less crash-prone now
13:21:59
@k900:0upti.meK900
In reply to@mwoodpatrickmx:matrix.org

And you have Hyper-V right there

Can you elaborate

Like, WSL is just a Hyper-V VM
13:23:21
@k900:0upti.meK900You can enable Hyper-V proper13:23:25
@nzbr:nzbr.denzbr (they/it)Hyper-V itself isn't that great of a experience if you want to do anything with a GUI IMHO. But VMware workstation is free for personal use now and works pretty great even with Hyper-V enabled if you don't mind using a proprietary solution13:23:25
@k900:0upti.meK900 And run WSL and "big" Hyper-V VMs 13:23:32
@mwoodpatrickmx:matrix.orgmwoodpatrickmxI would prefer to use an Open source solution13:25:17
@k900:0upti.meK900You're on Windows13:26:04
@mwoodpatrickmx:matrix.orgmwoodpatrickmxI'm running on my Windows 11 laptop (64GB)13:26:15
@k900:0upti.meK900Your "open source solution" is just Hyper-V through an abstraction layer13:26:19
@k900:0upti.meK900So skip the abstraction layer and just run Hyper-V13:26:28
@mwoodpatrickmx:matrix.orgmwoodpatrickmxAny pointers to docs on doing this would be most appreciated13:27:33
@k900:0upti.meK900Doing what exactly?13:27:57
@mwoodpatrickmx:matrix.orgmwoodpatrickmxEnabling Hyper-V, best abstraction layers on top of KVM.13:30:21
@k900:0upti.meK900There are no abstraction layers on top of KVM13:31:45
@k900:0upti.meK900Your KVM is an abstraction on top of Hyper-V13:31:52
@k900:0upti.meK900Because WSL is a Hyper-V VM13:31:56
@k900:0upti.meK900https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/about/13:32:10
@mwoodpatrickmx:matrix.orgmwoodpatrickmxMany thanks for the pointer, its been a while since I read that article. Any pointers to docs on running NixOS under Hyper-V?13:53:06
@k900:0upti.meK900I'm confused by what you're trying to do13:53:32
@k900:0upti.meK900WSL still works with Hyper-V13:53:38
@k900:0upti.meK900You probably want to run NixOS on WSL13:53:48
@k900:0upti.meK900And then run your other VMs, whatever those are, on "pure" Hyper-V13:54:00
@k900:0upti.meK900Instead of nesting them inside NixOS13:54:05

Show newer messages


Back to Room ListRoom Version: 9