Code Monkey home page Code Monkey logo

nix-on-hyper-v-gen-2-x-elite's Introduction

Nix on Snapdragon Elite X Hyper V

A NixOS derivate that generates a bootable iso for Snapdragon X Elite's Hyper V.

No existing linux .iso I am aware of work properly on Hyper V. A standard NixOS image may boot, but runs very slowly, taking hours to boot the kernel.

I noticed WSL2, which runs on Hyper V is quite fast. So I created an image with the Microsoft WSL 2 Kernel. I tried using Microsoft's kernel config, as well as letting Nix generate the config. Both work.

Generating

I generated the image in an Arm64 VM running on my M2 Pro Apple Silicon, using qemu (via UTM) to run NixOS. I avoided cross compiling by doing this, however cross compiling will probably work.

I am using Nix packages 24.05. If using the Microsfot config, all the BPF and BTF config options need to be disabled to avoid build error.

Download the .nix iso file into a folder. Run

Note, the install boots a working terminal. The system installed by the graphical installer doesn't seem to work, I am not sure why.

nix-shell -p nixos-generators --run "nixos-generate --format iso --configuration ./iso_wsl.nix -o result"

nix-on-hyper-v-gen-2-x-elite's People

Contributors

starside avatar

Stargazers

Wesley Moore avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.