Backup and restore

  • Thread starter Thread starter Deleted member 2433
  • Start date Start date
D

Deleted member 2433

Guest
So after successfully connecting the Windows 2003 machine, I;m now having problems with backup.

I used vzdump to create a backup and I am now attempting to restore, however the restored container will not boot due to the following error:

Windows could not start because the following file is missing or corrupt:
<Windows root>\system32\ntoskrnl.exe
Please re-install a copy of the above

Now normally I'd use the recovery options from the installation disc, but I can't even boot the VM from CD for some reason (even after pressing F12 and selecting CD as boot device in the POST). Also if every time a windows container needs to be restored I have to fix this, it's a not a great solution in the first place.

The thought has occurred though that this is a KVM container not an OpenVZ container, however googling seems to suggest OpenVZ should be fine to back this up as well; can anyone suggest an alternative method?
 
Here is the log from the backup:

Jan 22 15:52:50 INFO: Starting Backup of VM 105 (qemu)
Jan 22 15:52:50 INFO: status = running
Jan 22 15:52:50 INFO: creating lvm snapshot of /dev/mapper/pve-data ('/dev/pve/vzsnap')
Jan 22 15:52:51 INFO: Logical volume "vzsnap" created
Jan 22 15:52:51 INFO: mounting lvm snapshot
Jan 22 15:52:51 INFO: creating archive '/root/vdump_pweb009/vzdump-105.dat' (/mnt/vzsnap/images/105)
Jan 22 15:52:51 INFO: qemu-server.conf
Jan 22 15:52:51 INFO: vm-105-disk.qcow2
Jan 22 16:00:16 INFO: Total bytes written: 4665466880 (4.4GiB, 10MiB/s)
Jan 22 16:00:16 INFO: file size 4.35GB
Jan 22 16:00:18 INFO: Logical volume "vzsnap" successfully removed
Jan 22 16:00:18 INFO: Finished Backup of VM 105 (00:07:28)
 
Quite possibly:

pve-manager: 1.3-1 (pve-manager/1.3/4023)
qemu-server: 1.0-14
pve-kernel: 2.6.24-8
pve-kvm: 86-3
pve-firmware: 1
vncterm: 0.9-2
vzctl: 3.0.23-1pve3
vzdump: 1.1-2
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1

What would be the simplest, least likely to fail way of updating in a live environment?
 
Ok, it appears the back up file were corrupt.

I've just done a fresh image and saving the image file in on the local server and restored it; it has restored fine. With the image I was trying to restore from before, I had SCP it to a Windows file share and copied it back again, I can only assume that the image became corrupted somewhere in the copying process.

The problem I have now is that if the images become corrupted so easily, it's not a great backup solution, unless this was just a one off for some reason.