unsupported configuration: IDE controllers are unsupported for this QEMU binary or machine type解决

1.目的:修改虚拟机xml文件,pc换为q35类型

2.过程:

(1)

修改machine=q35    <type arch='x86_64' machine='q35'>hvm</type>

报如下错:

error: XML error: The PCI controller with index='0' must be model='pcie-root' for this machine type, but model='pci-root' was found instead

(2)

把pci的controller修改为 pcie-root

<controller type='pci' index='0' model='pci-root'/>   改为 <controller type='pci' index='0' model='pcie-root'/>

报如下错:

error:unsupported configuration: IDE controllers are unsupported for this QEMU binary or machine type解决

(3)

如果有cdrom只读光盘,修改xml

 <disk type="file" device="cdrom">
              <driver name="qemu" type="raw" cache="none"></driver>
              <source file="/opt/instance/_base/3d2aaafbbcc373eda7cecdb93d8f6aec.iso"></source>
              <target dev="hdb" bus="sata"></target>// 修改bus,bus不能为ide
              <readonly></readonly>
              <address type="drive" bus="0" controller="0" target="0" unit="1"></address>
      </disk>

删除

 <controller type="ide" index="0">
              <alias name="ide0"></alias>
  </controller>

保存xml文件即可,如问题不能解决,请根据实际情况判断,哈哈哈哈

  • 3
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值