Non-persistent disk
-
The XCP-ng docs do not seem to address non-persistent disk modes. Is there a recipe for reverting a virtual machine disk to a set state or snapshot on restart?
-
@elsif2 I'm not too sure but I think it's the
on-boot
parameter on the VDI, it can have two values:persist
andreset
.
Maybe setting toreset
would be enough.
I have not tried to use it though.You can set it like this:
xe vdi-param-set uuid=<VDI UUID> on-boot=reset
The VM of which the VDI is connected to needs to be offline.
-
Confirmed, that works. Thanks!