| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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.
|
|
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.
|