Backup/Restore KVM with virtio hard drive

jamit

New Member
Mar 10, 2010
3
0
1
Hi,

I've been testing the backup/restore feature of Proxmox and everything is working as expected for a KVM vm (Win2003) with IDE hard drive. I then changed to virtio drivers for both the hard drive and ethernet and it also works wonderfully. However, I can't seem to get the backup/restore to work.

Backup is setup within the GUI and from the logs, I don't see any errors. I used the qmrestore command like I normally would and it seems to restore fine. When I start the vm, it complains about non-bootable hard drive. On the restored vm, if I changed the disk type back to IDE, it still won't boot. I've test restore it to both the local storage and my own user defined lvm storage and same results.

So my question is, has anyone been successful with backup/restore on a KVM with virtio drivers?

Thanks,


Here's the version I am using:
Code:
proxmox:~# pveversion -v
pve-manager: 1.5-8 (pve-manager/1.5/4674)
running kernel: 2.6.32-1-pve
proxmox-ve-2.6.32: 1.5-4
pve-kernel-2.6.32-1-pve: 2.6.32-4
pve-kernel-2.6.18-2-pve: 2.6.18-5
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-10
vncterm: 0.9-2
vzctl: 3.0.23-1pve8
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.11.1-2
ksm-control-daemon: 1.0-3
For the virtio drivers, I used the ISO image from the KVM website, http://www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers
 
post you VM config (see /etc/qemu-server/VMID.conf) - I will try to reproduce this in our lab.
 
Backup/Restore KVM with virtio drivers does work. I reran backup/restore and it works. It seems like I had a bad backup .tar file even though the backup log/email states that it's OK.

I noticed that the backup(snapshot,no compress)/restore process (only tested on Windows XP/2003) of KVM vms with IDE and virtio is not consistent. Sometime the restored backup boots and other time it doesn't. Beside backup log and qmrestore output, is there anywhere I can look to figure out why either the backup or restore process is corrupting the vm disk on restore?

In the meantime, I am testing backup in stop mode and suspend mode to see if there is consistency.
 
Beside backup log and qmrestore output, is there anywhere I can look to figure out why either the backup or restore process is corrupting the vm disk on restore?

no. backup log should show any errors.

In the meantime, I am testing backup in stop mode and suspend mode to see if there is consistency.

yes, please try that (maybe you can find a way to reproduce the bug).