我正试图在KVM上安装Windows Server 2012。 主机系统是Ubuntu Server 14.04。 我想使用一个逻辑卷,比如/ dev / VG / win,作为访客系统的主要设备。 但是,安装过程停止在我select驱动器的位置。 没有find驱动器,我被要求select(签名)的驱动程序。 我尝试了几个驱动程序的图像,但迄今没有发现任何工作。 如果我使用客人系统的图像文件,一切工作正常。
这是我的kvmconfiguration的设备部分:
<os> <type arch='x86_64' machine='pc-1.0'>hvm</type> <boot dev='cdrom'/> <boot dev='hd'/> <bootmenu enable='yes'/> </os> ... <devices> <emulator>/usr/bin/kvm-spice</emulator> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/data/virtio-win-0.1.102.iso'/> <target dev='hda' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/dara/Win.iso'/> <target dev='hdc' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='1' target='0' unit='0'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw'/> <source dev='/dev/VG/win'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/> </disk> ...
我尝试了一些变化(使用virt-manager和virt-install),但没有成功。 有没有一种方法来定义LVM卷,以便Windows可以识别它? 或者我在哪里得到工作的驱动程序?
编辑 :我有条不紊地尝试每种驱动器types(总线等configuration由virt-manager)和驱动程序( 这里和fedora链接下面贴出)的组合,没有工作。 唯一的成功之处在于,对于virtio而言,驱动器出现在“select驱动程序”对话框中,并接受了viostor驱动程序(来自fedora链接)。 但是,磁盘仍然不会出现在安装对话框中。 我相应地更改了上面的conf摘录。
您可以尝试<target dev='sda' bus='scsi'/> (删除控制器引用)并查看安装过程中是否出现磁盘。 最好的configuration是<target dev='vda' bus='virtio'/> ,但是你需要Fedora的virtio驱动 ; 另请参阅https://serverfault.com/a/650681/100793 。
由于我尝试了五千万安装,我使用了以下解决方法: