-
Notifications
You must be signed in to change notification settings - Fork 50
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
Running on NixOS #95
Comments
Link to the flakes https://github.com/zyklotomic/virtme-ng-flake.nix I enter a nix-shell to build using
|
@zyklotomic thanks for looking at this. I have zero experience with NixOS.. but I'll take a look as soon as I can find some time! |
I just took a look at it and it seems like there are problems with the My nix package for virtme-ng.{
fetchFromGitHub,
cargo,
rustc,
lib,
python3Packages,
rustPlatform,
bash,
}:
python3Packages.buildPythonApplication rec {
pname = "virtme-ng";
version = "1.31";
src = fetchFromGitHub {
owner = "arighi";
repo = "virtme-ng";
rev = "v${version}";
hash = "sha256-A2zdwvh9ze2fV3tDswHg9FYVkl5VRs5Tl789OJz1qzY=";
fetchSubmodules = true;
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
python3Packages.argcomplete
rustc
cargo
];
propagatedBuildInputs = [
bash # interpreter for virtme scripts
python3Packages.argcomplete
python3Packages.requests
python3Packages.setuptools
];
BUILD_VIRTME_NG_INIT = 1;
cargoRoot = "virtme_ng_init";
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sourceRoot = "source/${cargoRoot}";
hash = "sha256-Rmxe34j1JBxH0+RUjgjTbpvv4QtysQmcALbcApkt7L4=";
};
postPatch = ''
patchShebangs --host virtme/guest
'';
meta = {
description = "Quickly build and run kernels inside a virtualized snapshot of your live system";
homepage = "https://github.com/arighi/virtme-ng";
mainProgram = "vng";
license = lib.licenses.gpl2Only;
};
}
Running vng --verbose
Running vng --verbose --no-virtme-ng-init
The main problem seem to be related to my The problem with I didn't get to check the cause for the You could use |
Yes, I forgot to update! I realized the issues early on. Thanks for looking into this too. I was able to hack something usable with a similar idea together here: https://github.com/zyklotomic/kernel-flake. Still a WIP though. I essentially mount my nix tree with virtiofsd so that I can run my regular host's utilites too. |
Wondering if anyone was able to get this to run on NixOS. I wrote a flake and believe I got
vng
the binary to build and install properly. Furthermore, I was able to build the kernel viavng -b
. However, I was unable to get the vm to actually run.Will share my flake soon.
The text was updated successfully, but these errors were encountered: