LibVirtKvm-scripts icon indicating copy to clipboard operation
LibVirtKvm-scripts copied to clipboard

fails if a physical drive is attached to VM

Open michaelHH1 opened this issue 6 years ago • 2 comments

Hi, I've a physical drive attached to my VM. The script fails with "'error: unsupported configuration: source for disk 'vde' is not a regular file; refusing to generate external snapshot name'". Could attached physical drives be excluded from the backup?

BR Michael

michaelHH1 avatar Jun 30 '18 08:06 michaelHH1

Possibly. What do you get with the command

virsh domblklist XXXX --details

where XXXX is the VM domain name or id ?

AJRepo avatar Jun 30 '18 09:06 AJRepo

Type Device Target Source

file disk vda /media/backup/vm/homeserver/bimg-20180630-101135 block disk vde /dev/disk/by-uuid/B8D0061FD005E48A

As intermediate solution I've modified the script to: command_output=$($VIRSH -q snapshot-create-as "$domain_name"
"$SNAPSHOT_PREFIX-$timestamp" --no-metadata --disk-only --diskspec vde,snapshot=no --atomic \

which is for sure to static as final solution

michaelHH1 avatar Jun 30 '18 15:06 michaelHH1