Virtual machine template with EFI disk cannot backup

catmao

Member
Apr 1, 2021
9
2
8
37
It can be backed up before it is converted to a template. After the conversion, there will be "KVM: the device is not writable: permission denied"

Code:
INFO: starting new backup job: vzdump 106 --mailnotification always --storage pbs01 --node pve --mode snapshot --quiet 1 --all 0
INFO: Starting Backup of VM 106 (qemu)
INFO: Backup started at 2021-04-01 18:07:26
INFO: status = running
INFO: VM Name: efi-alpine
INFO: include disk 'scsi0' 'local-lvm-thin:vm-106-disk-0' 4G
INFO: include disk 'efidisk0' 'local-lvm-thin:vm-106-disk-1' 4M
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating Proxmox Backup Server archive 'vm/106/2021-04-01T10:07:26Z'
INFO: started backup task '108b681f-7d2e-4312-ac80-13a18a2c180e'
INFO: resuming VM again
INFO: efidisk0: dirty-bitmap status: created new
INFO: scsi0: dirty-bitmap status: created new
INFO:  42% (1.7 GiB of 4.0 GiB) in  3s, read: 577.3 MiB/s, write: 30.7 MiB/s
INFO:  45% (1.8 GiB of 4.0 GiB) in  6s, read: 49.3 MiB/s, write: 49.3 MiB/s
INFO:  48% (1.9 GiB of 4.0 GiB) in  9s, read: 37.3 MiB/s, write: 37.3 MiB/s
INFO:  50% (2.0 GiB of 4.0 GiB) in 12s, read: 25.3 MiB/s, write: 25.3 MiB/s
INFO:  53% (2.2 GiB of 4.0 GiB) in 15s, read: 45.3 MiB/s, write: 45.3 MiB/s
INFO:  57% (2.3 GiB of 4.0 GiB) in 18s, read: 45.3 MiB/s, write: 45.3 MiB/s
INFO:  61% (2.5 GiB of 4.0 GiB) in 21s, read: 57.3 MiB/s, write: 45.3 MiB/s
INFO: 100% (4.0 GiB of 4.0 GiB) in 24s, read: 528.0 MiB/s, write: 30.7 MiB/s
INFO: backup is sparse: 3.09 GiB (77%) total zero data
INFO: backup was done incrementally, reused 3.09 GiB (77%)
INFO: transferred 4.00 GiB in 24 seconds (170.7 MiB/s)
INFO: Finished Backup of VM 106 (00:00:25)
INFO: Backup finished at 2021-04-01 18:07:51
INFO: Backup job finished successfully
TASK OK

Code:
INFO: starting new backup job: vzdump 106 --mode snapshot --all 0 --quiet 1 --mailnotification always --storage pbs01 --node pve
INFO: Starting Backup of VM 106 (qemu)
INFO: Backup started at 2021-04-01 18:09:09
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: efi-alpine
INFO: include disk 'scsi0' 'local-lvm-thin:base-106-disk-0' 4G
INFO: include disk 'efidisk0' 'local-lvm-thin:base-106-disk-1' 4M
INFO: creating Proxmox Backup Server archive 'vm/106/2021-04-01T10:09:09Z'
INFO: starting kvm to execute backup task
kvm: The device is not writable: Permission denied
ERROR: Backup of VM 106 failed - start failed: QEMU exited with code 1
INFO: Failed at 2021-04-01 18:09:13
INFO: Backup job finished with errors
TASK ERROR: job errors
 
Please post the output of pveversion -v.
 
Code:
root@pve:~#  pveversion -v
proxmox-ve: 6.3-1 (running kernel: 5.4.73-1-pve)
pve-manager: 6.3-2 (running version: 6.3-2/22f57405)
pve-kernel-5.4: 6.3-1
pve-kernel-helper: 6.3-1
pve-kernel-5.4.73-1-pve: 5.4.73-1
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.16-pve1
libproxmox-acme-perl: 1.0.5
libproxmox-backup-qemu0: 1.0.2-1
libpve-access-control: 6.1-3
libpve-apiclient-perl: 3.0-3
libpve-common-perl: 6.2-6
libpve-guest-common-perl: 3.1-3
libpve-http-server-perl: 3.0-6
libpve-storage-perl: 6.3-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.3-1
lxcfs: 4.0.3-pve3
novnc-pve: 1.1.0-1
openvswitch-switch: 2.10.0+2018.08.28+git.8ca7c82b7d+ds1-12+deb10u2
proxmox-backup-client: 1.0.5-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.4-3
pve-cluster: 6.2-1
pve-container: 3.3-1
pve-docs: 6.3-1
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.1-3
pve-ha-manager: 3.1-1
pve-i18n: 2.2-2
pve-qemu-kvm: 5.1.0-7
pve-xtermjs: 4.7.0-3
qemu-server: 6.3-1
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 0.8.5-pve1
root@pve:~#
 
I could not reproduce it here with the latest versions. Please consider updating.
 
After Upgrade from Proxmox 5 to 6 last week here is the same, but only with old VM Templates. They can't backup anymore.

Code:
INFO: Starting Backup of VM 108 (qemu)
INFO: Backup started at 2021-05-14 09:02:27
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: win-xp-template
INFO: include disk 'ide0' 'local-lvm:base-108-disk-0' 50G
INFO: creating Proxmox Backup Server archive 'vm/108/2021-05-14T07:02:27Z'
INFO: starting kvm to execute backup task
kvm: -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=200: The device is not writable: Permission denied
ERROR: Backup of VM 108 failed - start failed: QEMU exited with code 1
INFO: Failed at 2021-05-14 09:02:29
INFO: Backup job finished with errors
TASK ERROR: job errors

Here is the VM-Config:
Code:
boot: dc
bootdisk: ide0
cores: 4
description: Fertiges Windows XP Pro Template (Sysprep)
ide0: local-lvm:base-108-disk-0,size=50G
ide2: none,media=cdrom
machine: pc-i440fx-5.2
memory: 1024
name: win-xp-template
net0: virtio=37:A4:61:62:61:3X,bridge=vmbr0,tag=18
numa: 0
ostype: wxp
smbios1: uuid=28ba2c86-xxxxxx-4e91-b497-xxxxxxxxxxxx
sockets: 1
template: 1

pve-manager/6.4-5/6c7bf5de (running kernel: 5.4.106-1-pve)
 
Thanks for reporting this. I could reproduce it by changing from `scsi` to `ide`.
 
  • Like
Reactions: fireon