KVM fails to start after restore

wolfsburg18

New Member
Sep 10, 2012
3
0
1
To start the error message
Error: volume 'local:103/vm-103-disk-1.raw' does not exist

Code:
root@proxmox1:/var/lib/vz/backup/restore# vzrestore vzdump-qemu-100-2012_09_07-12_03_47.tar.gz 103
extracting archive '/var/lib/vz/backup/restore/vzdump-qemu-100-2012_09_07-12_03_47.tar.gz'
Total bytes read: 80530647040 (76GiB, 16MiB/s)
container 103 does not exists

While I receive "container 103" error, the container is created and everything seems to restore correctly.
Code:
root@proxmox1:/var/lib/vz/private# ls
100  103
root@proxmox1:/var/lib/vz/private# ls 103
qemu-server.conf  vm-103-disk-1.raw

KVM config
Code:
root@proxmox1:/var/lib/vz/private# cat 103/qemu-server.conf
bootdisk: ide0
cores: 4
ide0: local:103/vm-103-disk-1.raw
ide2: local:iso/ubuntu-10.04.4-server-amd64(1).iso,media=cdrom
lock: backup
memory: 12288
name: school1
net0: rtl8139=26:5E:F1:F1:5B:34,bridge=vmbr0
onboot: 1
ostype: l26
sockets: 2
#vzdump#map:ide0:vm-disk-ide0.raw:80530636800:local:

I did go in and create the 103.conf
Code:
root@proxmox1:/etc/pve/nodes/proxmox181/qemu-server# ls
100.conf  103.conf
root@proxmox1:/etc/pve/nodes/proxmox181/qemu-server# cat 103.conf
bootdisk: ide0
cores: 4
ide0: local:103/vm-103-disk-1.raw
ide2: local:iso/ubuntu-10.04.4-server-amd64(1).iso,media=cdrom
memory: 12288
name: school1
net0: rtl8139=26:5E:F1:F1:5B:34,bridge=vmbr0
onboot: 1
ostype: l26
sockets: 2

PVE Version information

Code:
root@proxmox1:/var/lib/vz/private/103# qm start 103
volume 'local:103/vm-103-disk-1.raw' does not exist
root@proxmox181:/var/lib/vz/private/103# pveversion -v
pve-manager: 2.1-14 (pve-manager/2.1/f32f3f46)
running kernel: 2.6.32-14-pve
proxmox-ve-2.6.32: 2.1-74
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-14-pve: 2.6.32-74
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.92-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.8-1
pve-cluster: 1.0-27
qemu-server: 2.0-49
pve-firmware: 1.0-18
libpve-common-perl: 1.0-30
libpve-access-control: 1.0-24
libpve-storage-perl: 2.0-31
vncterm: 1.0-3
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.1-8
ksm-control-daemon: 1.1-1
 
To start the error message
Error: volume 'local:103/vm-103-disk-1.raw' does not exist

Code:
root@proxmox1:/var/lib/vz/backup/restore# vzrestore vzdump-qemu-100-2012_09_07-12_03_47.tar.gz 103
extracting archive '/var/lib/vz/backup/restore/vzdump-qemu-100-2012_09_07-12_03_47.tar.gz'

you cannot mix tools for OpenVZ Containers and KVM guest.

you have a backup of a KVM guest, therefore you need to restore it with qmrestore. vzrestore is for OpenVZ containers only.
 
I tried qmrestore and got the same error message.

Either way I ended up with a raw file in the VM container under /var/lib/vz/private/zzz

Unless this is wrong I moved the raw file from private to the images folder in VZ under the appropriate vz container. I also then went in and copied the qemu-server.conf to /etc/pve/nodes/proxmox1 and named it to match 103.conf

From there I was able to start the node.

Any reason why qmrestore would not have built the container under images vs the privat
 
do not mix OpenVZ and KVM, these are complete different technologies.

so the questions is what and how do you backup and how do you restore?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!