将 w2016 映像从 ESXi 移动到 KVM 时会显示消息“无可启动设备”

将 w2016 映像从 ESXi 移动到 KVM 时会显示消息“无可启动设备”

我正在尝试将 Windows Server 2016 映像从 ESXi 移动到 KVM,但是当我尝试启动它时收到错误“无可启动设备”。

以下是命令“virt-filesystems -a ~/VM.qcow2 --all --long --uuid -h”的输出

Name      Type       VFS  Label    MBR Size Parent   UUID
/dev/sda1 filesystem ntfs Recovery -   499M -        CCCEA1FFCEA1E246
/dev/sda2 filesystem vfat -        -   95M  -        AEA2-DC85
/dev/sda4 filesystem ntfs -        -   49G  -        903EA5533EA53360
/dev/sda1 partition  -    -        -   499M /dev/sda -
/dev/sda2 partition  -    -        -   99M  /dev/sda -
/dev/sda3 partition  -    -        -   16M  /dev/sda -
/dev/sda4 partition  -    -        -   49G  /dev/sda -
/dev/sda5 partition  -    -        -   256K /dev/sda -
/dev/sda  device     -    -        -   50G  -        -

以下是 VM 的 XML 摘录:

  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/data/A-DMZ-New.qcow2'/>
      <target dev='sda' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='qemu-xhci' ports='15'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:22:4a:ce'/>
      <source bridge='br1'/>
      <model type='e1000e'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='spice' autoport='yes'>
      <listen type='address'/>

答案1

尝试将总线类型更改为虚拟并将目标开发者汽车电子协会这里:

<disk type='file' device='disk'>
  <driver name='qemu' type='qcow2'/>
  <source file='/data/A-DMZ-New.qcow2'/>
  <target dev='vda' bus='virtio'/>
  <address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>

相关内容