Windows Server 2012 R2在KVM上安装时找不到virtio驱动程序

我试图在Debian KVM主机上安装Windows Server 2012 R2,但似乎没有find驱动程序。

客人有两个驱动器连接:安装磁盘和最新的Windows virtio驱动程序ISO(从这里 )。 我使用相同的设置成功安装了其他操作系统(包括Windows Server 2008和Windows 8.1)。

我试图安装的驱动器是一个qcow2精简configuration文件。 在安装时,Windows无法识别该文件并显示“select要安装的驱动程序”框。 我selectWIN8目录中的AMD64文件夹,它显示了四个可安装驱动程序,其中两个与存储有关: Red Hat VirtIO SCSI controllerRed 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> 

 <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,tsk tsk tsk。

问题是使用来自DreamSpark / OnTheHub的磁盘映像。 我下载了一个新的图像,它开箱即用。

旧映像名称是en_windows_server_2012_r2_x64_dvd_2707946.iso

我“订购”了一个新的DreamSpark免费的Windows Server 2012。 我相信使用安全下载pipe理器重新下载将再次下载旧的图像,但我没有testing过这个。

至于设置,我build议你使用下面提供的dyasny的答案。