From: Demi Marie Obenour <demiobenour@gmail.com>
To: Alyssa Ross <hi@alyssa.is>
Cc: Spectrum OS Development <devel@spectrum-os.org>
Subject: Re: Networking test runs run-vmm twice with the same VM ID
Date: Thu, 16 Jul 2026 15:01:02 -0400 [thread overview]
Message-ID: <cbb5b32f-903c-4afe-a077-8b16eb0b35bf@gmail.com> (raw)
In-Reply-To: <87h5lze3s1.fsf@alyssa.is>
[-- Attachment #1.1: Type: text/plain, Size: 1572 bytes --]
On 7/16/26 04:29, Alyssa Ross wrote:
> Demi Marie Obenour <demiobenour@gmail.com> writes:
>
>> The networking test runs run-vmm twice with the same VM ID.
>> If it waits for the previous cgroup to be empty, the second
>> call waits forever.
>>
>> Is this expected? I would expect that run-vmm is only called
>> once.
>
> Assuming you mean run twice in sequence, rather than run twice at the
> same time, then yes, it is expected.
>
> The way it works at the moment is that imported VMs have a VM ID
> assigned when they're imported, and they can then be started any number
> of times. When the VM shuts down, the VMM exits, so if the VM is
> started again after that, run-vmm will be run again with the same VM ID.
> If this were not the case, VM IDs could not be assigned at import time,
> and stay the same between successive boots of the same VM.
>
> If your cgroup is not being emptied as expected, that is a bug,
> regardless of whether it ends up being used again, because there
> shouldn't be lingering processes or cgroups hanging around forever.
> It sounds like we should have a test that confirms that this doesn't
> happen, if it's hard to get right.
>
> The networking test does do something slightly unusual, which is that it
> restarts the VMM with s6-svc -Wr -r, rather than e.g. via the Cloud
> Hypervisor API. I would expect that this runs the finish script, but
> might be worth confirming.
What should happen if run-vmm is run more than once for the same VM?
--
Sincerely,
Demi Marie Obenour (she/her/hers)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-07-16 19:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 23:36 Networking test runs run-vmm twice with the same VM ID Demi Marie Obenour
2026-07-16 8:29 ` Alyssa Ross
2026-07-16 19:01 ` Demi Marie Obenour [this message]
2026-07-21 16:00 ` Alyssa Ross
2026-07-16 20:14 ` Demi Marie Obenour
2026-07-16 21:31 ` Demi Marie Obenour
2026-07-21 16:03 ` Alyssa Ross
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=cbb5b32f-903c-4afe-a077-8b16eb0b35bf@gmail.com \
--to=demiobenour@gmail.com \
--cc=devel@spectrum-os.org \
--cc=hi@alyssa.is \
/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/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
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).