KVM 从 Ubuntu 迁移至 CentOS 环境

2020-01-09  本文已影响0人  Alexander_Zz

一、修改 xml 文件

1.1 <os> <type> 中
# Ubuntu 系统示例
  <os>
    <type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
    <boot dev='hd'/>
  </os>

# CentOS 系统示例
  <os>
    <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>   # machine 类型不一样,需修改
    <boot dev='hd'/>
  </os>
1.2 <devices> <emulator> 中
# Ubuntu 系统示例
   <emulator>/usr/bin/kvm-spice</emulator>

# CentOS 系统示例
   <emulator>/usr/libexec/qemu-kvm</emulator>   # emulator 不一样,需修改
上一篇下一篇

猜你喜欢

热点阅读