This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:virtmanagerhell [2023/01/15 17:37] – oemb1905 | computing:virtmanagerhell [2026/03/14 00:38] (current) – oemb1905 | ||
|---|---|---|---|
| Line 124: | Line 124: | ||
| dd if=/ | dd if=/ | ||
| | | ||
| - | To create a backup volume inside a guest. First, | + | To create a backup volume inside a guest you create the volume, attach it, and then shell into the guest and format, mount, and create an fstab entry. First, |
| + | |||
| + | cd / | ||
| + | qemu-img create -f qcow2 vm1-backup.qcow2 32G | ||
| + | | ||
| + | --source / | ||
| + | --target vdb \ | ||
| + | --persistent | ||
| + | |||
| + | Then, on the guestOS: | ||
| + | |||
| mkdir /mnt/backup | mkdir /mnt/backup | ||
| mkfs.ext4 /dev/vdb | mkfs.ext4 /dev/vdb | ||
| Line 211: | Line 220: | ||
| kpartx -d debian10.img | kpartx -d debian10.img | ||
| + | | ||
| + | User and group perms: | ||
| + | |||
| + | adduser libvirt-qemu kvm | ||
| + | adduser cockpit-ws kvm | ||
| + | newgrp kvm | ||
| - | --- //[[jonathan@haacksnetworking.org|oemb1905]] | + | --- //[[alerts@haacksnetworking.org|oemb1905]] |