Comments (8)
seems libvirt is unable to create the scratch file required during backup due to permission errors. Try passing another path using the --scratchdir option
Check your /var/log/audit.log, maybe SELinux. Havent seen this happen without apparmor so it must either be a configuration or libvirt issue.
from virtnbdbackup.
Check the logfiles in /var/log/libvirt/qemu/ too, the scratch file is created by the qemu process. Maybe your qemu process does not have write access to /var/tmp/.
from virtnbdbackup.
Hi,
I'm still having the same problem :-(
Below are more details about this error:
=> /var/log/syslog:
May 10 11:30:01 tcnvh12 libvirtd[28853]: libvirt version: 7.0.0, package: 3 (Andrea Bolognani [email protected] Fri, 26 Feb 2021 16:46:34 +0100)
May 10 11:30:01 tcnvh12 libvirtd[28853]: hostname: tcnvh12
May 10 11:30:01 tcnvh12 libvirtd[28853]: Domain id=3 name='one-8' uuid=0c214241-042c-4c05-a24c-0d717cd825b9 is tainted: custom-hypervisor-feature
May 10 11:30:01 tcnvh12 systemd[1]: Started Virtual Machine qemu-3-one-8.
May 10 11:30:05 tcnvh12 kernel: [ 6377.737274] kvm [29137]: vcpu0, guest rIP: 0xffffffff8fc6b2b4 disabled perfctr wrmsr: 0xc2 data 0xffff
May 10 11:30:44 tcnvh12 libvirtd[28853]: internal error: unable to execute QEMU "blockdev-add": Could not open '/var/tmp/backup.UWXYN.vda': Permission denied
May 10 11:30:44 tcnvh12 libvirtd[28853]: File '/var/tmp/backup.UWXYN.vda' not accessible: File or directory does not exist
May 10 11:30:44 tcnvh12 libvirtd[28853]: Unable to tear down cgroup access on /var/tmp/backup.UWXYN.vda
=> AppArmor disabled:
# cat /sys/module/apparmor/parameters/enabled
N
More info:
- No SELinux active (is Debian 11)
- /var/tmp with 777
- I've tried use "-S /tmp" or "-S /var/lib/libvirt/images" and result is the same problem
- Versions:
-
- libvirt 7.0.0-3
-
- qemu 5.2
-
- virtnbdbackup 0.59
Any idea where I can look?
from virtnbdbackup.
Does /var/log/kern.log offer any audit related log entries? Has libvirtd been restarted after disabling apparmor? Are there still any rules existant in /etc/apparmor.d/libvirt/?
Which security driver is set in /etc/libvirt/qemu.conf?
Following logline looks strange too:
libvirtd[28853]: **Unable to tear down cgroup access on /var/tmp/backup.UWXYN.vda**
from virtnbdbackup.
Hi @abbbi,
I found what causes the problem: Some modification/configuration done by Opennebula. I tested in Rocky Linux (Centos 8) and had the same problem. Even using virt-manager to create VM, the error is the same.
I will check with Opennebula team about any solution for this problem, and If it works, I'll post the solution here.
from virtnbdbackup.
Hi @abbbi , I again!
I think that found a clue: The scratch file is created with "root" owner and 600 permission; But qemu/libvirt running as a user of Opennebula (oneadmin). Then is generated the error.
I think that to backup work will be necessary that the user that executes Qemu needs permission to access the scratch file, correct?
If running virtnbdbackup as "oneadmin" the scratch file is created as root owner too. Any idea about how to proceed?
from virtnbdbackup.
Hi,
The problem are solved: Set "dynamic_ownership = 1" in /etc/libvirt/qemu.conf
from virtnbdbackup.
Hi,
The problem are solved: Set "dynamic_ownership = 1" in /etc/libvirt/qemu.conf
thanks for the feedback, yes, opennebula alters the qemu configuration.
from virtnbdbackup.
Related Issues (20)
- Feature/PR proposal: Add SSH client to the Dockerfile HOT 1
- Output folder must not exist (during a remote restore) HOT 2
- domain not found, but shows in virsh list HOT 3
- Incremental backup fails with error "ImportError: cannot import name 'sighandle'" after previous successful full backup HOT 1
- Errors in journalctl HOT 2
- Operation not supported: creating checkpoint for incremental backup is not supported yet HOT 4
- Progress show TB of data during backup of ~61GB disk HOT 5
- After first offline backup the second fail with "does not contain full backup" HOT 4
- restore failed with more than one disk - NDB error HOT 8
- Start virtual machines in paused state if offline to allow full/incremental/differential backup HOT 1
- fs freeze / warning domain is not running doesn't make sense with option --start-domain
- IndexError: list index out of range using virtnbdbackup tool HOT 15
- Backup (SW)TPM Device related files
- Local backup being detected as remote, fails HOT 3
- amount of backup data in human readable size (MB/GB/TB) HOT 3
- Fedora 39 - RHEL9 - ModuleNotFoundError: No module named 'nbd' HOT 9
- Plausibility check for backup (amount of data) HOT 1
- Remote Backup Problem HOT 2
- backup with compression enabled fails: unsupported operand type(s) for +: 'int' and 'dict' HOT 4
- Kubevirt/openshift virtualization: howto
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtnbdbackup.