[SOLVED] live migration checkpointing/dump error: iptables-save exited with 255
hi, I had encounter error in live migration, after some search (solve the problem in line 382 of vzmigrate), I locate that problem is with checkpoint, because live migration will create a dump (i.e. checkpoint) of the running ve, then restore in the destination ve. here is the error: # vzctl chkpnt 2000201 Setting up checkpoint... suspend... dump... Can not dump VE: Invalid argument Error: iptables-save exited with 255 Checkpointing failed also I have read in some post that it is the bug of one previous kernel ( http://git.openvz.org/?p=linux-2.6.18-openvz;a=commit;h=6507 23f83a8685111fb3dee7073454861c446193). my configuration: platform: gentoo, well maintained kernel version: 2.6.18-028stab053-r2 vzctl: 3.0.22 vzquota:3.0.11 it will be thankful if anyone could point me out.
same problem in this one: http://forum.openvz.org/index.php?t=tree&goto=26872& &srch=can+not+dump+ve#msg_26872
Re: checkpointing error: iptables-save exited with 255
I'm wondering if I did not name this thread correct, but that's the only thing I have with dump/checkpointing now. Is that I should post this into the development section? thanks for any advice.
During the checkpointing phase, kernel tries to execute /sbin/iptables-save (or /usr/sbin/iptables-save) to save the iptables rules and stats. During the restore phase, it runs /sbin/iptables-restore. If you do use iptables in your container, make sure these scripts exist and working. If you do not use iptables, make sure these scripts exist and return 0 exit code. The simplest way to do that is ln -sf /bin/true /sbin/iptables-save ln -sf /bin/true /sbin/iptables-restore Hope that helps.
hi kir, thank you very much of the tip, I thought the iptables was with the virtual server, was trying to looking problems in kernel... now the problem is solved, and I'm happy with the live migration. thanks again!