Live migration of VMs finishing with error

a.s.nurulin

New Member
Sep 1, 2020
12
0
1
40
I'm tring to migrate vm through cli and got this error

root@pve01:~# qm migrate 100 pve02 --online --targetstorage raid1 --with-local-disks
2020-08-31 18:49:34 starting migration of VM 100 to node 'pve02' (172.16.17.11)
2020-08-31 18:49:34 starting VM 100 on remote node 'pve02'
2020-08-31 18:49:35 [pve02] storage 'SSD-DIR' is not available on node 'pve02'
2020-08-31 18:49:35 ERROR: online migrate failure - remote command failed with exit code 255
2020-08-31 18:49:35 aborting phase 2 - cleanup resources
2020-08-31 18:49:35 migrate_cancel
2020-08-31 18:49:36 ERROR: migration finished with problems (duration 00:00:02)
migration problems
root@pve01:~#


How to select destenation storage alternetive soursed?
 
Hi,
please post your /etc/pve/storage.cfg and the VM config qm config 100. Can you migrate other machines?
 
root@pve01:~# qm config 100
bootdisk: scsi0
cores: 4
ide2: none,media=cdrom
memory: 8192
name: ivross.ru
net0: virtio=EA:49:87:FA:B0:D3,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: SSD-DIR:100/vm-100-disk-0.raw,size=60G
scsihw: virtio-scsi-pci
smbios1: uuid=a25568a3-bad1-4d37-9cb1-63e28e3ad2e4
sockets: 1
vmgenid: dad18440-6b1d-4e2c-b78e-a722d8ee546f

root@pve01:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content vztmpl,backup,iso

dir: SSD-DIR
path /SSD
content vztmpl,rootdir,snippets,images,iso
nodes pve01
shared 1

cifs: cifs01
path /mnt/pve/cifs01
server 192.168.88.11
share Proxmox_TEMP
content rootdir,vztmpl,iso,images,snippets,backup
maxfiles 1

dir: RAID5-DIR
path /RAID5
content images,backup,snippets,iso,vztmpl,rootdir
maxfiles 1
nodes pve01
shared 1

dir: raid1
path /raid1
content rootdir,iso,vztmpl,images,snippets,backup
maxfiles 1
nodes pve02
shared 1

>Can you migrate other machines?

No. But once new created vm was migrated to other host with web interface. I tried to migrate this vm to source host, but get error from start post.

I stopped understanding anything
 
Last edited:
The shared 1 line does not make sense for storages that are only available on one node, and this is likely the reason PVE becomes confused. Please unset the shared flag for your local storages and try again.
 
  • Like
Reactions: a.s.nurulin

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!