cannot migrate kvm vms

peterx

Renowned Member
May 5, 2008
41
1
73
When I migrate a running kvm vm I get the error:
volume 'local:103/vm-103-disk.qcow2' does not exist

When I migrate it not running, the vm will be migrated, but will not start.

openvz containers will be migrated without a problem.

proxmox2:~# pveversion -v
pve-manager: 1.4-10 (pve-manager/1.4/4403)
qemu-server: 1.1-9
pve-kernel: 2.6.24-18
pve-qemu-kvm: 0.11.0-2
pve-firmware: 1
vncterm: 0.9-2
vzctl: 3.0.23-1pve3
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1

Thank you for your help
Peter
 
Hallo Dietmar,
The file exists because the VM works fine. I also managed to restore a backup of it on the other Proxmox server in the cluster, but that VM could also not be migrated.
I had a broken memory on this server and had to reinstall. It all seemed to work, only migrating the kvm vm's was not possible.
Peter
 
When I migrate a running kvm vm I get the error:
volume 'local:103/vm-103-disk.qcow2' does not exist

Online migration for KVM only works with shared disks - so that is expected behavior.

When I migrate it not running, the vm will be migrated, but will not start.

What error do you get when you try to start manually:

# qm start <VMID>
 
I migrated vm 105 from proxmox 2 to proxmox1. Not running. It said that the migration was succesfull.
The vm would not start. Then I tried your command:

proxmox1:~# qm start 105
volume 'local:105/vm-105-disk.qcow2' does not exist
proxmox1:~#

When I migrate it back it will work again.
Peter
 
I migrated vm 105 from proxmox 2 to proxmox1. Not running. It said that the migration was succesfull.
The vm would not start. Then I tried your command:

proxmox1:~# qm start 105
volume 'local:105/vm-105-disk.qcow2' does not exist
proxmox1:~#

When I migrate it back it will work again.
Peter

post your migrate log (copy from the web interface). just to make sure, you run 1.4 on both nodes?
 
Hallo Tom,

On both nodes is 1.4 installed. With the latest updates of yesterday

The log (migration of running vm):
/usr/bin/ssh -t -t -n -o BatchMode=yes 192.168.0.102 /usr/sbin/qmigrate --online 192.168.0.101 105
Nov 20 10:03:46 starting migration of VM 105 to host '192.168.0.101'
Nov 20 10:03:46 copying disk images
Nov 20 10:03:46 starting VM on remote host '192.168.0.101'
volume 'local:105/vm-105-disk.qcow2' does not exist
Nov 20 10:03:46 online migrate failure - command '/usr/bin/ssh -c blowfish -o BatchMode=yes root@192.168.0.101 /usr/sbin/qm --skiplock start 105 --incoming tcp' failed with exit code 2
Nov 20 10:03:46 migration finished with problems (duration 00:00:01)
Connection to 192.168.0.102 closed.
VM 105 migration failed -

After this the vm is kind of migrated, but it will not work.
I can migrate it back and than it works again.
Peter
 
Hallo Tom,

On both nodes is 1.4 installed. With the latest updates of yesterday

The log (migration of running vm):
/usr/bin/ssh -t -t -n -o BatchMode=yes 192.168.0.102 /usr/sbin/qmigrate --online 192.168.0.101 105
Nov 20 10:03:46 starting migration of VM 105 to host '192.168.0.101'
Nov 20 10:03:46 copying disk images
Nov 20 10:03:46 starting VM on remote host '192.168.0.101'
volume 'local:105/vm-105-disk.qcow2' does not exist
Nov 20 10:03:46 online migrate failure - command '/usr/bin/ssh -c blowfish -o BatchMode=yes root@192.168.0.101 /usr/sbin/qm --skiplock start 105 --incoming tcp' failed with exit code 2
Nov 20 10:03:46 migration finished with problems (duration 00:00:01)
Connection to 192.168.0.102 closed.
VM 105 migration failed -

After this the vm is kind of migrated, but it will not work.
I can migrate it back and than it works again.
Peter


volume 'local:105/vm-105-disk.qcow2' does not exist

check the content of this dir: /var/lib/vz/images/105/
 
Again, online migration on local KVM disk is not expected to work anyways - but you should get a proper error message.

Please can you post you VM config (/etc/qemu-server/<VMID>.conf)
 
hello Tom , Hello Dietmar

To Tom:
proxmox2:/var/lib/vz/images/105# ls -l
totaal 3517440
-rw-r--r-- 1 root root 3598340096 nov 20 10:03 vm-105-disk.qcow2

To Dietmar:
/etc/qemu-server/105.conf:

name: joomla
sockets: 1
vlan0: rtl8139=56:A5:B7:8A:97:95
bootdisk: ide0
ide0: vm-105-disk.qcow2
ostype: l26
memory: 512
onboot: 0
description: 192.168.0.38
cores: 1

What do I have to do to make migrating KVM VM's possible?

Peter
 

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!