New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dvm template prevents template VM from being removed #2529

Closed
tasket opened this Issue Dec 21, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@tasket

tasket commented Dec 21, 2016

Qubes OS version (e.g., R3.2):

R3.2

Affected TemplateVMs (e.g., fedora-23, if applicable):

(any)


Expected behavior:

Command to remove template with no serviceVM or appVM dependants should succeed.

Actual behavior:

$ qvm-remove my-template
The following AppVMs use 'my-template' as a template:
my-template-dvm

General notes:

The default template was recently changed from my-template to something else.

Can work around by removing the dvm template, but this should happen automatically.


Related issues:

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 21, 2016

Member

Can work around by removing the dvm template, but this should happen automatically.

I don't think so. You may have customized it somehow and removing it will also destroy your modifications there. It is intended to be done manually - like with other VMs before you remove the template.
In the current implementation, switching *-dvm to other template doesn't make sense, but in Qubes 4.0 it will be also perfectly fine option.

Member

marmarek commented Dec 21, 2016

Can work around by removing the dvm template, but this should happen automatically.

I don't think so. You may have customized it somehow and removing it will also destroy your modifications there. It is intended to be done manually - like with other VMs before you remove the template.
In the current implementation, switching *-dvm to other template doesn't make sense, but in Qubes 4.0 it will be also perfectly fine option.

@marmarek marmarek closed this Dec 21, 2016

@tasket

This comment has been minimized.

Show comment
Hide comment
@tasket

tasket Dec 21, 2016

This use case doesn't seem to be well-examined. There is no documentation I've seen that describes deleting a dvm template in order to remove a normal, non-rpm template. Also, switching the default template should cause the existing dvm template to be deprecated or deleted so a new dvm template can be created.

Granted, a user can do some detective work to discover where the dvm template is hiding and then delete it manually. But there is no reason I can see why this can't be automated. I think what this comes down to is that a change in the default template should be handled as an event.

tasket commented Dec 21, 2016

This use case doesn't seem to be well-examined. There is no documentation I've seen that describes deleting a dvm template in order to remove a normal, non-rpm template. Also, switching the default template should cause the existing dvm template to be deprecated or deleted so a new dvm template can be created.

Granted, a user can do some detective work to discover where the dvm template is hiding and then delete it manually. But there is no reason I can see why this can't be automated. I think what this comes down to is that a change in the default template should be handled as an event.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Dec 21, 2016

Member

Also, switching the default template should cause the existing dvm template to be deprecated or deleted so a new dvm template can be created.

No, you don't need to use default template for Disposable VM.

Member

marmarek commented Dec 21, 2016

Also, switching the default template should cause the existing dvm template to be deprecated or deleted so a new dvm template can be created.

No, you don't need to use default template for Disposable VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment