首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Libvirt:“CPU与主机CPU不兼容”

Libvirt:“CPU与主机CPU不兼容”
EN

Server Fault用户
提问于 2020-05-04 14:06:21
回答 1查看 1.1K关注 0票数 0

我正在将一个域从“旧pc”导出到“新pc”

代码语言:javascript
复制
# Export domain (from old pc)
ssh user@"$REMOTE_IP" "virsh --connect qemu:///system suspend --domain magento-base > /dev/null 2>&1"                                                                                       # Pause vm
ssh user@"$REMOTE_IP" "virsh --connect qemu:///system dumpxml --update-cpu --domain magento-base > ~/workspaces/virtual-machines/magento-base/magento-base.xml"                             # Export vm
ssh user@"$REMOTE_IP" "virsh --connect qemu:///system snapshot-dumpxml --domain magento-base --snapshotname snapshot1 > ~/workspaces/virtual-machines/magento-base/snapshots/snapshot1.xml" # Export snapshot1

# Import domain (to new pc)
virsh --connect qemu:///system destroy --domain magento-base > /dev/null 2>&1                                                                                                          # Stop old vm
virsh --connect qemu:///system undefine --domain magento-base > /dev/null 2>&1                                                                                                         # Delete old vm
virsh --connect qemu:///system define ~/workspaces/virtual-machines/magento-base/magento-base.xml                                                                                      # Import new vm
virsh --connect qemu:///system snapshot-create --domain magento-base --xmlfile ~/workspaces/virtual-machines/magento-base/snapshots/snapshot1.xml --atomic --redefine --current --halt # Import snapshot1

问题当我启动域或新pc中的快照时,会得到以下错误:

代码语言:javascript
复制
The CPU is incompatible with host CPU

修正这个错误的正确方法是什么?谢谢。

EN

回答 1

Server Fault用户

发布于 2020-05-04 14:31:23

目前还没有办法解决这个问题。“旧pc”和“新pc”都必须支持相同的cpu标志。

资料来源:来自libvirt IRC频道的答复:

代码语言:javascript
复制
- when you save the running VM state, the details of the current exposed guest CPU are recorded.
- when we restore the guest from saved state, we must ensure the host CPU is able to support all the features the guest was currently run with IOW, your new host  lacks some CPU flags that the old host had.
- there's no safe way to "fix" this problem in general.
- unless there's a BIOS update you're missing for your new host.
票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1015588

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档