Skip to content

If a VM was created by another VM that no longer exists, using it as a disposable VM template fails. #8618

Description

@DemiMarie

How to file a helpful issue

Qubes OS release

R4.2

Brief summary

If a VM (let’s call it “X”) is created by another VM, but the creating VM no longer exists, trying to create a disposable VM based on X fails with a KeyError in qubesd.

Steps to reproduce

  1. Use the Admin API to create a VM that has template_for_dispvms set to True. The simplest way to do that is to restore a backup using a disposable VM.
  2. Delete the creating VM.
  3. Try to use the created VM as a disposable VM template.

Expected behavior

It works.

Actual behavior

qubesd fails with a KeyError. Deleting the created-by-disp-backup-restore tag prevents the KeyError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: coreThis issue pertains to a Qubes core component.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.affects-4.2This issue affects Qubes OS 4.2.affects-4.3This issue affects Qubes OS 4.3.needs diagnosisRequires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions