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

[Xen-users] migrating with different CPUs



Hello,


I have two Xen servers (v4.6) with different CPUs and I'm trying to
migrate VMs from one to another.

server #1 "server", CPU: AMD FX-8320E Eight-Core Processor
server #2 "server2", CPU: AMD Phenom(tm) 9650 Quad-Core Processor

If I create the VM on server2, I can migrate the VM on server and vice
versa. I guess because it is older. However, if the VM is created on
server, it fails to migrate (see logs at the end).

Is there anyway to create the VM such that it takes CPU capabilities
compatible with both servers?

I tried to set the cpuid of server2 using this tool
https://intrbiz.com/post/blog/linux/setting-the-cpuid-of-a-xen-guest
but it still fail to migrate.


Regards,
Clèm



% sudo xl migrate --debug template server2
[sudo] password for clement:
root@server2's password:
migration target: Ready to receive domain.
Saving to migration stream new xl format (info 0x3/0x0/1591)
Loading new save file <incoming migration stream> (new xl fmt info
0x3/0x0/1591)
 Savefile contains xl domain config in JSON format
Parsing config from <saved>
{
    "c_info": {
        "type": "pv",
        "name": "template--incoming",
        "uuid": "d79e1740-9f47-411e-a88f-2d0d221f9887",
        "run_hotplug_scripts": "True"
    },
    "b_info": {
        "max_vcpus": 3,
        "avail_vcpus": [
            0,
            1,
            2
        ],
        "vcpu_hard_affinity": [
            [
                1,
                2,
                3
            ],
            [
                1,
                2,
                3
            ],
            [
                1,
                2,
                3
            ]
        ],
        "numa_placement": "False",
        "max_memkb": 262144,
        "target_memkb": 262144,
        "video_memkb": 0,
        "shadow_memkb": 5120,
        "sched_params": {

        },
        "claim_mode": "True",
        "kernel": "/boot/vmlinuz-4.4.0-34-generic",
        "cmdline": "root=/dev/xvda2 ro elevator=noop",
        "ramdisk": "/boot/initrd.img-4.4.0-34-generic",
        "type.pv": {

        },
        "arch_arm": {

        }
    },
    "disks": [
        {
            "pdev_path": "template",
            "vdev": "xvda2",
            "format": "raw",
            "script": "block-drbd",
            "readwrite": 1
        },
        {
            "pdev_path": "template-swap",
            "vdev": "xvda1",
            "format": "raw",
            "script": "block-drbd",
            "readwrite": 1
        }
    ],
    "nics": [
        {
            "devid": 0,
            "mac": "00:16:3e:3d:ea:27"
        }
    ],
    "on_reboot": "restart",
    "on_crash": "restart"
}
xc: info: Saving domain 23, type x86 PV
xc: info: Found x86 PV domain from Xen 4.6
xc: info: Restoring domain
xc: error: verify pfn 789d failed (type 0): Internal error
xc: error: verify pfn 789e failed (type 0): Internal error
xc: error: verify pfn 789f failed (type 0): Internal error
xc: error: verify pfn 78a0 failed (type 0): Internal error
xc: error: verify pfn 7f8a failed (type 0): Internal error
xc: error: verify pfn ec99 failed (type 0): Internal error
xc: error: Failed to set vcpu0's xsave info (22 = Invalid argument):
Internal error
xc: error: Restore failed (22 = Invalid argument): Internal error
libxl: error: libxl_stream_read.c:749:libxl__xc_domain_restore_done:
restoring domain: Invalid argument
libxl: error: libxl_create.c:1144:domcreate_rebuild_done: cannot
(re-)build domain: -3
libxl: error: libxl.c:1610:libxl__destroy_domid: non-existant domain 5
libxl: error: libxl.c:1568:domain_destroy_callback: unable to destroy
guest with domid 5
libxl: error: libxl.c:1495:domain_destroy_cb: destruction of domain 5 failed
migration target: Domain creation failed (code -3).
libxl: error: libxl_utils.c:430:libxl_read_exactly: file/stream
truncated reading ready message from migration receiver stream
libxl: info: libxl_exec.c:118:libxl_report_child_exitstatus: migration
transport process [13910] exited with error status 3
Migration failed, resuming at sender.

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

 


Rackspace

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