Recovering VM after converting it to a Template

dnoriega

New Member
Aug 8, 2024
8
0
1
I have been following some posts, but those were meant for ZFS.

  1. I already changed the configuration file of the VM and set the variable template: 0
  2. Renamed the LVM from base-101-disk-0 to vm-101-disk-0
  3. Now I'm trying to change the attributes from Vri-a-tz-k to Vwi-aotz-- assuming those are the correct attributes taking another working VM as reference.
I'm stuck in the third step.

PS: The reason I'm stuck is because chattr is throwing the following error
Code:
root@someserver:~# chattr -i /dev/vg00/vm-101-disk-0
chattr: Operation not supported while reading flags on /dev/vg00/vm-101-disk-0
 
Last edited:
Restore a backup of the template and make a full clone from the template to a new VM and you will have a normal VM from the template.
What I don't like about this approach is that it changes the name of the VM.

For now I was able to solve it using lvchange

lvchange -p rw /dev/vg00/vm-101-disk-0

That gave me the w in the attribute list, and starting the VM gave me the o. Only thing different now is the k I have no idea what it means, lol.