Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup support for floppy / cdrom images. #61

Open
madmax01 opened this issue Jul 12, 2022 · 3 comments
Open

Backup support for floppy / cdrom images. #61

madmax01 opened this issue Jul 12, 2022 · 3 comments
Labels
enhancement New feature or request opennebula support Usage/support questions.

Comments

@madmax01
Copy link

Hello,

for opennebula VMs they use an hda which is raw for accessing contextualization File

is there an way virtnbdbackup can handle all "Images" based on an VM? raw + qcow2

if restoring the disk.0,......then disk.1 still missing to get the VM operativ

thx

Max

@madmax01 madmax01 changed the title Backup support for raw Backup support for raw File Format Jul 12, 2022
@abbbi
Copy link
Owner

abbbi commented Jul 13, 2022

see README: https://github.com/abbbi/virtnbdbackup#supported-disk-formats--raw-disks

virtnbdrestore has --raw option, too.

@abbbi abbbi closed this as completed Jul 13, 2022
@abbbi abbbi added the support Usage/support questions. label Jul 13, 2022
@madmax01
Copy link
Author

Hello,

i sure tried this out.

virtnbdbackup -d test-43 -l full -r -z -o /tmp/test/

but hda is getting skipped

"getDomainDisks [MainThread]: Skipping attached CDROM / Floppy: [hda]"

works
qemu-img info disk.0
image: disk.0
file format: qcow2

skipped
qemu-img info disk.1
image: disk.1
file format: raw
virtual size: 364 KiB (372736 bytes)
disk size: 364 KiB

@abbbi
Copy link
Owner

abbbi commented Jul 13, 2022

"getDomainDisks [MainThread]: Skipping attached CDROM / Floppy: [hda]"
skipped qemu-img info disk.1 image: disk.1 file format: raw virtual size: 364 KiB (372736 bytes) disk size: 364 KiB

yes, because this is a type floppy or CDROM image, which virtnbdbackup does skip by default.
I understand this might be an issue on opennebula where there is cloud-init related stuff on the cdrom image, but
currently there is no option to forcefully include cdrom or floppy type images in the backup too.

Option would have to be introduced probably --include-optical and floppy / cdrom images would have to be copied to the target folder then too (like nvram/kernel images). But what happens if the device is an actual passed through cdrom device?

Pull requests welcome.

@abbbi abbbi reopened this Jul 13, 2022
@abbbi abbbi changed the title Backup support for raw File Format Backup support for floppy / cdrom images. Jul 13, 2022
@abbbi abbbi added enhancement New feature or request opennebula labels Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request opennebula support Usage/support questions.
Projects
None yet
Development

No branches or pull requests

2 participants