首页 文章

如何让硬盘驱动器为QEMU虚拟化Windows Home Server 2011工作?

提问于
浏览
2

我已使用virt-install和virsh配置了Windows Home Server 2011 guest虚拟机,但Windows安装程序找不到任何硬盘驱动器 . 也不能为它加载任何virtio驱动程序 .

这是我的第一次qemu / kvm虚拟化尝试,所以也许我只是遗漏了一些明显的东西,但是任何帮助都表示赞赏!以下是详细信息:

  • 我使用virt-install 0.600.4创建了域 .

命令:

virt-install --connect qemu:///system -n fas -r 6144 --vcpus=2 \
  --disk pool=vmstore,size=50,bus=virtio,cache=none -c whs2011.iso --vnc \
  --noautoconsole --os-type windows --os-variant win2k8 \
  --network network=default,model=e1000 \
  --disk path=virtio-win-0.1-74.iso,device=cdrom,perms=ro

我使用os-variant win2k8,因为没有win2011可用于virt-install,afaik . 不知道这是否有任何问题 .

  • 我做了 virsh destroy fas 来阻止它,

  • 我用 virsh edit fas 对其进行了修改,将cdrom添加为第一启动设备 .

生成的域的xml是:

<domain type='kvm'>
  <name>fas</name>
  <uuid>3d170dbf-c96e-5b0c-0e75-0bd2d6c5e98c</uuid>
  <memory unit='KiB'>6291456</memory>
  <currentMemory unit='KiB'>6291456</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-1.5'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/var/lib/libvirt/images/fas.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/home/nb/whs2011.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='/home/nb/virtio-win-0.1-74.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 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>
    <interface type='network'>
      <mac address='52:54:00:84:3b:8b'/>
      <source network='default'/>
      <model type='e1000'/>
      <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>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <video>
      <model type='vga' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>
  • 然后我用 virsh start fas 再次启动它,

  • 使用vnc viewer成功连接到视口 .

  • Windows安装程序已启动,我单击"New installation: Install Windows"(请参阅http://i.stack.imgur.com/EaSnT.png) .

  • 然后我被告知没有找到硬盘,所以我点击"Load drivers" .

  • 然后,无论我从virtio驱动程序cd映像中选择哪个文件夹,当我点击OK时都不会显示硬盘驱动器(请参阅http://i.stack.imgur.com/htoda.png) .

我的系统是在HP Proliant ML330 G6(四核Intel Xeon @ 2.4GHz)上运行的最新Ubuntu Server 13.10(内核3.11.0-14-通用) . QEMU版本是1.5.0 .

欢迎任何输入!

1 回答

相关问题