Skip to content

qvm-template install does not catch error when VM fails to start #10184

@ydirson

Description

@ydirson

Qubes OS release

4.2.4

Brief summary

Running qvm-template install fedora-42 fedora-42-xfce, I get a "fedora-42 has failed to start: not enough memory", close a firefox so the second template gets some room, and see the "fedora-42-xfce" successfully starting and shutting down.

The tool seems not to have noticed any problem:

[yann@dom0 ~]$ qvm-template install fedora-42 fedora-42-xfce
Downloading 'qubes-template-fedora-42-0:4.2.0-202506082132'...
qubes-template-fedora-42-0:4.2.0-202506082132: 100%|█████████████████████████████...██▉| 1.89G/1.89G [03:23<00:00, 9.32MB/s]
Downloading 'qubes-template-fedora-42-xfce-0:4.2.0-202506082132'...
qubes-template-fedora-42-xfce-0:4.2.0-202506082132: 100%|█████████████████████████████...██▉| 1.89G/1.90G [04:28<00:00, 7.06MB/s]
Installing template 'fedora-42'...
fedora-42: Importing data
Installing template 'fedora-42-xfce'...
fedora-42-xfce: Importing data
[yann@dom0 ~]$ echo $?
0

Expected behavior

If there is some operation to do in the VM, I expect the tool to report a failure, or at least to give instructions for finalizing the template. Currently it is not obvious whether the template is actually usable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions