问题表现

解决方案

进入黑裙虚拟机,点击编辑,右上角打开XML视图,找到如下代码

<disk type='block' device='disk'>
  <driver name='qemu' type='raw' cache='writeback'/>
  <source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RCNX0H409310M' index='2'/>
  <backingStore/>
  <target dev='hdd' bus='sata'/>
  <serial>vdisk2</serial>
  <alias name='sata0-0-3'/>
  <address type='drive' controller='0' bus='0' target='0' unit='3'/>
</disk>
<disk type='block' device='disk'>
  <driver name='qemu' type='raw' cache='writeback'/>
  <source dev='/dev/disk/by-id/ata-ST2000VM003-1ET164_W521CXBR' index='1'/>
  <backingStore/>
  <target dev='hde' bus='sata'/>
  <serial>vdisk3</serial>
  <alias name='sata0-0-4'/>
  <address type='drive' controller='0' bus='0' target='0' unit='4'/>
</disk>

<target>块内添加rotation_rate='1'修改为以下代码

<disk type='block' device='disk'>
  <driver name='qemu' type='raw' cache='writeback'/>
  <source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RCNX0H409310M' index='2'/>
  <backingStore/>
  <target dev='hdd' bus='sata' rotation_rate='1'/>
  <serial>vdisk2</serial>
  <alias name='sata0-0-3'/>
  <address type='drive' controller='0' bus='0' target='0' unit='3'/>
</disk>
<disk type='block' device='disk'>
  <driver name='qemu' type='raw' cache='writeback'/>
  <source dev='/dev/disk/by-id/ata-ST2000VM003-1ET164_W521CXBR' index='1'/>
  <backingStore/>
  <target dev='hde' bus='sata' rotation_rate='1'/>
  <serial>vdisk3</serial>
  <alias name='sata0-0-4'/>
  <address type='drive' controller='0' bus='0' target='0' unit='4'/>
</disk>

修改后效果如图:

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注

评论(1)

  • 匿名 2023年9月18日 下午2:33

    亲测可用,感谢博主分享!