microvm testing

This commit is contained in:
iofq 2024-01-27 14:56:29 -06:00
parent 441d9785c9
commit 94ebce046b

View file

@ -1,6 +1,8 @@
{ ... }: { { self, ... }: {
microvm.vms = { microvm.vms = {
vm-test = { vm-test = {
flake = self;
updateFlake = "github:iofq/nix";
config = { config = {
microvm.shares = [{ microvm.shares = [{
source = "/nix/store"; source = "/nix/store";
@ -8,6 +10,13 @@
tag = "ro-store"; tag = "ro-store";
proto = "virtiofs"; proto = "virtiofs";
}]; }];
microvm.interfaces = [
{
type = "tap";
id = "vm-test";
mac = "02:00:00:00:00:01";
}
];
system.stateVersion = "23.11"; system.stateVersion = "23.11";
}; };
}; };