Can a backup file in RAW format be started directly by qemu-kvm?

In the Btrfs file system, the image file is raw format. Can this format be started directly with qemu-kvm? If it can, we can use this method for emergency use when the hardware fails.

If it can, it’s perfect.

@uroni @orogor

hi, i am not using images

I think you can. The mount-image functionality in Urbackup creates a loop-device which is then mounted. (I don’t think it’s a good solution, but still)

Yes, you can and it works perfectly. I do this very often as a way to verify image backups are working.

See here: https://urbackup.atlassian.net/wiki/spaces/US/pages/78384925/Assemble+zero-copy+disk+image+on+Linux

very very thanks!

Hello, I read the link file you shared, but I did not succeed. There is no Image_SYSVOL folder in the backup directory. I did not find the urbackuprestoreclient command. Where am I wrong? This question is very important to me. I need to verify that the image file is complete and startable. I hope to get your help. Thank you very much!
@chanceellis

From the article I linked to, the second section is titled “Create a boot sector image”. Immediately below the section title are two sentences. The second sentence illustrates how to restore via command line and provides a link to get the urbackuprestoreclient binary. This is the link https://urbackup.atlassian.net/wiki/spaces/US/pages/2981890/How+to+restore+via+command+line The first section of that document shows you how to get the binary.

Can you provide the output from ls -la on the backup directory? Not sure why the SYSVOL is missing. Are you sure you are backing up the C volume? What setting are you using in the UrBackup interface for “Volumes to Backup”? Do you have ALL_NONUSB there or do you specify the specific volumes?

root@urbackupstor:/backup# ls -la
total 20
drwxr-xr-x 1 urbackup urbackup 148 Apr 25 09:02 .
drwxr-xr-x 25 root root 4096 Apr 24 02:59 …
drwxr-x— 1 urbackup urbackup 68 Apr 25 06:01 clients
drwxr-x— 1 urbackup urbackup 124 Apr 25 05:55 urackupstor
drwxr-x— 1 urbackup urbackup 846 Apr 25 00:56 urbackup
drwxr-x— 1 urbackup urbackup 0 Apr 25 09:02 urbackup_tmp_files
drwxr-x— 1 urbackup urbackup 288 Apr 25 06:01 WIN-007
drwxr-x— 1 urbackup urbackup 22 Apr 22 12:57 WIN-008
drwxr-x— 1 urbackup urbackup 232 Apr 25 05:56 WIN-CLOM0TRN4MG
root@urbackupstor:/backup#

I’m sure I backed up my C volume

@chanceellis Thank you very much!

Which client are you trying to start with kvm? If you could post a ls -la of that /backup/CLIENT directory, that will be helpful.

I am just trying to verify there isn’t a SYSVOL directory within that directory.

Hello, my backup directory is /backup. The above content is the output of my “ls -la” command.

root@urbackupstor:/backup# ls -la
total 20
drwxr-xr-x 1 urbackup urbackup 148 Apr 25 09:02 .
drwxr-xr-x 25 root root 4096 Apr 24 02:59 …
drwxr-x— 1 urbackup urbackup 68 Apr 25 06:01 clients
drwxr-x— 1 urbackup urbackup 124 Apr 25 05:55 urackupstor
drwxr-x— 1 urbackup urbackup 846 Apr 25 00:56 urbackup
drwxr-x— 1 urbackup urbackup 0 Apr 25 09:02 urbackup_tmp_files
drwxr-x— 1 urbackup urbackup 288 Apr 25 06:01 WIN-007
drwxr-x— 1 urbackup urbackup 22 Apr 22 12:57 WIN-008
drwxr-x— 1 urbackup urbackup 232 Apr 25 05:56 WIN-CLOM0TRN4MG
root@urbackupstor:/backup#
I’m sure I backed up my C volume.
The client that i want to boot with kvm is win7.

Yup - the output you provided is the /backup directory.

What I was asking for is one more directory level deeper. For example, the ls -la /backup/WIN-007 output would be helpful.

Thank you for your help!

I have six clients, one of which is WIN7 abnormal, and the output is as follows:

root@urbackupstor:/backup# ls -la WIN-007
total 20
drwxr-x— 1 urbackup urbackup 96 Apr 28 08:49 .
drwxr-xr-x 1 urbackup urbackup 148 Apr 28 08:43 …
drwxr-xr-x 1 urbackup urbackup 652 Apr 27 19:54 180427-1153
drwxr-xr-x 1 urbackup urbackup 334 Apr 27 22:19 180427-2124_Image_C
drwxr-xr-x 1 urbackup urbackup 652 Apr 28 08:49 180428-0847
lrwxrwxrwx 1 urbackup urbackup 27 Apr 28 08:49 current -> /backup/WIN-007/18042


root@urbackupstor:/backup# ls -la WIN-CLOM0TRN4MG/
total 20
drwxr-x— 1 urbackup urbackup 558 Apr 28 08:45 .
drwxr-xr-x 1 urbackup urbackup 148 Apr 28 08:43 …
drwxr-xr-x 1 urbackup urbackup 334 Apr 23 18:47 180423-1040_Image_C
drwxr-xr-x 1 urbackup urbackup 394 Apr 23 18:40 180423-1040_Image_SYSVOL
drwxr-xr-x 1 urbackup urbackup 2508 Apr 23 18:50 180423-1049
drwxr-xr-x 1 urbackup urbackup 2508 Apr 24 19:21 180424-1121
drwxr-xr-x 1 urbackup urbackup 2508 Apr 25 08:56 180425-0055
drwxr-xr-x 1 urbackup urbackup 2508 Apr 25 13:56 180425-0556
drwxr-xr-x 1 urbackup urbackup 334 Apr 25 18:48 180425-1041_Image_C
drwxr-xr-x 1 urbackup urbackup 394 Apr 25 18:41 180425-1041_Image_SYSVOL
drwxr-xr-x 1 urbackup urbackup 2508 Apr 25 18:59 180425-1058
drwxr-xr-x 1 urbackup urbackup 2508 Apr 26 08:45 180426-0045
drwxr-xr-x 1 urbackup urbackup 2508 Apr 26 13:46 180426-0545
drwxr-xr-x 1 urbackup urbackup 2508 Apr 26 18:47 180426-1046
drwxr-xr-x 1 urbackup urbackup 2508 Apr 27 08:24 180427-0024
drwxr-xr-x 1 urbackup urbackup 2508 Apr 27 13:29 180427-0529
drwxr-xr-x 1 urbackup urbackup 2508 Apr 27 18:33 180427-1033
drwxr-xr-x 1 urbackup urbackup 334 Apr 27 18:50 180427-1044_Image_C
drwxr-xr-x 1 urbackup urbackup 394 Apr 27 18:44 180427-1044_Image_SYSVOL
drwxr-xr-x 1 urbackup urbackup 2508 Apr 27 21:11 180427-1311
drwxr-xr-x 1 urbackup urbackup 2508 Apr 28 08:45 180428-0844
lrwxrwxrwx 1 urbackup urbackup 35 Apr 28 08:45 current -> /backup/WIN-CLOM0TRN4MG/180428-0844

=========================================================================
WIN-CLOM0TRN4MG CLIENT IS WIN SERVER2012R2, IT IS WORK WELL