我正在尝试在 Debian KVM 主机上安装 Windows Server 2012 R2,但似乎找不到驱动程序。
客户机连接了两个驱动器:一个安装盘和最新的 Windows virtio 驱动程序 ISO(来自这里)。我使用相同的设置成功安装了其他操作系统(包括 Windows Server 2008 和 Windows 8.1)。
我尝试安装的驱动器是 qcow2 精简配置文件。安装时,Windows 无法识别它,并显示“选择要安装的驱动程序”框。我选择目录AMD64
中的文件夹WIN8
,它显示了四个可安装的驱动程序,其中两个与存储有关:Red Hat VirtIO SCSI controller
和Red Hat VirtIO pass-through controller
。
但是当我尝试安装其中任何一个时,它都会给我一个错误,No new devices drivers were found
并且不让我继续。我尝试使用不同的磁盘总线(SCSI、IDE、SATA 甚至 USB),但没有任何效果 -No new devices drivers were found
一直都是这样。
这是怎么回事?
以下是域 XML:
virsh # dumpxml win2k12
<domain type='kvm'>
<name>win2k12</name>
<uuid>f33b0f87-567c-4494-ab5b-80856447ddba</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode='custom' match='exact'>
<model fallback='allow'>Westmere</model>
</cpu>
<clock offset='localtime'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/thomas/kvm/storage_pool/windows2012-test-3.qcow2'/>
<target dev='sda' bus='usb'/>
<boot order='1'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/home/thomas/tmp/en_windows_server_2012_r2_x64_dvd_2707946.iso'/>
<target dev='hdb' bus='ide'/>
<readonly/>
<boot order='3'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/home/thomas/tmp/virtio-win-0.1-100.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' target='0' unit='0'/>
</disk>
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<controller type='virtio-serial' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</controller>
<controller type='scsi' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
</controller>
<controller type='scsi' index='1' model='virtio-scsi'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
</controller>
<controller type='sata' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
</controller>
<interface type='network'>
<mac address='52:54:00:06:5a:31'/>
<source network='default'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<channel type='spicevmc'>
<target type='virtio' name='com.redhat.spice.0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='spice' autoport='yes'/>
<sound model='ich6'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</sound>
<video>
<model type='qxl' ram='65536' vram='65536' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<redirdev bus='usb' type='spicevmc'>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
</redirdev>
<redirdev bus='usb' type='spicevmc'>
</redirdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</memballoon>
</devices>
</domain>
答案1
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/thomas/kvm/storage_pool/windows2012-test-3.qcow2'/>
<target dev='vda' bus='virtio'/>
</disk>
它应该是这样的。顺便说一句,你的网卡也是 RTL 而不是 virtio,啧啧啧。
答案2
问题在于使用 DreamSpark/OnTheHub 的磁盘映像。我下载了一个新映像,它开箱即用。
旧图像名称为en_windows_server_2012_r2_x64_dvd_2707946.iso
。
我“订购”了 DreamSpark 的全新免费 Windows Server 2012。我认为使用安全下载管理器重新下载会再次下载旧映像,但我还没有测试过。
至于设置,我建议您使用下面 dyasny 的回答中提供的设置。