Virtual Machine Won't Start: The device is not writable: Permission denied

lclogan5

New Member
May 20, 2022
2
0
1
Hello,

I have been looking through the forums for a solution to this but don't see one that works for me. I had an ubuntu VM and tried "Convert To Template". This command failed, and after this I tried using the VM again and now I get this error:

Code:
kvm: -device scsi-hd,bus=scsihw0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,rotation_rate=1: The device is not writable: Permission denied
TASK ERROR: start failed: QEMU exited with code 1

I cannot figure out what is wrong as all of the permissions on the file systems are working fine. I tried making a new VM and transferring ownership of the drive but that didn't work either. Not sure where to go from here. I am stuck and would love to get the data back from that drive if possible so I can start up a new VM, it isn't the end of the world if I can't but it would be easier.

Any help is appreciated, thanks!
 
I had an ubuntu VM and tried "Convert To Template". This command failed, and after this I tried using the VM again and now I get this error:
what exactly failed with the conversion?

what is the vm config? (qm config ID) ?

during conversion to a template we try to make the disk files 'immutable' (how depends on the storage), so it's expected that after that it is not writable
e.g. for files we set the 'immutable' attribute, that can be unset with 'chattr -i <file>'
 
  • Like
Reactions: DataCollector
what exactly failed with the conversion?

what is the vm config? (qm config ID) ?

during conversion to a template we try to make the disk files 'immutable' (how depends on the storage), so it's expected that after that it is not writable
e.g. for files we set the 'immutable' attribute, that can be unset with 'chattr -i <file>'
Hi thanks for the reply! Unfortunately, seems in testing something as a fix I accidentally deleted the old VM's boot drive. So seems I will be unable to recover anyway. I appreciate the help though. And good to know on that immutable attribute. I will use that if I make this error in the future. Thanks!