[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Xen Live Migration - Cloning error



Dear all,

I am trying to modify a Xen Live migration procedure to a live cloning
procedure by modifying 3 Xen python files under the path
"/usr/lib/xen-4.1/lib/python/xen/ xm , xend " (Xen 4.1.2 version) :
migrate.py, XendDomain.py, XendCheckpoint.py but I am getting the
following errors on " /var/logs/xen/xend.log " :

=============================================================================

[2015-12-17 12:56:12 2263] INFO (XendDomain:1225) Domain xen_guestvm (1)
unpaused.
[2015-12-17 13:01:12 2263] DEBUG (XendCheckpoint:88) ---- Modifying the
clone config--------
[2015-12-17 13:01:12 2263] DEBUG (XendCheckpoint:93) ---- Creating the
storage snapshot xen_guestvm-snap of size 600M
[2015-12-17 13:01:15 2263] ERROR (XendCheckpoint:55) read_exact: EOF
trying to read 4 (buf='')
[2015-12-17 13:01:15 2263] ERROR (xmlrpclib2:181) Internal error
handling xend.domain.migrate
Traceback (most recent call last):
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/util/xmlrpclib2.py", line
134, in _marshaled_dispatch
    response = self._dispatch(method, params)
  File "/usr/lib/python2.7/SimpleXMLRPCServer.py", line 420, in _dispatch
    return func(*params)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomain.py", line
1390, in domain_migrate
    self._domain_migrate(dominfo, dst, live, clone, port, node)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomain.py", line
1493, in _domain_migrate
    dsterr = sock.recv(1024)
timeout: timed out
[2015-12-17 13:01:15 2263] ERROR (XendDomain:1194) Restore failed
Traceback (most recent call last):
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomain.py", line
1178, in domain_restore_fd
    dominfo = XendCheckpoint.restore(self, fd, paused=paused,
relocating=relocating)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendCheckpoint.py",
line 283, in restore
    "not a valid guest state file: config size read")
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendCheckpoint.py",
line 56, in read_exact
    raise XendError(errmsg)
XendError: not a valid guest state file: config size read

=============================================================================

-XendDomain.py line 1178 contains the following modifications:
dominfo = XendCheckpoint.restore(self, fd, paused=paused,
relocating=relocating)

-XendDomain.py line 1390 contains the following modifications:
 # added if-statement with parameter for cloning
                if clone:
                    self._domain_migrate(dominfo, dst, live, clone,
port, node)

-XendDomain.py line 1492,3,4 contains the following modifications:
        sock.settimeout(3.0)
        dsterr = sock.recv(1024)
        sock.settimeout(None)

-XendCheckpoint.py line 275-283 contains the following modifications:

signature = read_exact(fd, len(SIGNATURE),
        "not a valid guest state file: signature read")
    # we modified the cloned VM's config
    #if signature != SIGNATURE:
    #    raise XendError("not a valid guest state file: found '%s'" %
    #                    signature)

    l = read_exact(fd, sizeof_int,
                   "not a valid guest state file: config size read")

Any tips - ideas what to search-look for in order to fix it?
Please ask me if you need further information about the error!!

Thanks in advance,
Stratos

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.