From: Alyssa Ross <alyssa.ross@unikie.com>
To: devel@spectrum-os.org
Cc: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
Subject: [PATCH] Documentation: add ADR for VM Sources
Date: Tue, 29 Nov 2022 09:08:12 +0000 [thread overview]
Message-ID: <20221129090812.974715-1-alyssa.ross@unikie.com> (raw)
Signed-off-by: Alyssa Ross <alyssa.ross@unikie.com>
---
Documentation/decisions/009-vm-sources.adoc | 42 +++++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 Documentation/decisions/009-vm-sources.adoc
diff --git a/Documentation/decisions/009-vm-sources.adoc b/Documentation/decisions/009-vm-sources.adoc
new file mode 100644
index 0000000..457491d
--- /dev/null
+++ b/Documentation/decisions/009-vm-sources.adoc
@@ -0,0 +1,42 @@
+= 009 VM Sources
+:page-parent: Architecture Decision Records
+:page-grand_parent: About Spectrum
+
+// SPDX-FileCopyrightText: 2022 Unikie
+// SPDX-License-Identifier: GFDL-1.3-no-invariants-or-later OR CC-BY-SA-4.0
+
+== Status
+
+Proposed
+
+== Context
+
+It should be possible for Spectrum VMs to come from the root
+filesystem (for built-in VMs), or one or more
+xref:../appendices/user-partition.adoc[user partitions]. One part of
+making this work will be to have the system search multiple sources of
+VM definitions, to produce a single view of what VMs are available.
+
+== Decision
+
+The system will scan /usr/img/builtin, as well as the svc/data
+partition on each user partition, for VM definitions. A single s6-rc
+service directory will contain generated services for VMs from all
+sources, so that tools like vm-start don't have to be aware of where
+VMs come from. (This will continue to be distinct from the s6-rc
+database used for host system services.) When a new source of VMs is
+discovered, an updated database will be generated and atomically
+replace the old one using
+xref:https://www.skarnet.org/software/s6-rc/s6-rc-update.html[s6-rc-update].
+
+Changes to how user partitions will be discovered and mounted, to
+support having multiple user partitions, will be determined later.
+
+== Consequences
+
+Built-in VMs can be moved into the root filesystem, allowing the
+default user partition to be empty. This will make it easier for
+people making custom Spectrum images to add custom VMs without having
+to build Spectrum itself themselves -- they can simply replace the
+default, empty, partition with a custom one they can produce however
+they like.
base-commit: 95fba8ac6c872c2ba5e2ea8be5da9f2eb63374c8
--
2.35.1
reply other threads:[~2022-11-29 9:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221129090812.974715-1-alyssa.ross@unikie.com \
--to=alyssa.ross@unikie.com \
--cc=devel@spectrum-os.org \
--cc=ivan.nikolaenko@unikie.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).