summary refs log tree commit diff
path: root/pkgs/os-specific/linux/spectrum/spectrum-vm
Commit message (Collapse)AuthorAge
* spectrumPackages.sys-vms.comp: initAlyssa Ross2021-04-14
| | | | | | | | | | | | | | This removes the default rootfs, and creates a VM called "comp" that runs all the Wayfire stuff the default rootfs did previously. This is in a new namespace called sys-vms, which I have a very vague intention of being a place to put VMs that run system services like a Wayland compositor or hardware drivers. I don't think this will be the final structure, but it's _a_ structure that supports more than one VM, so it's an improvement over what we had before. Message-Id: <20210411115740.29615-13-hi@alyssa.is> Reviewed-by: Cole Helbling <cole.e.helbling@outlook.com>
* spectrumPackages.spectrum-vm: fix without WaylandAlyssa Ross2021-03-16
| | | | | | | | | | The surrounding "set +e"/"set -e" was an earlier attempt to fix this, but I mixed -e up with -u. But as Cole points out, it's nicer to use parameter expansion here anyway. Thanks-to: Cole Helbling <cole.e.helbling@outlook.com> Message-Id: <20210316010910.ryhee36zgtoahdok@eve.qyliss.net> Reviewed-by: Cole Helbling <cole.e.helbling@outlook.com>
* spectrumPackages.spectrum-vm: fix long commandsAlyssa Ross2020-05-12
| | | | | | | | | The "spectrumcmd" kernel parameter, which is used to pass custom commands into the VM, uses base64 to get around the lack of solid kernel command line quoting. By default, base64(1) wraps lines at 76 characters, so any command longer than 76 * 0.75 = 57 characters would try to include a newline in the kernel command line, which doesn't work.
* spectrumPackages.spectrum-vm: custom crosvm optsAlyssa Ross2020-05-11
| | | | | | | | | | This will be especially useful for testing crosvm cargo builds, which only work at the moment with --disable-sandbox. Testing these builds before was extremely annoying, but it can be done relatively easily as follows: cargo build spectrum-vm -C target/debug/crosvm -- --disable-sandbox
* spectrumPackages.spectrum-vm: fix with no waylandAlyssa Ross2020-04-22
| | | | | We can abuse $@ to be a sort of array where we can put a number of values, without losing quoting information or having to escape.
* spectrumPackages: initAlyssa Ross2020-04-22
This is a modular version of what was previously start-vm.nix. It introduces a program, spectrum-vm, that allows for customising the crosvm, kernel, and rootfs paths. And, it can run a custom command inside the VM! I think this is going to be a big improvement over start-vm.nix.