Proxmox migration exit code 255

djahida

Active Member
Mar 24, 2015
44
0
26
Hi
I have a problem when I try to migrate a VM in proxmox Cluster
I have two nodes whith disk quorum and DRBD
I get this error

Jun 08 15:06:32 starting migration of VM 300 to node 'xxxxx' (***.***.***.***)
Jun 08 15:06:32 copying disk images
Jun 08 15:06:32 starting VM 300 on remote node 'SRPP004'
Jun 08 15:06:33 start failed: command '/usr/bin/kvm -id 300 -chardev 'socket,id=qmp,path=/var/run/qemu-server/300.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/300.vnc,x509,password -pidfile /var/run/qemu-server/300.pid -daemonize -name STV001 -smp '1,sockets=1,cores=1,maxcpus=1' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga cirrus -cpu kvm64,+lahf_lm,+x2apic,+sep -m 1024 -k fr -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:a0d95ef9645' -drive 'file=/dev/drbdvg/vm-300-disk-1,if=none,id=drive-ide0,aio=native,cache=none,detect-zeroes=on' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap300i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'rtl8139,mac=16:A6:28:72:DE:2D,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' -rtc 'driftfix=slew,base=localtime' -machine 'type=pc-i440fx-2.1' -incoming tcp:localhost:60000 -S' failed: exit code 1
Jun 08 15:06:33 ERROR: online migrate failure - command '/usr/bin/ssh -o 'BatchMode=yes' root@***.***.***.*** qm start 300 --stateuri tcp --skiplock --migratedfrom ******* --machine pc-i440fx-2.1' failed: exit code 255
Jun 08 15:06:33 aborting phase 2 - cleanup resources
Jun 08 15:06:33 migrate_cancel
Jun 08 15:06:38 ERROR: migration finished with problems (duration 00:00:06)
TASK ERROR: migration problems

Have you any idea about this error?
Thank
 
Last edited:
Hi,
to get more information you can run the command
/usr/bin/kvm -id 300 -chardev 'socket,id=qmp,path=/var/run/qemu-server/300.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/300.vnc,x509,password -pidfile /var/run/qemu-server/300.pid -daemonize -name STV001 -smp '1,sockets=1,cores=1,maxcpus=1' -nodefaults -boot 'menu=on,strict=on,reboot-timeout=1000' -vga cirrus -cpu kvm64,+lahf_lm,+x2apic,+sep -m 1024 -k fr -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -iscsi 'initiator-name=iqn.1993-08.org.debian:01:a0d95ef9645' -drive 'file=/dev/drbdvg/vm-300-disk-1,if=none,id=drive-ide0,aio=native,cache=none,detect-zeroes=on' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap300i0,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown' -device 'rtl8139,mac=16:A6:28:72:DE:2D,netdev=net0,bus=pci.0,addr=0x12,id=net0,booti ndex=300' -rtc 'driftfix=slew,base=localtime' -machine 'type=pc-i440fx-2.1' -incoming tcp:localhost:60000 -S

on the shell.
The problem is the Vm can't start and so you can not migrate.

 
Thanks for the reply
I have this error when I execute the commande on the shell
---->>Could not acquire pidfile: No such file or directory
 
Weird, is your /var/run/qemu-server/ directory gone? (`-pidfile /var/run/qemu-server/300.pid`)
 
I have this result
ls -l /var/run/qemu-server/
total 12
-rw------- 1 root root 5 Jun 8 17:59 300.pid
srwxr-x--- 1 root root 0 Jun 8 17:59 300.qmp
srwxr-x--- 1 root root 0 Jun 8 17:59 300.vnc
 
Check the resources used by your VM versus that of the node. I saw a similar error and the issue was due to the VM requiring more memory than the node had available.
 

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!