Skip to content

Commit

Permalink
vm/qubesvm: forbid changing VM name
Browse files Browse the repository at this point in the history
We've decided to make VM name immutable. This is especially important
for Admin API, where some parts (especially policy) are sticked to the
VM name.

Now, to rename the VM, one need to clone it under new name (thanks to
LVM, this is very quick action), then remove the old one.

Fixes QubesOS/qubes-issues#2868
  • Loading branch information
marmarek committed Jun 26, 2017
1 parent a6c16d0 commit 3074a40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubes/vm/qubesvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class QubesVM(qubes.vm.mix.net.NetVMMixin, qubes.vm.BaseVM):
doc='''Internal, persistent identificator of particular domain. Note
this is different from Xen domid.''')

name = qubes.property('name', type=str,
name = qubes.property('name', type=str, write_once=True,
clone=False,
doc='User-specified name of the domain.')

Expand Down

0 comments on commit 3074a40

Please sign in to comment.