Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased: `main` branch

* Runner scripts now forward command-line arguments to the hypervisor,
allowing extra VMM options for a single invocation with
`nix run .#my-microvm -- <args>`.

* Shell scripts to setup virtiofsd, interfaces, and PCI devices for
pass-through have moved from systemd units in the host to the `bin/`
subdirectory of MicroVM packages. That means you can actually use
Expand Down
6 changes: 6 additions & 0 deletions doc/src/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ packages.x86_64-linux.my-microvm = self.nixosConfigurations.my-microvm.config.mi
```

You can then run the MicroVM with a simple `nix run .#my-microvm`

## Pass extra hypervisor arguments

Use `nix run .#my-microvm -- <args>` to pass extra arguments to the
hypervisor for a single run. The runner appends them after the configured
hypervisor arguments and any arguments from `microvm.extraArgsScript`.
2 changes: 1 addition & 1 deletion lib/runner.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ let
''
}

exec ${execArg} ${command} ''${runtime_args:-}
exec ${execArg} ${command} ''${runtime_args:-} "$@"
'';
}
// lib.optionalAttrs canShutdown {
Expand Down
Loading