Friday 9 December 2011

Virtual Machine does not recognize floppy drive

Virtual Machine does not recognize floppy drive

I am trying to install Win7 64 bit guest into a KVM virtual machine using a virtio disk as the installation drive.

In order to do this I need to install a signed virtio driver at the beginning of the installation stage. These signed drivers are apparently on a vfd file from Red Hat.

When I set up the virtual machine using virt-manager, I can add new hardware to create a virtual floppy drive pointing to the Red Hat vfd file on my system. I can also set up more than one CDROM drive.

When I boot into Win7 64 bit and choose a custom install, it allows you to browse for drivers. This is where the problem occurs. When I click the browse key any CDROMs I've added to the virtual machine show up but the floppy drive does not, so I can't choose the drivers. Red Hat also has the drivers on an iso image which I can load but Win7 says the driver on the iso image is not signed, so I want to try the floopy drive file but I can't get the Win7 to see it at the beginning of installation.

I've followed everything I can find on Google on how to set up a floppy drive and add the Win7 64 bit signed drivers to a KVM virtual machine. The process does not seem that complicated but I can't get it to work.

Here is my virtual machine xml file:

Code:

<domain type='kvm'>
  <name>Win7_64</name>
  <uuid>b0bbcb23-3714-bf94-4f69-cb83499ebac4</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.14'>hvm</type>
    <boot dev='fd'/>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
    <bootmenu enable='yes'/>
  </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='qcow2'/>
      <source file='/var/lib/libvirt/images/Win7_64-1.img'/>
      <target dev='vdb' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/home/dad/LV_Data/downloads/microsoft/virtio-win-0.1-15.iso'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/sr0'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
    <disk type='file' device='floppy'>
      <driver name='qemu' type='raw'/>
      <source file='/home/dad/LV_Data/downloads/microsoft/virtio-win-1.1.16.vfd'/>
      <target dev='fda' bus='fdc'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='fdc' index='0'/>
    <interface type='bridge'>
      <mac address='52:54:00:bf:91:47'/>
      <source bridge='br0'/>
      <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'/>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <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>

This is the section that is supposed to create the virtual floppy drive but none shows up when I choose browse for drivers in the Win7 install:

Code:

<disk type='file' device='floppy'>
      <driver name='qemu' type='raw'/>
      <source file='/home/dad/LV_Data/downloads/microsoft/virtio-win-1.1.16.vfd'/>
      <target dev='fda' bus='fdc'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>

Any help would be greatly appreciated.

My host system is Debian Testing.

Thanks

bdika

No comments:

Post a Comment