Unable to create a Template qube using qubes command line tools

I want to create a Template qube using qubes command line tools.

DEFAULT_TEMPLATE="$(qubes-prefs default_template)" 
qvm-create --class "TemplateVM" --template "$DEFAULT_TEMPLATE" -l orange base-fedora

However when I run the above, I get the following error:
app: Error creating VM: TemplateVM cannot be based on template

The following command successfully creates a template qube but it has no applications and no way to install anything in the qube:
qvm-create --class "TemplateVM" -l orange base-fedora

If you want to create a copy of a template, the command to use is qvm-clone. :slightly_smiling_face:

Edit: And you’ll have to change its color once created, with qvm-prefs (if I remember correctly).

1 Like

That makes alot of sense.
Thankyou =)