Comments (3)
I switched to root, different errors appeared:
kundeng@bayes-pop:~$ virtnbdbackup
usage: virtnbdbackup [-h] -d DOMAIN [-l {copy,full,inc,diff,auto}] [-t {stream,raw}] [-
[-f SOCKETFILE] [-n] [-z [COMPRESS]] [-w WORKER] [-F FREEZE_MOUNTP
[--password PASSWORD] [-P NBD_PORT] [-I NBD_IP] [--tls] [--tls-cer
virtnbdbackup: error: the following arguments are required: -d/--domain, -o/--output
kundeng@bayes-pop:~$ tmux a
[2024-01-05 23:55:07] INFO root virtnbdbackup - main [main]: Libvirt library version: [8000000]
[2024-01-05 23:55:07] INFO root virtnbdbackup - main [main]: Backup will save [1] attached disks.
[2024-01-05 23:55:07] INFO root virtnbdbackup - main [main]: Concurrent backup processes: [1]
[2024-01-05 23:55:07] INFO root checkpoint - create [main]: Loading checkpoints from: [/backup/win11_default.cpt]
[2024-01-05 23:55:07] INFO root checkpoint - redefine [main]: Loading checkpoint list from: [/backup/checkpoints]
[2024-01-05 23:55:07] INFO root checkpoint - create [main]: Checkpoint handling.
[2024-01-05 23:55:07] INFO root virtnbdbackup - main [main]: Local NBD Endpoint socket: [/var/tmp/virtnbdbackup.1123357]
[2024-01-05 23:55:07] INFO root virtnbdbackup - main [main]: Temporary scratch file target directory: [/var/tmp]
[2024-01-05 23:55:07] INFO root job - start [main]: Starting backup job.
[2024-01-05 23:55:08] INFO fs fs - freeze [main]: Freezed [2] filesystems.
[2024-01-05 23:55:08] INFO fs fs - thaw [main]: Thawed [2] filesystems.
[2024-01-05 23:55:08] ERROR root job - start [main]: Failed to start backup: [internal error: unable to execute QEMU command 'nbd-server-start': Failed to bind socket to /var/tmp/virtnbdbackup.1123357: Permission denied]
root@bayes-pop:~# virtnbdbackup -d win11_default -o /backup -p
[2024-01-05 23:55:32] INFO lib common - printVersion [main]: Version: 1.9.54 Arguments: /usr/bin/virtnbdbackup -d win11_default -o /backup -p
[2024-01-05 23:55:32] INFO root virtnbdbackup - main [main]: Backup level: [copy]
[2024-01-05 23:55:32] INFO root virtnbdbackup - main [main]: Libvirt library version: [8000000]
[2024-01-05 23:55:32] INFO root virtnbdbackup - main [main]: Backup will save [1] attached disks.
[2024-01-05 23:55:32] INFO root virtnbdbackup - main [main]: Concurrent backup processes: [1]
[2024-01-05 23:55:32] INFO root checkpoint - create [main]: Loading checkpoints from: [/backup/win11_default.cpt]
[2024-01-05 23:55:32] INFO root checkpoint - redefine [main]: Loading checkpoint list from: [/backup/checkpoints]
[2024-01-05 23:55:32] INFO root checkpoint - create [main]: Checkpoint handling.
[2024-01-05 23:55:32] INFO root virtnbdbackup - main [main]: Local NBD Endpoint socket: [/var/tmp/virtnbdbackup.1123369]
[2024-01-05 23:55:32] INFO root virtnbdbackup - main [main]: Temporary scratch file target directory: [/var/tmp]
[2024-01-05 23:55:32] INFO root job - start [main]: Starting backup job.
[2024-01-05 23:55:33] INFO fs fs - freeze [main]: Freezed [2] filesystems.
[2024-01-05 23:55:33] INFO fs fs - thaw [main]: Thawed [2] filesystems.
[2024-01-05 23:55:33] ERROR root job - start [main]: Failed to start backup: [internal error: unable to execute QEMU command 'nbd-server-start': Failed to bind socket to /var/tmp/virtnbdbackup.1123369: Permission denied]
from virtnbdbackup.
The VM is created with vagrant under a non-root user. After disabling Apparmor, I'm able to backup as root. I still can't backup as non-root. Should I backup as root or as the regular user? Will this be an issue when I try to restore.
from virtnbdbackup.
If vm is Defined in root user namespace only root System User can backup and see it
i think Vagant elevates to root via sudo if executed as regular User.
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
- 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.