Can't boot restored KVM VM

yena

Renowned Member
Nov 18, 2011
385
6
83
Hello,
i can't boot a Centos KVM VM form a vzdump backup done on a pve 3.4-6 to last version:

No error on vzdump log:

---------------------------------------------------------------------------

less vzdump-qemu-103-2017_02_02-06_20_08.log
Feb 02 06:20:08 INFO: Starting Backup of VM 103 (qemu)
Feb 02 06:20:08 INFO: status = stopped
Feb 02 06:20:08 INFO: update VM 103: -lock backup
Feb 02 06:20:08 INFO: backup mode: stop
Feb 02 06:20:08 INFO: ionice priority: 7
Feb 02 06:20:08 INFO: exclude disk 'ide0' (backup=no)
Feb 02 06:20:08 INFO: snapshots found (not included into backup)
Feb 02 06:20:08 INFO: creating archive '/mnt/pve/server2/dump/vzdump-qemu-103-2017_02_02-06_20_08.vma.lzo'
Feb 02 06:20:08 INFO: starting kvm to execute backup task
Feb 02 06:20:09 INFO: started backup task '18261724-e5b3-42b3-8859-14643dbdf145'
Feb 02 06:20:12 INFO: status: 19% (6829506560/34359738368), sparse 19% (6829506560), duration 3, 2276/0 MB/s
Feb 02 06:20:15 INFO: status: 41% (14324793344/34359738368), sparse 41% (14324793344), duration 6, 2498/0 MB/s
Feb 02 06:20:18 INFO: status: 64% (22057320448/34359738368), sparse 64% (22057320448), duration 9, 2577/0 MB/s
Feb 02 06:20:21 INFO: status: 83% (28749660160/34359738368), sparse 83% (28749660160), duration 12, 2230/0 MB/s
Feb 02 06:20:24 INFO: status: 100% (34359738368/34359738368), sparse 100% (34359738368), duration 15, 1870/0 MB/s
Feb 02 06:20:24 INFO: transferred 34359 MB in 15 seconds (2290 MB/s)
Feb 02 06:20:24 INFO: stopping kvm after backup task
Feb 02 06:20:25 INFO: archive file size: 2MB
Feb 02 06:20:25 INFO: Finished Backup of VM 103 (00:00:17)
-----------------------------------------------------------------------------

VM conf:

less /etc/pve/qemu-server/103.conf

balloon: 2048
bootdisk: ide0
cores: 2
ide0: local:103/vm-103-disk-1.qcow2,format=qcow2,cache=writethrough,backup=no,size=42G
ide1: local:103/vm-103-disk-2.qcow2,format=qcow2,cache=writethrough,size=32G
ide2: local:iso/CentOS-7-x86_64-DVD-1503-01.iso,media=cdrom
memory: 4096
name: IMPA03
net0: e1000=12:54:46:1B:22:52,bridge=vmbr1
numa: 0
ostype: other
parent: Before_Sugare_Reinstall
smbios1: uuid=11b535fa-2083-42bb-8122-48fcaaba4de8
sockets: 1

[Before_Sugare_Reinstall]
balloon: 512
bootdisk: ide0
cores: 1
ide0: local:103/vm-103-disk-1.qcow2,format=qcow2,cache=writethrough,backup=no,size=42G
ide2: local:iso/CentOS-7-x86_64-DVD-1503-01.iso,media=cdrom
machine: pc-i440fx-2.2
memory: 1024
name: IMPA03
net0: e1000=12:54:46:1B:22:52,bridge=vmbr1
numa: 0
ostype: other
smbios1: uuid=11b535fa-2083-42bb-8122-48fcaaba4de8
snaptime: 1446122977
sockets: 1
vmstate: local:103/vm-103-state-Before_Sugare_Reinstall.raw
------------------------------------------------------------------------------------------------------------------------------------


Maybe the line:
exclude disk 'ide0' (backup=no) ?
In my opinion the vzdump process seem too fast ...may be it exclude some disk ?

Source proxmox:
pveversion -V
proxmox-ve-2.6.32: 3.4-156 (running kernel: 2.6.32-39-pve)
pve-manager: 3.4-6 (running version: 3.4-6/102d4547)
pve-kernel-2.6.32-39-pve: 2.6.32-156
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.7-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.10-2
pve-cluster: 3.0-17
qemu-server: 3.4-6
pve-firmware: 1.1-4
libpve-common-perl: 3.0-24
libpve-access-control: 3.0-16
libpve-storage-perl: 3.0-33
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-8
vzctl: 4.0-1pve6
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 2.2-10
ksm-control-daemon: 1.1-1
glusterfs-client: 3.5.2-1
-------------------------------------------------------------------------------------------------

Thanks!
 
In my new Proxmox server:
cat /etc/pve/nodes/prx/qemu-server/303.conf
-----------------------------------------------------------------------------------------
balloon: 2048
boot: c
bootdisk: ide1
cores: 2
ide1: local-zfs:vm-303-disk-1,cache=writethrough,size=32G
ide2: local:iso/CentOS-7-x86_64-DVD-1503-01.iso,media=cdrom
memory: 4096
name: IMPA03
net0: e1000=12:54:46:1B:22:52,bridge=vmbr1
numa: 0
ostype: other
smbios1: uuid=11b535fa-2083-42bb-8122-48fcaaba4de8
sockets: 1
-----------------------------------------------------------------------------------------

the file CentOS-7-x86_64-DVD-1503-01.iso is in:
/var/lib/vz/template/iso
root@prx:/var/lib/vz/template/iso# ls -la
total 4139830
drwxr-xr-x 2 root root 3 Feb 2 08:01 .
drwxr-xr-x 5 root root 5 Dec 12 20:33 ..
-rw-r--r-- 1 root root 4310695936 Feb 2 08:02 CentOS-7-x86_64-DVD-1503-01.iso

But he can't find the boot disk !

Thanks
 
No error on the shell:
qm start 303
303 IMPA03 running 4096 32.00 7711

But if i open the console:
No bootable devices ...
 
You exclude the boot disk from the backup and wonder, the boot disk is not in the backup.

If you want to be able to restore, you have to include the boot disk ide0 in the backup.
 
I have used the web interface ( Backup now button ).
Have i to use vzdump from command line with some addition par to include boot disk ?
Thanks
 
I have used the web interface ( Backup now button ).
Have i to use vzdump from command line with some addition par to include boot disk ?
Thanks

In your VM hardware tab, the IDE0 disk is excluded.
 
I have modify the restored conf file:
-----------------------------------------------------------------------------------------------
balloon: 2048
boot: c
bootdisk: ide0
cores: 2
ide0: local-zfs:vm-303-disk-1,cache=writethrough,size=42G
ide1: local-zfs:vm-303-disk-1,cache=writethrough,size=32G
ide2: local:iso/CentOS-7-x86_64-DVD-1503-01.iso,media=cdrom
memory: 4096
name: IMPA03
#net0: e1000=12:54:46:1B:22:52,bridge=vmbr1
numa: 0
ostype: other
smbios1: uuid=11b535fa-2083-42bb-8122-48fcaaba4de8
sockets: 1
-----------------------------------------------------------------------------------------------

But it still fail .. can't find the boot disk.
How can include ide0 using vzdump ?

Thanks!
 
funny idea but changing on the restored config file cannot magically include data.

you need to include the boot disk, and create a NEW backup.
 
Thanks for the funny idea ;-)
But how can i include it ?
hav i to modify something on the source vm conf file ?
The default vzdump can't include it
Thanks!
 
You created a backup without the boot disk.
Therefore, you cannot restore it.

What is your real question?