WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] xm save workaround

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] xm save workaround
From: John Croft <john@xxxxxxxxxxxxxxxx>
Date: Sat, 25 Mar 2006 09:04:40 +0000
Delivery-date: Sat, 25 Mar 2006 09:06:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
Hi all,

This is something I posted earlier on Xen-Users. I understand it is a known 
problem so you may be interested in this workaround.

cheers,
John


Hi John-

Thanks a lot, that did the trick.  Have you sent this to the Xen-Devel
list?  If not, I bet they would be interested.

Anyway, thanks again!

-Patrick

On 3/24/06, John Croft <john@xxxxxxxxxxxxxxxx> wrote:

Hi Patrick,

I'm wondering if this is related to the problem I had and posted on the
xen-users list with a work-around. The symptoms are similar in that
xm_save fails but the debug output is slightly different, but that may
be due to environmental differences.

original post follows.
John

Hi all,

Just installed Xen from the base FC5 released on Monday.

It all seems to work great except for "xm save/migrate" which fails with
"Unable to get platform info.: 9" at XendCheckpoint:227.

Playing around with it I found that there is a program called xc_save
which is called from XendCheckpoint.py and passed in a file handle for
the xend session and the target file named on the command line. These
handles seem to be closed when xc_save exec's, so subsequent calls into
Xen by xc_save fail. I got it to work by adding...

   from fcntl import ioctl;
   FIONCLEX = 0x5450

near the top of XendCheckpoint.py

and...

   ioctl (fd, FIONCLEX, 0)
   ioctl (xc.handle(), FIONCLEX, 0)

at the beginning of forkHelper.

I'm presuming that there are people in the world that this program works
for!!! So am I missing a python config item somewhere? Or what am I
doing wrong that I need this incantation ?

thanks
John


Patrick Kaeding wrote:

>Jamie-
>
>I hope you don't mind that I am copying the Xen-Users mailing list on
>this, in the hope others will see it also.
>
>Yes, I am still having this problem.  I believe it is caused by a bug
>somewhere in the Xen code, which breaks the save functionality.  This
>then means the live migration also doesn't work, since that depends on
>save.
>
>I believe the developers are aware of this problem, and are working on
>a solution, but maybe someone else can shed more light on the current
>situation.
>
>Thanks,
>Patrick
>
>On 3/24/06, jamie chapman <jamiechap@xxxxxxxxx> wrote:
>
>
>>Hello Mr Kaeding, how are you.
>>
>>After reading the XenSource mailing list, i at long last came across
>>someone that had the same problem as myself.
>>
>>I am relatively new to the game so plaese excuse me if i seem foolish.
>>
>>I am running 2 Xeon Dual Core, with 1 Gig of RAM. Using SuSE 10.0 and
>>Xen 3.0(8259) installed and seems to work fine, creating, destroying
>>domains. The problem is when i try to save the guest domain using, xm
>>save guestName guest.chk
>>
>>It returns with /usr/lib/xen/bin/xc_save 11 17 1 0 0 0 failed
>>
>>The addition to xend.log after i call xm save is
>>(XendCheckpoint:227)  Couldnt map p2m_frame_list_list (errno14): 14
>>(XendCheckpoint:227)  Save xeit rc=1
>>(XendCheckpoint:227)  Save failed on domain guest (18).
>>
>>
>>Any info from you would be greatly appreciated.
>>
>>Thanks a lot, Jamie..
>>
>>
>>
>
>_______________________________________________
>Xen-users mailing list
>Xen-users@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-users
>
>


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>